forked from openscope/openscope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGulpfile.js
41 lines (34 loc) · 1.22 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
40
41
/* eslint-disable */
const gulp = require('gulp');
const runSequence = require('run-sequence');
const OPTIONS = require('./tools/paths');
const buildMarkup = require('./tools/tasks/buildMarkup');
const jsonAssembler = require('./tools/tasks/jsonAssembler');
////////////////////////////////////////////////////////////////////
// EXTERNAL TASKS
////////////////////////////////////////////////////////////////////
require('./tools/tasks/scriptTasks')(gulp, OPTIONS);
require('./tools/tasks/styleTasks')(gulp, OPTIONS);
require('./tools/tasks/mediaTasks')(gulp, OPTIONS);
require('./tools/tasks/utilityTasks')(gulp, OPTIONS);
////////////////////////////////////////////////////////////////////
// UNIFIED GULP TASKS
////////////////////////////////////////////////////////////////////
gulp.task('markup', () => buildMarkup());
gulp.task('json:assemble', () => jsonAssembler());
gulp.task('lint', ['lint:scripts']);
gulp.task('build', () => {
runSequence(
'clean',
[
'build:scripts',
'build:server',
'build:styles',
'markup'
],
'json:assemble',
'copy:dist'
)
});
gulp.task('watch', ['watch:scripts', 'watch:styles']);
gulp.task('default', ['build']);