-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgulpfile.js
More file actions
32 lines (22 loc) · 739 Bytes
/
Copy pathgulpfile.js
File metadata and controls
32 lines (22 loc) · 739 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
27
28
29
30
'use strict';
var gulp = require('gulp');
var runSequence = require('run-sequence');
var plugins = require('gulp-load-plugins')();
var config = {
source: ['**/*.js', '!node_modules/**'],
};
gulp.task('clear', function() { console.log('\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n'); });
gulp.task('jshint', function () {
return gulp.src(config.source)
.pipe(plugins.plumber())
.pipe(plugins.jshint('.jshintrc'))
.pipe(plugins.jshint.reporter('jshint-stylish'));
});
gulp.task('dev-iteration', function() {
return runSequence('clear', 'jshint');
});
gulp.task('dev', ['dev-iteration'], function() {
gulp.watch(config.source, ['dev-iteration']);
});
gulp.task('help', plugins.taskListing);
gulp.task('default', ['dev-iteration']);