Skip to content

Commit

Permalink
chore: copy svgs to appropriate folders for distribution use
Browse files Browse the repository at this point in the history
  • Loading branch information
ju-Skinner committed Jan 5, 2024
1 parent 0918252 commit efafead
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions scripts/collection-copy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ export const collectionCopy = async (rootDir: string) => {
const optimizedSrc = join(rootDir, 'src', 'svg');
const distSvgDest = join(rootDir, 'dist', 'svg');
const collectionDest = join(rootDir, 'dist', 'collection', 'components', 'pds-icon', 'svg');
const pdsIconsSvsDest = join(rootDir, 'dist', 'pds-icons', 'svg');

await fs.copy(optimizedSrc, collectionDest);
await fs.copy(optimizedSrc, distSvgDest);
await fs.copy(optimizedSrc, pdsIconsSvsDest)

// we don't want to copy the src/svgs to the collection (distribution)
await fs.remove(join(rootDir, 'dist', 'collection', 'svg'));
Expand Down
3 changes: 2 additions & 1 deletion stencil.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export const config: Config = {
{
type: 'www',
copy: [
{ src: '../changelogs', dest: 'changelogs'}
{ src: '../changelogs', dest: 'changelogs'},
{ src:' ./svg/*.svg', dest: './build/svg/'}
],
empty: false,
serviceWorker: null, // disable service workers
Expand Down

0 comments on commit efafead

Please sign in to comment.