grunt-hub
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "grunt-hub", | ||
"description": "A Grunt task to watch and run tasks on multiple Grunt projects", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"homepage": "https://github.com/shama/grunt-hub", | ||
@@ -6,0 +6,0 @@ "author": { |
# grunt-hub | ||
A Grunt task to watch and run tasks on multiple Grunt projects | ||
A Grunt task to watch and run tasks on multiple Grunt projects. | ||
## Getting Started | ||
## Create a Grunt Hub | ||
A Grunt Hub is just a folder with a [Gruntfile][getting_started] and this | ||
grunt plugin installed. To create one do: | ||
``` | ||
mkdir grunt-hub && cd grunt-hub | ||
npm install grunt-hub | ||
cp -R node_modules/grunt-hub/tasks/init/hub/* . | ||
``` | ||
Then edit the grunt.js file to point to your other Grunt projects and run: | ||
`grunt` or `grunt watch`. | ||
## Integrate With an Existing Grunt Project | ||
Install this grunt plugin next to your project's | ||
@@ -16,7 +30,4 @@ [Gruntfile][getting_started] with: `npm install grunt-hub` | ||
[grunt]: https://github.com/cowboy/grunt | ||
[getting_started]: https://github.com/cowboy/grunt/blob/master/docs/getting_started.md | ||
## Configuring | ||
## Documentation | ||
This plugin includes a `hub` task and overrides the `watch` task. | ||
@@ -33,17 +44,4 @@ | ||
hub: { | ||
'lint test': ['../*/grunt.js'], | ||
} | ||
}); | ||
``` | ||
or using the more explicit syntax and only specifying certain Grunt projects: | ||
```javascript | ||
grunt.initConfig({ | ||
hub: { | ||
all: { | ||
files: [ | ||
'../grunt-jam/grunt.js', | ||
'../grunt-docs/grunt.js' | ||
], | ||
files: ['../*/grunt.js'], | ||
tasks: ['lint', 'test'] | ||
@@ -83,2 +81,3 @@ } | ||
* 0.1.1 add copyable template for a grunt hub | ||
* 0.1.0 initial release | ||
@@ -90,1 +89,5 @@ | ||
Licensed under the MIT license. | ||
[grunt]: https://github.com/cowboy/grunt | ||
[getting_started]: https://github.com/cowboy/grunt/blob/master/docs/getting_started.md |
10965
14
233
89