Plugin for bauer
to run grunt tasks.
npm install bauer-plugin-grunt
Using bauer
to run grunt tasks doesn't require grunt-cli
since it loads the Grunt
enviroment itself and keeps it loaded for further calls. The idea is running tasks in parallel, leveraging multiple cores.
module.exports = function(Promise) {
return Promise.grunt({
tasks: ["js","css"],
options: {
env: "development"
}
}).then(function() {
// build finished
}).catch(function() {
// build failed
});
};
{
workers: 1,
slots: 1,
delay: 0,
gruntFile: "path/to/Gruntfile.js",
gruntPath: "node_modules/grunt"
}
Promise
.grunt() :Promise
.grunt(task String) :Promise
.grunt(tasks Array) :Promise
.grunt(options Object) :Promise