Skip to content

Commit

Permalink
feat(svg): add source svgs to distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Sep 25, 2019
1 parent 6f1b29a commit 279de85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ async function build(rootDir: string) {
const iconDir = join(rootDir, 'icons');
const distDir = join(rootDir, 'dist');
const distIoniconsDir = join(distDir, 'ionicons');
const destSrcSvgDir = join(distDir, 'svg');

await Promise.all([
fs.emptyDir(iconDir),
fs.emptyDir(distDir),
fs.emptyDir(destSrcSvgDir),
]);
await fs.emptyDir(distIoniconsDir);

Expand All @@ -34,6 +36,8 @@ async function build(rootDir: string) {
await createCheatsheet(version, rootDir, distDir, svgSymbolsContent, srcSvgData);

await copyToTesting(rootDir, distDir, srcSvgData);

await fs.copy(srcSvgDir, destSrcSvgDir);
}


Expand Down

0 comments on commit 279de85

Please # to comment.