visualstudio, grunt, npm

A little late, the new version of GruntLauncher is available on Visual Studio gallery.

This new version brings three new features:

  • the ability to launch commands in the same directory as your gruntfile. Some people complained (rightly) that the commands were always executed at the project root and this was not always right because the gruntfile sat in a subfolder.
  • support for grunt targets. Now if you have a task with at least two targets all will be shown as options to invoke directly. If there’s only one target only the task will be shown.
  • npm install support thanks to Mads Kristensen. Now when right clicking on you package.json file you will see the option to install all the specified packages (npm install).

As a news the next version of GruntLauncher will almost certainly get a rename as the current name doesn’t reflect anymore the features it has.

visualstudio, gruntlauncher, grunt, gulp, bower

A new release of GruntLauncher is available on VisualStudioGallery for you to download.

This new release brings a lot of improvements:

  • better gruntfile parsing support
  • use of a submenu to group all grunt commands, useful when your gruntfile has many entries ( thanks to Mads Kristensen who did all the work ) grunt

  • support for executing bower update on all your packages or on a specific package when right-clicking on it ( again thanks to Mads Kristensen )

  • support for gulpfile parsing in the same way it is done with gruntfiles (I’ve began to use gulp and support for it was easy to add )

With these new functionalities I believe I will have to change the plugin name to something more significant but it will take me some time to come up with a decent name.

grunt, msbuild, tfs, nuget

One of the most useful features of TFS (at least for me) is the ability to set it up to build your project and output the resultin an automated fashion.

The ability to have a simple, unique and repeatable process allows you to build and deploy your project without manual intervention.

Howewer it can be tricky to customize the build templates used by TFS to include specific additional steps like invoking grunt and executing additional tasks. For this reason I created a nuget package Grunt.MsBuild that can help you to integrate grunt execution in your TFS build by simply installing it in your projects.

What does it do

The Grunt.MsBuild package extends your build with a new target that sequentially invokes

  • npm install ( to install all the needed packages and dependencies )
  • grunt build$Configuration (where $Configuration will be replaced by the current build configuration allowing you to customize the build process when in debug mdoe or release mode)

Version Differences

To address all the possibilities I’ve created two different packages:

  • The local version assumes grunt-cli is installed as a local module and will use it to launch grunt
  • the global version assumes grunt-cli is installed globally and available in your path

This separation was necessary because while it’s easy to install grunt-cli globally on your development machine it could not be possible on the build server.

Running it

I’ve used successfully the packages on a on-premise version of tfs but if you want to use it on VisualStudioOnline it’s currently not possible because it still uses node 0.6 which is not supported by grunt.

There are to solutions to this problem:

  • wait until node is updated on the build servers
  • commit the node modules you depend on in TFS ( I don’t recommend this solution as it can cause problems with the number of files to save)

Where can I get it

You can download it from the Github repository or install them trough Nuget

visual studio, gruntlauncher, javascript

A new version of GruntLauncher is out and it brings support to Visual Studio 2013. Go forth and update it!

gruntLauncher, grunt, visual studio, javascript

As the title says GruntLauncher 1.1 is out and available on VisualStudio Gallery to update.

What’s new

This version brings two improvements:

  1. execution of grunt tasks is no more blocking (this was due to a bug in node for windows but newer version have solved it so make sure to have a recent version installed, for example 0.10.22)
  2. long running tasks like grunt watch can be started and run in background, writing the output in the output pane. The command status will become checked and clicking again on it will stop the process

Running task