Skip to content

el-fuego/grunt-local-settings

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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