-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathgulpfile.js
57 lines (47 loc) · 1.42 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
53
54
55
56
57
var gulp = require('gulp'),
script = require('./build-tasks/script'),
style = require('./build-tasks/style'),
markup = require('./build-tasks/markup'),
tmpl = require('./build-tasks/tmpl'),
deploy = require('./build-tasks/deploy'),
server = require('./build-tasks/serve'),
assets = require('./build-tasks/assets');
gulp.task('serve', ['build:complete'], server.start);
gulp.task('script:compile', ['tmpl:compile'], script.compile);
gulp.task('script:watch', script.watch);
gulp.task('style:compile', style.compile);
gulp.task('style:watch', style.watch);
gulp.task('markup:compile', markup.compile);
gulp.task('markup:watch', markup.watch);
gulp.task('tmpl:compile', tmpl.compile);
gulp.task('tmpl:watch', tmpl.watch);
gulp.task('vendor:scripts:publish', assets.scripts);
gulp.task('vendor:fonts:publish', assets.fonts);
gulp.task('vendor:styles:publish', assets.styles);
gulp.task('img:publish', assets.img);
gulp.task('json:publish', assets.json);
gulp.task('vendor:publish', [
'vendor:scripts:publish',
'vendor:styles:publish',
'vendor:fonts:publish',
'img:publish',
'json:publish'
]);
gulp.task('deploy', ['build:complete'], deploy.deploy);
gulp.task('build:complete', [
'markup:compile',
'tmpl:compile',
'script:compile',
'vendor:publish',
'style:compile'
]);
gulp.task('watch', [
'markup:watch',
'tmpl:watch',
'script:watch',
'style:watch'
]);
gulp.task('default', [
'serve',
'watch'
]);