-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathgulpfile.babel.js
32 lines (28 loc) · 1.06 KB
/
gulpfile.babel.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
import gulp from 'gulp';
import config from './gulp/config';
import path from './gulp/path';
import Css from './gulp/tasks/css.task';
import Js from './gulp/tasks/js.task';
import Html from './gulp/tasks/html.task';
import Fonts from './gulp/tasks/fonts.task';
import Images from './gulp/tasks/images.task';
import Clean from './gulp/tasks/clean.task';
gulp.task('js:lint', Js.lint);
gulp.task('js:build', ['js:lint'], Js.build);
gulp.task('style:build', Css.build);
gulp.task('html:build', Html.build);
gulp.task('fonts:build', Fonts.build);
gulp.task('images:build', Images.build);
gulp.task('clean', Clean.delete);
gulp.task('build', ['images:build', 'js:build', 'style:build', 'html:build', 'fonts:build']);
gulp.task('watch', () => {
gulp.watch(path.all.js, () => {
gulp.start('js:lint');
Js.watch();
});
gulp.watch(path.all.style, ['style:build']);
gulp.watch(path.all.template, ['html:build']);
gulp.watch(path.all.fonts, ['fonts:build']);
gulp.watch(path.all.images, ['images:build']);
});
gulp.task('default', ['build', 'watch']);