Created
August 27, 2013 17:35
-
-
Save brianleroux/6356572 to your computer and use it in GitHub Desktop.
calling `npm test` from `grunt test`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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