Created
March 26, 2014 00:12
-
-
Save anonymous/9774298 to your computer and use it in GitHub Desktop.
gulp ENOENT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp = require('gulp'); | |
rename = require('gulp-rename'); | |
gulp.task('enoent', function () { | |
gulp.src('./this-file-does-not-exist') | |
.pipe(rename('enoent')) | |
.pipe(gulp.dest('.')); | |
}); | |
gulp.task('ok', function () { | |
gulp.src('./this-one-does') | |
.pipe(rename('ok')) | |
.pipe(gulp.dest('.')); | |
}); | |
gulp.task('default', ['enoent', 'ok']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "gulp-enoent", | |
"version": "0.0.0", | |
"description": "Gulp Fails Silently on ENOENT. This behavior is not cool.", | |
"main": "gulpfile.js", | |
"dependencies": { | |
"gulp": "~3.5.6", | |
"gulp-rename": "~1.2.0" | |
}, | |
"devDependencies": { | |
"gulp": "^3.5.6", | |
"gulp-rename": "^1.2.0" | |
}, | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sample contents |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment