Skip to content

Grunt plugin for loading and merge settings from grunt config file

License

Notifications You must be signed in to change notification settings

el-fuego/grunt-local-settings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Grunt plugin for loading and merge settings from grunt config file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published