Socket
Socket
Sign inDemoInstall

grunt-hub

Package Overview
Dependencies
1
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.1.1

tasks/init/hub.js

2

package.json
{
"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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc