Skip to content

Commit

Permalink
Adds support for saving to different parent directory
Browse files Browse the repository at this point in the history
  • Loading branch information
danielxvu authored Oct 1, 2023
1 parent 0fceab8 commit 599d86e
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions contrib/sheet-pixie/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,9 @@ async function onSheetChange(sheetDir: string) {
const cssRes = await tryCss(Bun.file(`${sheetDir}/${cssPath}`), advanced);
const { css, rawCss } = cssRes;

const data = {
characterSheet: {
css,
rawCss,
html,
mancertemplates,
rolltemplates,
sheetworkers,
},
};

const distDir = `${sheetDir}/dist`;
const distDir = `${process.env.DEST_DIR}/${sheetDir}/dist`;
rmSync(distDir, { recursive: true, force: true });
mkdirSync(distDir);
mkdirSync(distDir, { recursive: true });
await Promise.all([
saveToFile(`${distDir}/index.html`, html),
saveToFile(`${distDir}/index.css`, css),
Expand Down

0 comments on commit 599d86e

Please sign in to comment.