preconfigure-grunt

0.1.1 • Public • Published

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)

Readme

Keywords

Package Sidebar

Install

npm i preconfigure-grunt

Weekly Downloads

0

Version

0.1.1

License

none

Last publish

Collaborators

  • mdasberg