diff options
author | Alberto García Hierro <alberto@garciahierro.com> | 2018-07-09 00:17:10 +0300 |
---|---|---|
committer | Alberto García Hierro <alberto@garciahierro.com> | 2018-07-09 00:17:10 +0300 |
commit | 78312e52ee9dfecf24c8bb43585af973ee0b2ee4 (patch) | |
tree | 13b5717ef2709f21ccfceb49e1f7cdb7dfb94ab8 /gulpfile.js | |
parent | 040b0c5fa4f0562ea08f4008f68e662468dd58a8 (diff) |
Update dependencies to be able to run with node 10
- Update gulp to 4.0.0
- Update nw.js to 0.31.4-sdk
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gulpfile.js b/gulpfile.js index 531e30e4..210ae75b 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -119,7 +119,7 @@ sources.mapJs = [ sources.receiverCss = [ './src/css/tabs/receiver_msp.css', - './css/opensans_webfontkit/fonts.css', + './src/css/opensans_webfontkit/fonts.css', './js/libraries/jquery.nouislider.min.css', './js/libraries/jquery.nouislider.pips.min.css', ]; @@ -184,15 +184,15 @@ var buildJsTasks = []; } })(); -gulp.task('build-all-js', buildJsTasks); -gulp.task('build-all-css', buildCssTasks); -gulp.task('build', ['build-all-css', 'build-all-js']); +gulp.task('build-all-js', gulp.parallel(buildJsTasks)) +gulp.task('build-all-css', gulp.parallel(buildCssTasks)); +gulp.task('build', gulp.parallel('build-all-css', 'build-all-js')); gulp.task('clean', function() { return del(['./build/**', './dist/**'], {force: true}); }); // Real work for dist task. Done in another task to call it via // run-sequence. -gulp.task('dist-build', ['build'], function() { +gulp.task('dist-build', gulp.series('build'), function() { var distSources = [ './package.json', // For NW.js './manifest.json', // For Chrome app @@ -218,7 +218,7 @@ gulp.task('dist', function(done) { }); // Create app directories in ./apps -gulp.task('apps', ['dist'], function(done) { +gulp.task('apps', gulp.series('dist'), function(done) { var builder = new NwBuilder({ files: './dist/**/*', buildDir: appsDir, @@ -294,7 +294,7 @@ gulp.task('release-linux64', function() { //For build only linux, without install Wine //run task `apps` get error //Error building NW apps:Error while updating the Windows icon. Wine (winehq.org) must be installed to add custom icons from Mac and Linux. -gulp.task('release-only-linux', ['dist'], function (done) { +gulp.task('release-only-linux', gulp.series('dist'), function (done) { var builder = new NwBuilder({ files: './dist/**/*', buildDir: appsDir, @@ -323,8 +323,8 @@ gulp.task('release', function() { gulp.task('watch', function () { for(var k in output) { - gulp.watch(sources[k], [get_task_name(k)]); + gulp.watch(sources[k], gulp.series(get_task_name(k))); } }); -gulp.task('default', ['build']); +gulp.task('default', gulp.series('build')); |