first the scripts property in your package. json has nothing to do with grunting. its just a cli command from npm that will run if you run
$ npm test
Find out more about it here: https://npmjs.org/doc/scripts.html
eg. if you test your application with grunt and nodeunit you can just add this to the script block
"scripts": { "test": "grunt nodeunit" }
and your nodeunit task runs if you run "npm test"
this basically simplifies continuous integration, etc. if you change the basic test circuit.
Of course, you could add a task alias if you need to do more before and after running your tests (for example, concatenating before, cleaning after)
hereandnow78 Jun 15 '13 at 21:47 2013-06-15 21:47
source share