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:
Install this plugin through the command line:
apm install grunt-configs
Or through the Atom Package Manager.
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.
After generating the files use load-grunt-configs to load the configuration files and configure Grunt.
# install load-grunt-configsnpm install load-grunt-configs --save-dev
And update your Gruntfile.js
//loads the various task configuration filesvar configs = require('load-grunt-configs')(grunt);grunt.initConfig(configs); //this is where the big, fat grunt configuration object normally is declared
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.