Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
PHAM Paul (EnergyQ) authored and PHAM Paul (EnergyQ) committed Apr 13, 2021
1 parent fe01a21 commit ede376b
Show file tree
Hide file tree
Showing 3 changed files with 1,085 additions and 1,233 deletions.
11 changes: 6 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@ gulp.task('js', function () {
.pipe(gulp.dest(`dist/${argv.target}/js`));
});

gulp.task('manifest', ['ui', 'img', 'js'], function (cb) {
gulp.task('ui', gulp.series(gulp.parallel('html-ui', 'js-ui', 'sass-ui')));

gulp.task('manifest', gulp.series(gulp.parallel('ui', 'img', 'js'), function (cb) {
var manifest = manifestBuilder.build(argv.target, buildVersion);
var manifestJson = JSON.stringify(manifest, null, 2);
return fs.writeFile(`dist/${argv.target}/manifest.json`, manifestJson, cb)
});
}));

gulp.task('ui', ['html-ui', 'js-ui', 'sass-ui']);
gulp.task('build', ['manifest', 'ui', 'img', 'js']);
gulp.task('default', ['build']);
gulp.task('build', gulp.series(gulp.parallel('manifest', 'ui', 'img', 'js')));
gulp.task('default', gulp.series('build'));
Loading

1 comment on commit ede376b

@pcpinme
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using the latest NPM packages to build.

Please sign in to comment.