forked from openscope/openscope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gulpfile.js
38 lines (31 loc) · 1.36 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
/* eslint-disable */
const gulp = require('gulp');
const OPTIONS = require('./tools/options');
const buildMarkup = require('./tools/tasks/buildMarkup');
const jsonAssembler = require('./tools/tasks/jsonAssembler');
const markdownAssembler = require('./tools/tasks/markdownAssembler');
const copyChangelog = require('./tools/tasks/copyChangelog');
require('./tools/tasks/scriptTasks')(gulp, OPTIONS);
require('./tools/tasks/styleTasks')(gulp, OPTIONS);
require('./tools/tasks/mediaTasks')(gulp, OPTIONS);
require('./tools/tasks/utilityTasks')(gulp, OPTIONS);
gulp.task(OPTIONS.TASKS.MARKUP, gulp.series(buildMarkup));
gulp.task(OPTIONS.TASKS.JSON.ASSEMBLE, gulp.series(jsonAssembler));
gulp.task(OPTIONS.TASKS.MARKDOWN.ASSEMBLE, gulp.series(markdownAssembler));
gulp.task(OPTIONS.TASKS.MARKDOWN.CHANGELOG, gulp.series(copyChangelog));
const buildAndMarkup = gulp.parallel(
OPTIONS.TASKS.BUILD.SCRIPTS,
OPTIONS.TASKS.BUILD.SERVER,
OPTIONS.TASKS.BUILD.STYLES,
OPTIONS.TASKS.MARKUP
);
gulp.task(OPTIONS.TASKS.BUILD.DEFAULT, gulp.series(
OPTIONS.TASKS.CLEAN.DEFAULT,
buildAndMarkup,
jsonAssembler,
markdownAssembler,
copyChangelog,
OPTIONS.TASKS.COPY.DIST
));
gulp.task(OPTIONS.TASKS.WATCH.DEFAULT, gulp.parallel(OPTIONS.TASKS.WATCH.SCRIPTS, OPTIONS.TASKS.WATCH.STYLES));
gulp.task(OPTIONS.TASKS.DEFAULT, gulp.series(OPTIONS.TASKS.BUILD.DEFAULT));