Published on April 12, 2014 by Toran Billups
In the previous post we added jshint to catch errors/mistakes early in the build process.
The first step is to install the npm module itself after adding it to the package.json file.
Next we need to load the npm module at the top of our Gruntfile.js and add the watch task with a few options.
The last option requires a little re-work because the watch task needs another "task" to run when it gets triggered. Because we already have everything we need in the local task, I simply renamed local to dev and made local a combination of dev + watch. This way we can reuse it to keep the configuration DRY-ish.
Now that our grunt build includes watch + live reload, we can move onto testem!
If you want to follow along on github, this repository has a commit for each part in the series