mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 09:02:45 +08:00
Run eslint before compiling JavaScript
This commit is contained in:
parent
36971482a0
commit
53ece73da0
1 changed files with 6 additions and 5 deletions
11
tasks/js.js
11
tasks/js.js
|
@ -127,9 +127,10 @@ const jsLint = () =>
|
|||
.pipe(eslint.format())
|
||||
.pipe(eslint.failAfterError());
|
||||
|
||||
const jsState1 = gulp.series(jsLint);
|
||||
const jsState3 = gulp.parallel(jsBoot, jsServiceWorker, jsOpenPGP, jsOpenPGPWorker, jsLibs, jsApp, jsAdmin);
|
||||
const jsState2 = gulp.series(jsClean, jsState3, jsMin);
|
||||
|
||||
exports.jsLint = jsLint;
|
||||
exports.js = gulp.parallel(jsState1, jsState2);
|
||||
exports.js = gulp.series(
|
||||
jsClean,
|
||||
jsLint,
|
||||
gulp.parallel(jsBoot, jsServiceWorker, jsOpenPGP, jsOpenPGPWorker, jsLibs, jsApp, jsAdmin),
|
||||
jsMin
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue