No output
Closed this issue · 2 comments
xvilo commented
Hello,
For some reason, my task stopped giving any output. The original task's code is:
// BUILD
gulp.task("build", ["javascript"], function() {
pump([
gulp.src(paths.dist + paths.scriptOutput),
uglify(),
rename(paths.scriptBuild),
gulp.dest(paths.dist)]
)
}
This works:
// BUILD
gulp.task("build", ["javascript"], function() {
pump([
gulp.src(paths.dist + paths.scriptOutput),
rename(paths.scriptBuild),
gulp.dest(paths.dist)]
)
}
But obviously that isn't minified. I get no errors.
$ gulp build
[17:33:01] Using gulpfile ~/projects/xxxxx/gulpfile.js
[17:33:01] Starting 'javascript'...
[17:33:10] Finished 'javascript' after 8.19 s
[17:33:10] Starting 'build'...
[17:33:10] Finished 'build' after 32 ms
xvilo commented
I'm both on MacOS and FreeBSD (no diffrence). My package.json:
"devDependencies": {
"@types/ckeditor": "^4.9.0",
"@types/es6-promise": "^3.3.0",
"babel-core": "^6.26.3",
"babel-preset-env": "^1.7.0",
"browserify": "^16.2.2",
"gulp": "^3.9.1",
"gulp-babel": "^7.0.1",
"gulp-rename": "^1.2.3",
"gulp-uglify": "^3.0.0",
"mixbook-http-client": "^0.4.0",
"pump": "^3.0.0",
"q": "^1.5.1",
"ts-events": "^3.2.0",
"tsify": "^4.0.0",
"typescript": "^2.2.2",
"typescript-eslint-parser": "^2.1.0",
"vinyl-source-stream": "^2.0.0"
},
terinjokes commented
@xvilo The first thing I notice is that you're not passing the callback variable to pump
like shown in the examples. What happens when you give this a try:
// BUILD
gulp.task("build", ["javascript"], function(cb) {
pump(
[
gulp.src(paths.dist + paths.scriptOutput),
uglify(),
rename(paths.scriptBuild),
gulp.dest(paths.dist)
],
cb
)
}