Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "wulp", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Gulp tasks that can be run directly or as part of a watch task.", | ||
@@ -19,4 +19,5 @@ "license": "Apache-2.0", | ||
"pretty-ms": "^2.1.0", | ||
"stacky": "^1.3.1", | ||
"stream-array": "^1.1.1" | ||
} | ||
} |
var debug = require('debug')('wulp'); | ||
var micromatch = require('micromatch'); | ||
var prettyMs = require('pretty-ms'); | ||
var stacky = require('stacky'); | ||
var streamArray = require('stream-array'); | ||
@@ -134,3 +135,3 @@ var util = require('gulp-util'); | ||
if (error) { | ||
this._log(util.colors.red('Task "' + nextTaskName + '" failed in ' + duration)); | ||
this._log(util.colors.red('\nTask "' + nextTaskName + '" failed in ' + duration +':\n') + this._prettyError(error)); | ||
} else { | ||
@@ -188,3 +189,14 @@ this._log('Completed task "' + nextTaskName + '" in ' + duration); | ||
Wulp.prototype._prettyError = function _prettyError(error) { | ||
if (!error.stack) return String(error); | ||
return stacky.pretty(error.stack, { | ||
indent: ' ', | ||
filter: function(line) { | ||
return line.location.match(/\/node_modules\//); | ||
}, | ||
}); | ||
} | ||
module.exports = new Wulp({}); | ||
module.exports.Wulp = Wulp; |
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
17704
160
8
+ Addedstacky@^1.3.1
+ Addedstacky@1.3.1(transitive)