forked from fruition-partners/filesync
-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathgulpfile.js
37 lines (32 loc) · 1.01 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
32
33
34
35
36
37
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('jshint-client', function () {
return gulp.src(['./lib/*.js', './sncapappsfrancedev/ui_scripts/*.js', './sncapappsfrancedev/business_rules/*.js'])
.pipe(jshint())
.pipe(jshint.reporter('jshint-stylish'));
});
gulp.task('jshint-server', function () {
return gulp.src(['./lib/*.js','./sncapappsfrancedev/script_includes/*.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);
})