Grunt plugin for loading and merge settings from grunt config file
JavaScript CoffeeScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea
tasks
test
.gitignore
.jshintrc
Gruntfile.js
LICENSE.md
README.md
package.json

README.md

grunt-local-settings

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 :)

Usage Example

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