mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03: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.format())
|
||||||
.pipe(eslint.failAfterError());
|
.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.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…
Add table
Add a link
Reference in a new issue