/ proof-of-concept / steelsim21
Sign in
proof-of-concept / steelsim21
steelsim21 / scripts / copy-gallery.mjs
10 lines · 396 BBlameHistoryRaw
1// Copies the generated parameter gallery (without the raw signal cache) into the built site.
2import { cpSync, existsSync, mkdirSync } from "node:fs";
4const src = "docs/gallery";
5const dst = "dist/docs/gallery";
6if (existsSync(src)) {
7 mkdirSync(dst, { recursive: true });
8 cpSync(src, dst, { recursive: true, filter: (p) => !p.includes("/raw") });
9 console.log(`copied ${src} -> ${dst}`);
↑↓ move↵openescclose