Skip to content

Commit

Permalink
Update gulp to the latest version 🚀 (#205)
Browse files Browse the repository at this point in the history
* chore(package): update gulp to version 4.0.0
* Fix breaking gulp 4 changes for tasks
  • Loading branch information
greenkeeper[bot] authored and bingenito committed Jan 3, 2019
1 parent ed65c8f commit bf2d896
Show file tree
Hide file tree
Showing 14 changed files with 7,520 additions and 3,361 deletions.
2 changes: 1 addition & 1 deletion .gulp/tasks/clean.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var clean = require('gulp-clean');

module.exports = function (gulp, path) {
return function () {
return gulp.src(path, { read: false })
return gulp.src(path, { read: false, allowEmpty: true })
.pipe(clean());
};
}
4 changes: 3 additions & 1 deletion .gulp/tasks/dts.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ var dts = require('dts-bundle');

module.exports = function (gulp, name, main, out) {
return function () {
return dts.bundle({
dts.bundle({
name: name,
main: main,
out: out,
verbose: false,
outputAsModuleFolder: true
});

return Promise.resolve();
};
}

2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var gulp = require('gulp'),

gulp.task('test', require('./.gulp/tasks/tests')(gulp, gulpConfig));

gulp.task("server", [], function () {
gulp.task("server", function () {
return gulp.src(['examples/web', 'packages/desktopjs/dist', 'packages/desktopjs-electron/dist', 'packages/desktopjs-openfin/dist'])
.pipe(webserver({
fallback: 'index.html',
Expand Down
Loading

0 comments on commit bf2d896

Please sign in to comment.