-
Notifications
You must be signed in to change notification settings - Fork 52
/
gulpfile.mjs
33 lines (24 loc) · 836 Bytes
/
gulpfile.mjs
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
/** Modified copy of file found in dnd5e (https://github.com/foundryvtt/dnd5e/blob/master/LICENSE.txt) */
import gulp from "gulp";
import * as css from "./utils/css.mjs";
import * as javascript from "./utils/javascript.mjs";
import * as compendia from "./utils/compendia.mjs";
// Default export - build CSS and watch for updates
export default gulp.series(
gulp.parallel(css.compile),
css.watchUpdates
);
// CSS compiling
export const buildCSS = gulp.series(css.compile);
// Pack compiling
export const buildPacks = gulp.series(compendia.compile);
// Javascript linting
export const lint = gulp.series(javascript.lint);
//Javascript bundling
export const bundle = gulp.series(javascript.bundle);
// Build all artifacts
export const buildAll = gulp.parallel(
css.compile,
compendia.compile,
javascript.bundle
);