Skip to content

yneves/node-bauer-plugin-grunt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Plugin for bauer to run grunt tasks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published