Grunt plugin for loading and merge custom settings from grunt config file
Your project is large? Need to use custom settings for apllication parts? Grunt-local-settings plugin provide that :)
1 Specify custom working directory at your Gruntfile. Example:
grunt.grunt.file.setBase(
grunt.option('path')
)
2 Configure your Gruntfile tasks:
// grunt-local-settings
localSettings: {
js: {
src: [
'gruntConfig.{js,coffee,yml,json}'
]
}
},
// global settings example
concat: {
src: '*.js',
dest: 'build.js'
}
3 Create customApp/gruntConfig.yml file
concat:
src:
- '*.js'
- '!private.js'
4 Run grunt
grunt -path customApp
grunt -path anotherApp
Now concat exclude private.js at customApp path