How to transform a npm script to a grunt task?
I have the following script with my nodeJS. "scripts": { "start": "grunt", "test": "node --debug --harmony node_modules/grunt-cli/bin/grunt test" } I am running node v0.11.13 so I need to set --harmony flag. On grunt the tests are configured right if I start them with npm test, but I would prefer to have it all in a gruntfile. Is there a way to configure grunt to start the server and also run the test ? You can create an alias task that spawns grunt with those node flags, like such: grunt.registerTask('debug', function() { var done = this.async(); // Specify tasks to run spawned var tasks =