forked from USDA-SCINet/scinet-site
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
34 lines (26 loc) · 692 Bytes
/
gulpfile.js
File metadata and controls
34 lines (26 loc) · 692 Bytes
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
/* gulpfile.js */
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
*/
let mainPath = './_uswds';
let resourcesPath = `./assets/uswds`;
uswds.paths.dist.img = `${resourcesPath}/img`;
uswds.paths.dist.fonts = `${resourcesPath}/fonts`;
uswds.paths.dist.js = `${resourcesPath}/js`;
uswds.paths.dist.css = `_sass`;
uswds.paths.dist.sass = `${mainPath}/sass`;
uswds.paths.dist.theme = `${mainPath}`;
/**
* Exports
* Add as many as you need
*/
exports.compile = uswds.compile;
exports.watch = uswds.watch;
exports.update = uswds.updateUswds;