cd whatever
npm install
grunt foo
...run from the command line (at a Windows command prompt) would fire off the foo task in this Gruntfile.js file which would in turn fire off the bar, baz, and qux tasks:
module.exports = function(grunt) {
grunt.initConfig({
pkg: '<json:package.json>',
sweet: {
//whatever
},
sour: {
//whatever
},
salty: {
//whatever
},
clean: ["Release"]
});
grunt.registerTask('bar', 'sweet');
grunt.registerTask('baz', 'sour');
grunt.registerTask('qux', 'salty');
grunt.registerTask('foo', ['bar', 'baz', 'qux']);
};
No comments:
Post a Comment