Skip to content

Instantly share code, notes, and snippets.

@brianleroux
Created August 27, 2013 17:35
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianleroux/6356572 to your computer and use it in GitHub Desktop.
Save brianleroux/6356572 to your computer and use it in GitHub Desktop.
calling `npm test` from `grunt test`
var shell = require('shelljs')
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json')
})
grunt.registerTask('default', 'My "default" task description.', function() {
grunt.log.writeln('Currently running the "default" task.');
})
grunt.registerTask('test', 'Run the unit tests.', function() {
shell.exec('npm test')
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment