forked from ffrgb/meshviewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
39 lines (33 loc) · 1.03 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
const gulp = require('gulp');
const plugins = require('gulp-load-plugins')();
const config = require('./gulp/config')();
const env = {
development: plugins.environments.development,
production: plugins.environments.production
};
// Default environment is production
plugins.environments.current(env.production);
function getTask(task) {
return require('./gulp/tasks/' + task)(gulp, plugins, config, env);
}
gulp.task('generate-favicon',
getTask('favicon')
);
require('./gulp/serve')(gulp, plugins, config, env);
gulp.task('serve',
gulp.series(
getTask('setDevelopment'),
gulp.parallel(getTask('eslint'), getTask('sasslint')),
gulp.parallel(getTask('copy'), getTask('javascript'), getTask('sass'), getTask('jsonMinify')),
getTask('html'),
gulp.parallel('watch', 'ws')
)
);
gulp.task('default',
gulp.series(
gulp.parallel(getTask('eslint'), getTask('sasslint')),
gulp.parallel(getTask('copy'), getTask('javascript'), getTask('sass'), getTask('jsonMinify')),
getTask('html'),
getTask('clean')
)
);