forked from Netflix/falcor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
34 lines (28 loc) · 1012 Bytes
/
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
32
33
34
var gulp = require("gulp");
var eslint = require("gulp-eslint");
var gulpShell = require("gulp-shell");
// Registers build tasks
require("./build/gulp-clean");
require("./build/gulp-build");
require("./build/gulp-test");
require("./build/gulp-perf");
var srcDir = "lib";
gulp.task("lint", function() {
return gulp.src(["*.js", srcDir + "/**/*.js"]).
pipe(eslint({
globals: {
"require": false,
"module": false
},
reset: true, // dz: remove me after linting is finished, else i can"t do one at the time
useEslintrc: true
})).
pipe(eslint.format()).
pipe(eslint.failOnError()); // dz: change back after finishing to failAfterError
});
gulp.task("doc", ["clean.doc", "doc-d"]);
gulp.task("doc-d", gulpShell.task([
"./node_modules/.bin/jsdoc lib -r -d doc -c ./build/jsdoc.json --verbose"
]));
// Run in serial to fail build if lint fails.
gulp.task("default", ["build-with-lint", "lint"]);