Updated gulp task to be more explicit

This commit is contained in:
alexjanousekGSA
2025-06-10 20:17:57 -04:00
7 changed files with 4805 additions and 617 deletions

View File

@@ -141,10 +141,16 @@ const styles = async () => {
};
// Task to copy USWDS assets
const copyAssets = async () => {
await uswds.copyAssets();
const copyUSWDSAssets = () => {
return src([
'node_modules/@uswds/uswds/dist/img/**/*',
'node_modules/@uswds/uswds/dist/fonts/**/*'
], { encoding: false })
.pipe(dest(paths.dist + 'img/'))
.pipe(dest(paths.dist + 'fonts/'));
};
// Optional backstopJS task
// Install gulp globally and run `gulp backstopTest`
const backstopTest = (done) => {
@@ -179,7 +185,7 @@ exports.default = series(
copySetTimezone,
copyImages,
copyPDF,
copyAssets,
copyUSWDSAssets,
copyUSWDSJS
);
exports.backstopTest = backstopTest;