Socket
Socket
Sign inDemoInstall

grunt-hub

Package Overview
Dependencies
10
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.3 to 0.3.4

.editorconfig

5

package.json
{
"name": "grunt-hub",
"description": "A Grunt task to watch and run tasks on multiple Grunt projects",
"version": "0.3.3",
"version": "0.3.4",
"homepage": "https://github.com/shama/grunt-hub",
"author": {
"name": "Kyle Robinson Young",
"email": "kyle@dontkry.com"
"email": "kyle@dontkry.com",
"url": "http://dontkry.com"
},

@@ -10,0 +11,0 @@ "repository": {

@@ -120,2 +120,3 @@ # grunt-hub

* 0.3.4 Allow watch task to be renamed.
* 0.3.3 Fix issue with grunt-hub passing it's own tasks. Minor refactoring.

@@ -131,3 +132,3 @@ * 0.3.2 Fix dep to `grunt-lib-contrib`. Include options in verbose output. Better spawn grunt in hub task.

Copyright (c) 2012 Kyle Robinson Young
Copyright (c) 2012 Kyle Robinson Young
Licensed under the MIT license.

@@ -137,2 +138,2 @@

[grunt]: https://github.com/cowboy/grunt
[getting_started]: https://github.com/cowboy/grunt/blob/master/docs/getting_started.md
[getting_started]: https://github.com/cowboy/grunt/blob/master/docs/getting_started.md

4

tasks/lib/hub.js

@@ -15,3 +15,3 @@ /*

// Find watch tasks and files in a config
exports.getTargets = function(watch, target) {
exports.getTargets = function(watch, target, name) {
var targets = target ? [target] : Object.keys(watch).filter(function(key) {

@@ -22,3 +22,3 @@ return typeof watch[key] !== 'string' && !Array.isArray(watch[key]);

// Fail if any required config properties have been omitted
target = ['watch', target];
target = [(name || 'watch'), target];
this.requiresConfig && this.requiresConfig(target.concat('files'));

@@ -25,0 +25,0 @@ return grunt.config(target);

@@ -42,5 +42,6 @@ /*

grunt.registerTask('watch', 'Watch multiple grunt projects', function(target) {
this.requiresConfig('watch');
var name = this.name || 'watch';
this.requiresConfig(name);
// Build an array of files/tasks objects
var targets = hub.getTargets.apply(this, [grunt.config('watch'), target]);
var targets = hub.getTargets.apply(this, [grunt.config(name), target, name]);

@@ -47,0 +48,0 @@ // Message to display when waiting for changes

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