forked from WebGLSamples/WebGL2Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
26 lines (21 loc) · 715 Bytes
/
gulpfile.js
File metadata and controls
26 lines (21 loc) · 715 Bytes
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
/*jshint node: true*/
'use strict';
var jshint = require('gulp-jshint');
var gulp = require('gulp');
var jsHintFiles = ['**/*.js', '**/*.html', '!node_modules/**', '!samples/third-party/**'];
gulp.task('default', ['jsHint']);
gulp.task('jsHint', function() {
return gulp.src(jsHintFiles)
.pipe(jshint.extract('auto'))
.pipe(jshint())
.pipe(jshint.reporter('jshint-stylish'))
.pipe(jshint.reporter('fail'));
});
gulp.task('jsHint-watch', function() {
gulp.watch(jsHintFiles).on('change', function(event) {
gulp.src(event.path)
.pipe(jshint.extract('auto'))
.pipe(jshint())
.pipe(jshint.reporter('jshint-stylish'));
});
});