atom-grunt-configs

Atom.io plugin to auto-generate separate grunt configuration files from your `Gruntfile.js`.

creynders

674

2

0.1.0

MIT

GitHub

grunt-configs package

Auto-generate separate grunt configuration files from your Gruntfile.js.

This plugin will parse your projects Gruntfile.js and automatically generate config files for each task configuration object it finds. See grunt-generate-configs and load-grunt-configs for more information.

It allows you to generate the configuration data in following formats:

Installation

Install this plugin through the command line:

apm install grunt-configs

Or through the Atom Package Manager.

Usage

Select Generate Grunt configs from the contextual or Packages menu. Or use the default short-cut: ctrl-alt-cmd-g

After selecting what file format you want to use, file generation will start.

What now?

After generating the files use load-grunt-configs to load the configuration files and configure Grunt.

# install load-grunt-configs
npm install load-grunt-configs --save-dev

And update your Gruntfile.js

    //loads the various task configuration files
    var configs = require('load-grunt-configs')(grunt);
    grunt.initConfig(configs); //this is where the big, fat grunt configuration object normally is declared