-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
40 lines (32 loc) · 1015 Bytes
/
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
/* gulpfile.js */
/* See https://designsystem.digital.gov/documentation/getting-started/developers/phase-two-compile/#using-uswds-compile-2
/**
* Import uswds-compile
*/
const uswds = require("@uswds/compile");
/**
* USWDS version
* Set the version of USWDS you're using (2 or 3)
*/
uswds.settings.version = 3;
/**
* Path settings
* Set as many as you need
*/
// uswds.paths.src is where to find USWDS source files
uswds.paths.src.img = "./node_modules/@uswds/uswds/dist/img";
uswds.paths.src.projectSass = "./src/sass";
// uswds.paths.dist is where Gulp will put assets in the project
uswds.paths.dist.theme = "./src/sass";
uswds.paths.dist.img = "./src/assets/uswds/img";
uswds.paths.dist.fonts = "./src/assets/uswds/fonts";
uswds.paths.dist.js = "./src/assets/uswds/js";
uswds.paths.dist.css = "./src/assets/uswds/css";
/**
* Exports
* Add as many as you need
*/
exports.compile = uswds.compile;
exports.compileSass = uswds.compileSass;
exports.init = uswds.init;
exports.watch = uswds.watch;