-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
52 lines (48 loc) · 1.16 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
var gulp = require('gulp');
var runSequence = require('run-sequence');
var clean = require('./gulp/clean');
var assets = require('./gulp/assets');
var externals = require('./gulp/externals');
var scripts = require('./gulp/scripts');
var html = require('./gulp/html');
var css = require('./gulp/css');
var browserSync = require('./gulp/browser-sync');
var watch = require('./gulp/watch');
var constants = require('./gulp/constants');
gulp.task('clean', clean);
gulp.task('assets', assets);
gulp.task('externals', externals);
gulp.task('scripts', scripts);
gulp.task('html', html);
gulp.task('css', css);
gulp.task('browserSync', browserSync);
gulp.task('watch', watch);
gulp.task('constants', constants);
gulp.task('build', function (callback) {
return runSequence(
'assets',
'externals',
'html',
'css',
'constants',
'scripts',
'browserSync',
callback
);
});
gulp.task('dist', ['clean'], function () {
return gulp.start('build');
});
gulp.task('dev', ['clean'], function (callback) {
return runSequence(
'assets',
'externals',
'html',
'css',
'constants',
'scripts',
'watch',
'browserSync',
callback
);
});