-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
40 lines (34 loc) · 1.06 KB
/
Copy pathgulpfile.js
File metadata and controls
40 lines (34 loc) · 1.06 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
/** Regular npm dependendencies */
var argv = require('minimist')(process.argv.slice(2));
var gulp = require('gulp');
var pkg = require('./package.json');
/** Gulp dependencies */
var jshint = require('gulp-jshint');
/** Grab-bag of build configuration. */
var config = {
jsVendorFiles: [
'./bower_components/angular/angular.js'
],
jsAppFiles: [
// base services
'./app.js'
]
};
/** *****************************************
* Default Task
** ***************************************** */
gulp.task('default', ['validate']);
/** *****************************************
* Tasks for javascript validation
** ***************************************** */
gulp.task('validate', function() {
return gulp.src(config.jsAppFiles)
.pipe(jshint('.jshintrc'))
.pipe(jshint.reporter(require('jshint-summary')()));
});
/** *****************************************
* Tasks for Watch features
** ***************************************** */
gulp.task('watch', ['default'], function() {
gulp.watch('src/**/*', ['default']);
});