Permalink
Browse files

Update README.md

  • Loading branch information...
1 parent 0820ee6 commit d978663e4b34613fc3712183eae853ea4568c0c8 @el-fuego committed Nov 6, 2013
Showing with 44 additions and 4 deletions.
  1. +44 −4 README.md
View
@@ -1,15 +1,55 @@
# grunt-local-settings
-> Grunt plugin for loading and merge settings from grunt config file
+> 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:
+
+
```js
+grunt.grunt.file.setBase(
+ grunt.option('path')
+)
+```
+
+2 Configure your Gruntfile tasks:
+
+```js
+// grunt-local-settings
localSettings: {
js: {
src: [
- 'gruntConfig.{js,coffee,yaml,json}'
+ 'gruntConfig.{js,coffee,yml,json}'
]
}
-};
-```
+},
+
+// global settings example
+concat: {
+ src: '*.js',
+ dest: 'build.js'
+}
+
+```
+
+3 Create customApp/gruntConfig.yml file
+
+```yaml
+concat:
+ src:
+ - '*.js'
+ - '!private.js'
+```
+
+4 Run grunt
+
+```shell
+grunt -path customApp
+grunt -path anotherApp
+```
+
+
+Now concat exclude private.js at customApp path

0 comments on commit d978663

Please sign in to comment.