-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.babel.js
27 lines (23 loc) · 957 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
import gulp from 'gulp';
import images from './tasks/images';
import icons from './tasks/icons';
import scripts from './tasks/scripts';
import server from './tasks/server';
import styles from './tasks/styles';
import templates from './tasks/templates';
import $ from './tasks/helpers';
// Watch for file changes
const watch = () => {
gulp.watch($.config.images.listen, gulp.series(images, $.reload));
gulp.watch($.config.icons.listen, gulp.series(icons, $.reload));
gulp.watch($.config.scripts.listen, gulp.series(scripts, $.reload));
gulp.watch($.config.styles.listen, gulp.series(styles));
gulp.watch($.config.templates.listen, gulp.series(templates, $.reload));
};
// Build the "build" folder by running all of the above tasks
gulp.task('build',
gulp.parallel(gulp.series(templates, styles), images, icons, scripts));
gulp.task('default',
gulp.series('build', server, watch));
gulp.task('test',
gulp.series(scripts));