gulp-resolve-dependencies
Advanced tools
Comparing version 0.2.0 to 1.0.0
@@ -44,8 +44,4 @@ 'use strict'; | ||
if (!fs.existsSync(filePath)) { | ||
gutil.log('[' + gutil.colors.red(PLUGIN_NAME) + '] File not found: ', filePath); | ||
stream.emit('error', new Error('File not found: ' + filePath)); | ||
if (config.fail) { | ||
process.exit(1); | ||
} | ||
continue; | ||
@@ -76,4 +72,3 @@ } | ||
pattern: /\* @requires [\s-]*(.*?\.js)/g, | ||
log: false, | ||
fail: true | ||
log: false | ||
}, config); | ||
@@ -80,0 +75,0 @@ |
{ | ||
"name": "gulp-resolve-dependencies", | ||
"version": "0.2.0", | ||
"version": "1.0.0", | ||
"description": "Resolve dependency directives in assets (e.g. \"@requires\" or \"//= require\" in JavaScript)", | ||
@@ -28,3 +28,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"gulp-util": "~2.2.0", | ||
"gulp-util": "~2.2.17 ", | ||
"lodash": "~2.4.1" | ||
@@ -34,5 +34,5 @@ }, | ||
"mocha": "*", | ||
"event-stream": "~3.1.0", | ||
"gulp": "~3.5.2" | ||
"event-stream": "~3.1.5", | ||
"gulp": "~3.8.2" | ||
} | ||
} |
@@ -23,2 +23,5 @@ # gulp-resolve-dependencies | ||
}) | ||
.on('error', function(err) { | ||
console.log(err.message); | ||
}) | ||
.pipe(concat()) | ||
@@ -64,6 +67,1 @@ .pipe(gulp.dest('dest/assets/js/')); | ||
#### options.fail | ||
Type: `Boolean` | ||
Whether to fail if dependency is not found (optional, defaults to ```true```). | ||
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
7099
133
66
Updatedgulp-util@~2.2.17