-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
42 lines (36 loc) · 1.02 KB
/
gulpfile.js
File metadata and controls
42 lines (36 loc) · 1.02 KB
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
35
36
37
38
39
40
41
42
var gulp = require('gulp'),
shell = require('gulp-shell'),
jshint = require('gulp-jshint'),
stylish = require('jshint-stylish'),
runSequence = require('run-sequence');
var options = require('minimist')(process.argv.slice(2));
gulp.task('default', function() {
//run a sequence of tasks
});
gulp.task('extract', shell.task( [
("node src/index.js")
])
);
gulp.task('jshint-client', function () {
return gulp.src(['./src/sys_ui_script/*.js', './src/sys_script/*.js'])
.pipe(jshint())
.pipe(jshint.reporter('jshint-stylish'));
});
gulp.task('jshint-server', function () {
return gulp.src('./src/sys_script_include/*.js')
.pipe(jshint())
.pipe(jshint.reporter(stylish));
});
gulp.task('jshint', function (callback) {
/**
* This will run in this order:
* jshint-client
* jshint-client and jshint-server in parallel
* jshint-server
* Finally call the callback function
*/
runSequence('jshint-client',
//['jshint-client', 'jshint-server'],
'jshint-server',
callback);
})