forked from openedx/course-discovery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
35 lines (32 loc) · 787 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
35
'use strict';
var gulp = require('gulp'),
jscs = require('gulp-jscs'),
path = require('path'),
paths = {
spec: [
'course_discovery/static/js/**/*.js',
'course_discovery/static/templates/**/*.js'
],
lint: [
'build.js',
'gulpfile.js',
'course_discovery/static/js/**/*.js',
'course_discovery/static/js/test/**/*.js'
]
};
/**
* Runs the JavaScript Code Style (JSCS) linter.
*
* http://jscs.info/
*/
gulp.task('jscs', function () {
return gulp.src(paths.lint)
.pipe(jscs());
});
/**
* Monitors the source and test files, running tests
* and linters when changes detected.
*/
gulp.task('watch', function () {
gulp.watch(paths.spec, ['jscs']);
});