Coder Social home page Coder Social logo

grunt.msbuild's Introduction

Grunt.MsBuild

These two Nuget packages add another step to the build of whatever project they're installed into.

In this additional build step, which triggers only if a gruntfile.js is found, npm install is executed (installing all the packages listed in package.json ) and if successful the command grunt build$Configuration is run where $Configuration is the currently set build configuration.

For example in a release build the command grunt buildRelease would be executed allowing you to customize the grunt build process based on the project configuration.

Differences between global and local

As you may have noted there are two packages version: Global and local.

  • The global version assumes grunt-cli has been installed globally and will use it ( This is the most common situation on you development machine )
  • The local version assumes grunt-cli will be installed locally with the node packagesd specified in your package.json and will use to invoke grunt ( this is a more common setup on a build agent in TFS for esample where node is installed global but you can't easily add other global dependencies)

Common pitfalls

These are coomon problems found :

  • If npm install says your package.json cannot be parsed it is probably due to VS that saved your file in UTF8 format whit BOM. Save it as ASCII and the problem will disappear

  • Usage of these package in a build hosted on Visual Studio online is currently not possible due to the fact that the build agent has an old (0.6) version of node.js installed preventing the execution of the npm install command. This could be solved by checking in all the packages needed but I don't think it's a good solution.

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.