forked from WikiEducationFoundation/WikiEduDashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.babel.js
33 lines (28 loc) · 858 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
import { series, parallel, task } from 'gulp';
import requireDir from 'require-dir';
import stylesheets from './gulp/tasks/stylesheets';
// Require individual tasks
requireDir('./gulp/tasks', { recurse: true });
task('dev',
series(
'clean',
'set-development',
'set-watch-js',
parallel('i18n', 'copy-static', 'jquery-uls', stylesheets, 'cached-lintjs-watch'),
parallel('webpack', 'watch')
)
);
task('default', series('dev'));
task('hot-dev',
series(
'clean',
'set-development',
parallel('i18n', 'copy-static', 'jquery-uls', 'stylesheets-livereload', 'cached-lintjs-watch'),
parallel('webpack', 'watch'))
);
task('build',
series(
'clean',
parallel('i18n', 'copy-static', 'jquery-uls', stylesheets, 'lintjs'),
parallel('webpack', 'minify'))
);