0.1.4 • Published 8 years ago

bauer-plugin-grunt v0.1.4

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

bauer-plugin-grunt

Plugin for bauer to run grunt tasks.

Installation

npm install bauer-plugin-grunt

Usage

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
  });
};

Configuration

{
  workers: 1,
  slots: 1,
  delay: 0,
  gruntFile: "path/to/Gruntfile.js",
  gruntPath: "node_modules/grunt"
}

API Summary

  • Promise
    • .grunt() :Promise
    • .grunt(task String) :Promise
    • .grunt(tasks Array) :Promise
    • .grunt(options Object) :Promise

License

MIT