darquewarrior / generator-vsts Goto Github PK
View Code? Open in Web Editor NEWThe VSTS yeoman generator I used at Ignite New Zealand 2016
Home Page: https://channel9.msdn.com/Events/Ignite/New-Zealand-2016/M328
The VSTS yeoman generator I used at Ignite New Zealand 2016
Home Page: https://channel9.msdn.com/Events/Ignite/New-Zealand-2016/M328
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.
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
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
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.
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.
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.