commit
bc02d72576
64 files changed
+9366
No files matched your search
@@ -0,0 +1,23 @@
|
||||
import { copyFileSync, existsSync, mkdirSync } from "node:fs";
|
||||
import { dirname, join } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const root = join(dirname(fileURLToPath(import.meta.url)), "..");
|
||||
|
||||
const copies = [
|
||||
["src/data/gallery.defaults.json", "src/data/gallery.json"],
|
||||
["docs/IMPLEMENTATION_DECISIONS.example.md", "docs/IMPLEMENTATION_DECISIONS.md"],
|
||||
["PRDs/PRD.template.md", "PRDs/PRD.md"],
|
||||
];
|
||||
|
||||
mkdirSync(join(root, "public/gallery/user"), { recursive: true });
|
||||
|
||||
for (const [from, to] of copies) {
|
||||
const dest = join(root, to);
|
||||
if (existsSync(dest)) {
|
||||
console.log(`skip (exists): ${to}`);
|
||||
continue;
|
||||
}
|
||||
copyFileSync(join(root, from), dest);
|
||||
console.log(`created: ${to}`);
|
||||
}
|
||||
Reference in new issue
Block a user