Initial USWDS install

This commit is contained in:
Jonathan Bobel
2023-04-24 14:57:35 -04:00
parent 6587ed5223
commit eaf3681ae1
2598 changed files with 12404 additions and 6 deletions

View File

@@ -257,3 +257,32 @@ exports.lint = series(lint.sass, lint.js);
// Optional: recompile on changes
exports.watch = series(defaultTask, watchForChanges);
// 3. Compile USWDS
/**
* Import uswds-compile
*/
const uswds = require("@uswds/compile");
/**
* USWDS version
* Set the major version of USWDS you're using
* (Current options are the numbers 2 or 3)
*/
uswds.settings.version = 3;
/**
* Path settings
* Set as many as you need
*/
uswds.paths.dist.css = './app/static/css';
uswds.paths.dist.theme = './app/assets/sass/uswds';
/**
* Exports
* Add as many as you need
*/
exports.init = uswds.init;
exports.compile = uswds.compile;
exports.watch = uswds.watch;