0.1.1 • Published 9 years ago

preconfigure-grunt v0.1.1

Weekly downloads
2
License
-
Repository
github
Last release
9 years ago

preconfigure-grunt

Node plugin for configuring the configuration of grunt before grunt is initialized.

Installation

npm install --save preconfigure-grunt

##Usage

var configurer = require('preconfigure-grunt');

to provide the configurer with an initial configuration you can now do this:

configurer.init({key:'value'});

or if you prefer to start with an empty configuration you can skip this function.

to add a configuration option you can now do this:

configurer.add("some.key",value);

to merge a configuration option you can now do this:

configurer.merge("some.key",value);

this will do a deep merge.

to get a configuration option you can now do this:

configurer.get("some.key");

to get the entire configuration you can now do this:

configurer.get();

to initialize the grunt initConfig you can now do this:

configurer.initConfig(grunt);

instead of configuring it like this:

grunt.initConfig({});

##Contributions If you want to contribute, please add a test. Also, don't change the version in package.json.

Release History

(Nothing yet)

0.1.1

9 years ago

0.1.0

9 years ago