Comparing version 0.1.11 to 0.1.12
@@ -20,3 +20,3 @@ #!/usr/bin/env node | ||
var JAKE_VERSION = '0.1.11' | ||
var JAKE_VERSION = '0.1.12' | ||
, jake | ||
@@ -192,2 +192,9 @@ , args = process.argv.slice(2) | ||
, _mixin = function (t, f) { | ||
for (var p in f) { | ||
t[p] = f[p]; | ||
} | ||
return t; | ||
} | ||
/** | ||
@@ -214,3 +221,4 @@ * Tells us if the task has any dependencies | ||
, deps = opts.deps | ||
, includeDeps = opts.includeDeps; | ||
, includeDeps = opts.includeDeps | ||
, subOpts = {}; | ||
// If the task has dependencies these are invoked in order. | ||
@@ -222,5 +230,8 @@ // If any of them were changed after the current file, or | ||
stats = stats || {ctime: 0}; | ||
// Clone original opts, set root to false | ||
_mixin(subOpts, opts); | ||
subOpts.root = false; | ||
for (var i = 0, ii = deps.length, depsLeft = deps.length, maxTime = stats.ctime; | ||
i < ii; i++) { | ||
_parseDeps(deps[i], {root: false}, function (ctime) { | ||
_parseDeps(deps[i], subOpts, function (ctime) { | ||
depsLeft -= 1; | ||
@@ -271,3 +282,4 @@ maxTime = (maxTime == null || maxTime < ctime) ? ctime : maxTime; | ||
, root = opts.root | ||
, includeDeps = opts.includeDeps; | ||
, includeDeps = opts.includeDeps | ||
, subOpts = {}; | ||
@@ -311,4 +323,7 @@ // No task found | ||
if (includeDeps && _taskHasDeps(deps)) { | ||
// Clone original opts, set root to false | ||
_mixin(subOpts, opts); | ||
subOpts.root = false; | ||
for (var i = 0, ii = deps.length, ctr = deps.length; i < ii; i++) { | ||
_parseDeps(deps[i], {root: false}, function () { | ||
_parseDeps(deps[i], subOpts, function () { | ||
ctr -= 1; | ||
@@ -376,3 +391,2 @@ if (ctr == 0) { | ||
var self = this; | ||
console.log('reenabling ' + name); | ||
this.populateAndProcessTaskList(name, includeDeps, function () { | ||
@@ -649,3 +663,4 @@ var name | ||
global.fail = function (msg) { | ||
throw new Error(msg.toString()); | ||
var message = (msg && msg.toString()) || '(No error message specified.)'; | ||
throw new Error(message); | ||
}; | ||
@@ -652,0 +667,0 @@ |
{ "name" : "jake" | ||
, "version" : "0.1.11" | ||
, "version" : "0.1.12" | ||
, "author" : "Matthew Eernisse <mde@fleegix.org> (http://fleegix.org)" | ||
@@ -4,0 +4,0 @@ , "main" : "./lib/jake" |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
34122
679
277
0