Saturday, December 26, 2015

Grunt / Bower / NPM for Visual Studio


What is Grunt/ Gulp / NPM?
You may refer "An Introduction to Bower, Grunt and Gulp" Section at this article

NPM (Node package manager) is useful to manage UI packages.

How do i install them 
Follow the Steps in here

Opps! I  don't see gulp working 
If you get the below error

"Error:Failed to load   <your project location>\gulpfile.js"...
'gulp' is not recognized as an internal or external command, operable program or batch file."

Solution: We need to install gulp  --> which needs npm ( node package manger)

Step 1: Download & Install node.js in your the system.

Step 2:  Next Goto All Programs -> Node.js -> nodejs Command promt

Step 3:  run the below command to install gulp
npm install gulp -g

Note: you might face issues trying to install using npm if behind a proxy for which you may these solutions

Can I integrate it with my Online hosted Builds

Oh! Yes Have a look at here

Cant find .npmsrc
I ran npm config set <option> <value>, the file ~/.npmrc seemed to be created automatically, with the option & its value as the only non-commented-out line.
ref:https://stackoverflow.com/questions/15536872/nodejs-npm-global-config-missing-on-windows 


Thanks for visiting the post. 

Hope this helps you!

Devops links

  Build Versioning in Azure DevOps Pipelines