-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgulpfile.js
31 lines (26 loc) · 865 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
/* global require */
'use strict';
var gulp = require('gulp'),
runSequence = require('run-sequence');
gulp.task('clean', require('./gulp-tasks/clean'));
gulp.task('test', require('./gulp-tasks/test'));
gulp.task('buildcss', require('./gulp-tasks/buildcss'));
gulp.task('eslint', require('./gulp-tasks/eslint'));
gulp.task('buildjs', require('./gulp-tasks/buildjs'));
gulp.task('minify', require('./gulp-tasks/minify'));
gulp.task('devbuild', function(callback) {
runSequence('clean',
'buildcss',
'buildjs',
callback);
});
// This will run in this order:
// * clean/test/eslint in parallel
// * buildcss/buildjs in parallel
// * minify
gulp.task('fullbuild', function(callback) {
runSequence(['clean', 'test', 'eslint'],
['buildcss', 'buildjs'],
'minify',
callback);
});