-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
31 lines (26 loc) · 1.1 KB
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*global require */
/*!
* @see {@link https://github.com/mildrenben/surface/blob/master/gulpfile.js}
* @see {@link https://www.webstoemp.com/blog/gulp-setup/}
* @see {@link https://gulpjs.com/plugins/blackList.json}
* @see {@link https://hackernoon.com/how-to-automate-all-the-things-with-gulp-b21a3fc96885}
* @see {@link https://stackoverflow.com/questions/36897877/gulp-error-the-following-tasks-did-not-complete-did-you-forget-to-signal-async}
* @see {@link https://zzz.buzz/2016/11/19/gulp-4-0-upgrade-guide/}
* @see {@link https://blog.khophi.co/migrate-gulp-4-complete-example/}
* @see {@link https://www.joezimjs.com/javascript/complete-guide-upgrading-gulp-4/}
* @see {@link https://codeburst.io/switching-to-gulp-4-0-271ae63530c0}
*/
var gulp = require("gulp");
var eslint = require("gulp-eslint");
var options = {
libbundle: {
src: ["**/libs/**/src/*.js", "!**/node_modules/**"]
},
};
gulp.task("lint-libbundle-js", function () {
return gulp.src(options.libbundle.src)
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError());
});
gulp.task("default", gulp.task("lint-libbundle-js"));