mirror of
https://github.com/GSA/notifications-admin.git
synced 2025-12-09 22:53:27 -05:00
Updated gulp task to be more explicit
This commit is contained in:
12
gulpfile.js
12
gulpfile.js
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user