grunt-horde

Packageable grunt configuration modules

npm install grunt-horde
5 downloads in the last day
19 downloads in the last week
59 downloads in the last month

grunt-horde

Packageable grunt configuration modules

  • Separate files define grunt configuration sections like initConfig, loadNpmTasks, etc.
  • Store modules in regular directories or leverage NPM, ex. npm install git://.
  • Compose configuration from multiple modules w/ recursive merging, cascading, etc.

Build Status

Introduction

Example

Gruntfile.js

Available API:

  • loot selects standard node modules whose exports are marged recursively.
  • demand updates the raw grunt config object.
  • attack applies the configuration to grunt.
module.exports = function(grunt) {
  var horde = require('grunt-horde').create(grunt);
  horde
    .loot('my-base-config')
    .loot('./config/grunt')
    .demand('initConfig.jshint.options', {node: true})
    .attack();
};

./node_modules/my-base-config/

Loaded first, this module provides a baseline that later loot calls can update.

initConfig/
    index.js
    jshint.js
    shell.js
tasks/
    precommit.js
loadNpmTasks.js
loadTasks.js
registerTask.js
registerMultiTask.js

Module Documentation

./config/grunt/

Defines project-specific configs merged recursively over my-base-config.

initConfig/
    jshint.js
loadNpmTasks.js
registerTask.js

Module Documentation

Installation

NPM

npm install grunt-horde

Documentation

License

MIT

Tests

npm test
npm loves you