forked from uswds/uswds-sandbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
46 lines (37 loc) · 1.09 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
42
43
44
45
46
const { series } = require("gulp");
const uswds = require("@uswds/compile");
/*
----------------------------------------
PATHS
----------------------------------------
- All paths are relative to the
project root
- Don't use a trailing `/` for path
names
----------------------------------------
*/
uswds.settings.version = 3;
// Project Sass source directory
uswds.paths.dist.theme = "./src/_styles";
// Images destination
uswds.paths.dist.img = "./src/assets/img";
// Fonts destination
uswds.paths.dist.fonts = "./src/assets/fonts";
// Javascript destination
uswds.paths.dist.js = "./src/assets/js";
// Compiled CSS destination
uswds.paths.dist.css = "./_site/assets/css";
/*
----------------------------------------
TASKS
----------------------------------------
*/
exports.compileIcons = uswds.compileIcons;
exports.copyFonts = uswds.copyFonts;
exports.copyImages = uswds.copyImages;
exports.copyJS = uswds.copyJS;
exports.copyAssets = uswds.copyAssets;
exports.updateUswds = uswds.updateUswds;
exports.buildSass = uswds.compileSass;
exports.watchSass = uswds.watch;
exports.default = uswds.watch;