Git Product home page Git Product logo

generator-vsts's Introduction

This project is no longer maintained.

This project has been superseded by yo Team

generator-vsts

Build status

See it in action

Ignite New Zealand 2016

Capabilities

generator-vsts is a Yeoman generator that creates a complete CI/CD pipeline in Visual Studio Team Services for the following languages:

  • Java using Tiles and bootstrap
  • Node using Pug and bootstrap
  • ASP.net Core using Razor and bootstrap

It allows you to deploy to the following platforms:

Requirements

Install

You can read how to use it at DonovanBrown.com.

To test

npm test

Debug

You can debug the generator using VS Code. You need to update the launch.json. Replace any value in [] with your information. Use npm link from the root folder to load your local version.

generator-vsts's People

Contributors

azureadvocatebit avatar darquewarrior avatar dependabot[bot] avatar mikaelkrief avatar mikevh avatar mydevopsdemos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

generator-vsts's Issues

Nodejs build problem

I created a NodeJS with yo vsts.
I'm using a hosted agent and the build process breaks at npm test step.

Here's the log:
2016-12-06T08:37:08.6602646Z ##[section]Starting: npm test
2016-12-06T08:37:08.6612644Z ==============================================================================
2016-12-06T08:37:08.6612644Z Task : npm
2016-12-06T08:37:08.6612644Z Description : Run a npm command
2016-12-06T08:37:08.6612644Z Version : 0.2.20
2016-12-06T08:37:08.6612644Z Author : Microsoft Corporation
2016-12-06T08:37:08.6612644Z Help : More Information
2016-12-06T08:37:08.6622630Z ==============================================================================
2016-12-06T08:37:08.9782650Z [command]C:\Program Files\nodejs\npm.cmd config list
2016-12-06T08:37:10.4382652Z ; cli configs
2016-12-06T08:37:10.4392644Z user-agent = "npm/3.8.6 node/v5.11.0 win32 x64"
2016-12-06T08:37:10.4392644Z
2016-12-06T08:37:10.4392644Z ; environment configs
2016-12-06T08:37:10.4392644Z cache = "C:\NPM\Cache"
2016-12-06T08:37:10.4392644Z prefix = "C:\NPM\Modules"
2016-12-06T08:37:10.4392644Z
2016-12-06T08:37:10.4392644Z ; globalconfig C:\NPM\Modules\etc\npmrc
2016-12-06T08:37:10.4392644Z registry = "http://registry.npmjs.org/"
2016-12-06T08:37:10.4392644Z
2016-12-06T08:37:10.4392644Z ; builtin config undefined
2016-12-06T08:37:10.4392644Z
2016-12-06T08:37:10.4392644Z ; node bin location = C:\Program Files\nodejs\node.exe
2016-12-06T08:37:10.4392644Z ; cwd = C:\a\1\s
2016-12-06T08:37:10.4392644Z ; HOME = C:\Users\buildguest
2016-12-06T08:37:10.4392644Z ; "npm config ls -l" to show all defaults.
2016-12-06T08:37:10.4392644Z
2016-12-06T08:37:10.4582644Z [command]C:\Program Files\nodejs\npm.cmd test -- --grep unit*
2016-12-06T08:37:11.9672638Z
2016-12-06T08:37:11.9672638Z > [email protected] test C:\a\1\s
2016-12-06T08:37:11.9672638Z > istanbul cover --report cobertura --report lcov node_modules/mocha/bin/_mocha -- -R xunit-file "--grep" "unit*"
2016-12-06T08:37:11.9672638Z
2016-12-06T08:37:12.9532633Z No coverage information was collected, exit without writing coverage information
2016-12-06T08:37:12.9562649Z C:\a\1\s\node_modules\selenium-webdriver\index.js:115
2016-12-06T08:37:12.9562649Z static createSession(...args) {}
2016-12-06T08:37:12.9572648Z ^^^
2016-12-06T08:37:12.9572648Z
2016-12-06T08:37:12.9572648Z SyntaxError: Unexpected token ...
2016-12-06T08:37:12.9572648Z at exports.runInThisContext (vm.js:53:16)
2016-12-06T08:37:12.9572648Z at Module._compile (module.js:387:25)
2016-12-06T08:37:12.9572648Z at Object.Module._extensions..js (module.js:422:10)
2016-12-06T08:37:12.9582641Z at Object.Module._extensions.(anonymous function) [as .js] (C:\a\1\s\node_modules\istanbul\lib\hook.js:109:37)
2016-12-06T08:37:12.9582641Z at Module.load (module.js:357:32)
2016-12-06T08:37:12.9582641Z at Function.Module._load (module.js:314:12)
2016-12-06T08:37:12.9582641Z at Module.require (module.js:367:17)
2016-12-06T08:37:12.9582641Z at require (internal/module.js:20:19)
2016-12-06T08:37:12.9582641Z at Object. (C:\a\1\s\test\uiTest.js:2:19)
2016-12-06T08:37:12.9582641Z at Module._compile (module.js:413:34)
2016-12-06T08:37:12.9582641Z at Object.Module._extensions..js (module.js:422:10)
2016-12-06T08:37:12.9582641Z at Object.Module._extensions.(anonymous function) [as .js] (C:\a\1\s\node_modules\istanbul\lib\hook.js:109:37)
2016-12-06T08:37:12.9582641Z at Module.load (module.js:357:32)
2016-12-06T08:37:12.9582641Z at Function.Module._load (module.js:314:12)
2016-12-06T08:37:12.9582641Z at Module.require (module.js:367:17)
2016-12-06T08:37:12.9582641Z at require (internal/module.js:20:19)
2016-12-06T08:37:12.9582641Z at C:\a\1\s\node_modules\mocha\lib\mocha.js:222:27
2016-12-06T08:37:12.9592631Z at Array.forEach (native)
2016-12-06T08:37:12.9592631Z at Mocha.loadFiles (C:\a\1\s\node_modules\mocha\lib\mocha.js:219:14)
2016-12-06T08:37:12.9592631Z at Mocha.run (C:\a\1\s\node_modules\mocha\lib\mocha.js:487:10)
2016-12-06T08:37:12.9592631Z at Object. (C:\a\1\s\node_modules\mocha\bin_mocha:459:18)
2016-12-06T08:37:12.9592631Z at Module._compile (module.js:413:34)
2016-12-06T08:37:12.9592631Z at Object.Module._extensions..js (module.js:422:10)
2016-12-06T08:37:12.9592631Z at Object.Module._extensions.(anonymous function) [as .js] (C:\a\1\s\node_modules\istanbul\lib\hook.js:109:37)
2016-12-06T08:37:12.9592631Z at Module.load (module.js:357:32)
2016-12-06T08:37:12.9592631Z at Function.Module._load (module.js:314:12)
2016-12-06T08:37:12.9592631Z at Function.Module.runMain (module.js:447:10)
2016-12-06T08:37:12.9592631Z at runFn (C:\a\1\s\node_modules\istanbul\lib\command\common\run-with-cover.js:122:16)
2016-12-06T08:37:12.9592631Z at C:\a\1\s\node_modules\istanbul\lib\command\common\run-with-cover.js:251:17
2016-12-06T08:37:12.9592631Z at C:\a\1\s\node_modules\istanbul\lib\util\file-matcher.js:68:16
2016-12-06T08:37:12.9592631Z at C:\a\1\s\node_modules\istanbul\node_modules\async\lib\async.js:52:16
2016-12-06T08:37:12.9592631Z at C:\a\1\s\node_modules\istanbul\node_modules\async\lib\async.js:361:13
2016-12-06T08:37:12.9592631Z at C:\a\1\s\node_modules\istanbul\node_modules\async\lib\async.js:52:16
2016-12-06T08:37:12.9592631Z at done (C:\a\1\s\node_modules\istanbul\node_modules\async\lib\async.js:246:17)
2016-12-06T08:37:12.9592631Z at C:\a\1\s\node_modules\istanbul\node_modules\async\lib\async.js:44:16
2016-12-06T08:37:12.9592631Z at C:\a\1\s\node_modules\istanbul\node_modules\async\lib\async.js:358:17
2016-12-06T08:37:12.9592631Z at LOOP (fs.js:1609:14)
2016-12-06T08:37:12.9592631Z at _combinedTickCallback (internal/process/next_tick.js:67:7)
2016-12-06T08:37:12.9592631Z at process._tickCallback (internal/process/next_tick.js:98:9)
2016-12-06T08:37:12.9772644Z npm ERR! Test failed. See above for more details.
2016-12-06T08:37:13.0042648Z ##[error]npm failed with error: C:\Program Files\nodejs\npm.cmd failed with return code: 1
2016-12-06T08:37:13.0042648Z ##[section]Finishing: npm test

ASP.NET project fails to build in VS Code

Use YO VSTS to create an ASP.NET demo.
Once done open the folder in VS Code.
Follow prompts to restore, etc.

Error:
MSBUILD : error MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1. [c:\yovsts\yoaspnet3\src\yoaspnet3\project.json]
Done: 1.

Related: dotnet build at command prompt doesn't work
MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.

VS Code 1.7.2
C# Ext 1.5.3

Node Project fails to build

Run YO VSTS to create a Node application.
Use Hosted build.
Push changes to VSTS.
Build fails.
npm failed with error: C:\Program Files\nodejs\npm.cmd failed with return code: 1

Angular 2 CLI option

I know that it would be fairly simple to add in the angular 2 quickstart project. But what are we looking at to be able to add an option for the angular cli? I tried this out manually but i am not sure where the dist folder gets created or where to grab it from to deploy to azure. Was trying not to check the dist folder into source control.

Also not sure if you would want this added since the cli project is still in beta.

Add support for Azure Sql

One thing to keep in mind is that the sql server name needs to be lower case. So this may not fit in with the current working of yo vsts as it created resources with upper case.

What else I've found when you are supplying the admin password for the sql server and providing it via the variable section for the Azure Deployment task you need to have it in quotes - that's what's been causing the issue that we discussed via twitter (I also removed the ConvertTo-SecureString also as I didn't need it).

Any questions give me a shout but thought I'd add pointers that have stumped me along the way.

Local repo not created correctly on clean machine

Create a Server 2012 R2 VM in Azure.
Install tooling (Git for Windows, Node, and Yo).
Install and run YO VSTS.
Create a demo (ASP.NET for example).
Once done notice how it says you can just push.
Change to directory where repo should be.
Git status will tell you no repo.

Issue seems to be with Git not being correctly initialized on the machine.

Add new app to an existing Team Project

Currently a new app means to create a new project.
In a microservice context for example, I need to create multiple apps in the same Team Project. So, instead of creating a Team Project per app I need to add new apps to a existing Team Project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.