How to execute a Grunt task directly from Node without a crawl in the CLI?
I have the following "POC" code; however, “material” is never recorded.
var grunt = require('grunt'); grunt.registerTask('default', 'Log some stuff.', function() { console.log('stuff'); }); grunt.task.run('default');
I'm new to Grunt, so I probably missed something obvious. I suspect that the command I use to “start” the task simply puts it in the queue and does not actually start the work. However, I can not find the documentation for manual start.
Adam terlson
source share