forked from cr0cK/coolpoll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
53 lines (39 loc) · 1.48 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
'use strict';
var gulp = require('gulp'),
tasks = require('./gulp/tasks');
gulp.task('_clean', tasks.clean);
gulp.task('_build:font', ['_clean'], tasks.buildFont);
gulp.task('_build:less', ['_clean'], tasks.buildLess);
gulp.task('_build:bowerComponents', ['_clean'], tasks.buildBowerComponents);
gulp.task('_build:js', ['_clean'], tasks.buildJS);
gulp.task('_build:html', ['_clean'], tasks.buildHtml);
gulp.task('_compile:js', ['_clean'], tasks.compileJS);
gulp.task('_compile:html', ['_clean'], tasks.compileHtml);
gulp.task('_watch:json', tasks.copyJSON);
gulp.task('_watch:less', tasks.buildLess);
gulp.task('_watch:js', ['_lint:js'], tasks.buildJS);
gulp.task('_watch:html', tasks.buildHtml);
gulp.task('_lint:js', tasks.lintJS);
gulp.task('_copy:json', ['_clean'], tasks.copyJSON);
gulp.task('_copy:graphics', ['_clean'], tasks.copyGraphics);
gulp.task('_copy:all', ['_copy:json', '_copy:graphics']);
gulp.task('_watch', ['build:all'], function () {
gulp.watch('./less/**/*', ['_watch:less']);
gulp.watch('./js/**/*', ['_watch:js']);
gulp.watch('./html/*.html', ['_watch:html']);
gulp.watch('./json/*.json', ['_watch:json']);
});
gulp.task('watch', ['_watch']);
gulp.task('build:all', [
'_build:font', '_build:less',
'_build:bowerComponents', '_build:js',
'_copy:all',
'_build:html'
]);
gulp.task('compile:all', [
'_build:font', '_build:less',
'_build:bowerComponents', '_compile:js',
'_copy:all',
'_compile:html'
]);
gulp.task('serve:dev', tasks.serveDev);