Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:uswds/uswds-compile into cm-POAM…
Browse files Browse the repository at this point in the history
…-july-2024
  • Loading branch information
mejiaj committed Jul 15, 2024
2 parents ce50196 + 2d7750a commit d169d3c
Show file tree
Hide file tree
Showing 3 changed files with 715 additions and 3,092 deletions.
17 changes: 12 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,18 @@ const copy = {
colors.blue,
`Copy USWDS fonts: ${getSrcFrom("fonts")}${paths.dist.fonts}`
);
return src(`${getSrcFrom("fonts")}/**/**`.replace("//", "/")).pipe(
dest(paths.dist.fonts)
);
return src(`${getSrcFrom("fonts")}/**/**`.replace("//", "/"), {
encoding: false,
}).pipe(dest(paths.dist.fonts));
},
images() {
log(
colors.blue,
`Copy USWDS images: ${getSrcFrom("img")}${paths.dist.img}`
);
return src(`${getSrcFrom("img")}/**/**`.replace("//", "/")).pipe(
return src(`${getSrcFrom("img")}/**/**`.replace("//", "/"), {
encoding: false,
}).pipe(
dest(paths.dist.img)
);
},
Expand Down Expand Up @@ -156,7 +158,10 @@ function getUswdsVersion() {
if (settings.version === 3) {
uswdsPackage = "@uswds/uswds";
}
const packagePath = path.join(path.dirname(require.resolve(uswdsPackage)), '../../');
const packagePath = path.join(
path.dirname(require.resolve(uswdsPackage)),
"../../"
);
const version = require(`${packagePath}/package.json`).version;
return version;
}
Expand Down Expand Up @@ -245,6 +250,7 @@ function buildSprite() {

return src(spritePaths, {
allowEmpty: true,
encoding: false
})
.pipe(svgSprite())
.pipe(rename("usa-icons.svg"))
Expand All @@ -255,6 +261,7 @@ function buildSprite() {
function renameSprite() {
return src(`${paths.dist.img}/usa-icons.svg`.replace("//", "/"), {
allowEmpty: true,
encoding: false
})
.pipe(rename(`${paths.dist.img}/sprite.svg`.replace("//", "/")))
.pipe(dest(`./`));
Expand Down
Loading

0 comments on commit d169d3c

Please sign in to comment.