bauer-plugin-grunt

0.1.4 • Public • Published

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

Dependencies (2)

Dev Dependencies (1)

Package Sidebar

Install

npm i bauer-plugin-grunt

Weekly Downloads

0

Version

0.1.4

License

MIT

Last publish

Collaborators

  • yneves