Comparing version 0.2.3 to 0.2.4
{ | ||
"name": "grunt-run", | ||
"description": "Invite external commands into your grunt process with three tasks `run`, `wait` and `stop`.", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"homepage": "https://github.com/spenceralger/grunt-run", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -64,3 +64,4 @@ /* | ||
if (getPid(name)) { | ||
var pid = getPid(name); | ||
if (pid && _.find(runningProcs, { pid: pid })) { | ||
grunt.log.warn(name + ' is already running'); | ||
@@ -147,2 +148,3 @@ return; | ||
} | ||
clearPid(name); | ||
grunt.log.debug('Process ' + name + ' closed.'); | ||
@@ -180,12 +182,13 @@ }); | ||
'(only works for tasks that use wait:false)', function () { | ||
var pid = this.data._pid; | ||
var name = this.target; | ||
var proc = _.find(runningProcs, { pid: pid }); | ||
clearPid(name); | ||
if (proc) { | ||
proc.kill(); | ||
clearPid(name); | ||
grunt.log.ok(name + ' stopped'); | ||
} else { | ||
grunt.log.warn(this.target + ' (' + pid + ') is already stopped.'); | ||
} | ||
grunt.log.ok(name + ' already stopped'); | ||
} | ||
}); | ||
@@ -192,0 +195,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14057
204