forked from feathericon/feathericon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.babel.js
38 lines (31 loc) · 997 Bytes
/
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
33
34
35
36
37
38
'use strict';
//---------------------------------------------------------------------------
// Dependences
//---------------------------------------------------------------------------
import paths from './gulp/config';
import gulp from 'gulp';
import rs from 'run-sequence';
import './gulp/docs';
import './gulp/compile';
//---------------------------------------------------------------------------
// Gulp Tasks
//---------------------------------------------------------------------------
gulp.task('before:compile',() => {
rs('clean', 'export:svg');
});
gulp.task('after:compile', () => {
rs('minify:css', 'sprite:svg');
});
gulp.task('watch', () => {
gulp.watch([paths.srcSvg], ['sprite:svg']);
gulp.watch([paths.docs + '*.html'], ['bs:reload']);
gulp.watch([paths.srcPug + '**/*.pug'], ['pug']);
gulp.watch([paths.srcScss + '**/*.scss'], ['sass']);
});
gulp.task('server', [
'browserSync',
'bs:reload',
'pug',
'sass',
'watch'
]);