Add three playable puzzle variants in an isolated lab

This commit is contained in:
cabinw
2026-09-13 12:19:13 +08:00
parent e92cccba82
commit d1dffa9338
10 changed files with 7934 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
import { cp, mkdir, rm } from 'node:fs/promises';
const out=new URL('../dist/',import.meta.url);
await rm(out,{recursive:true,force:true});await mkdir(out,{recursive:true});
for(const name of ['index.html','design-showcase.html','style.css','src','levels','assets','design','Design.md','Design.html'])await cp(new URL('../'+name,import.meta.url),new URL(name,out),{recursive:true});
for(const name of ['index.html','design-showcase.html','style.css','src','levels','assets','design','Design.md','Design.html','labs/variants'])await cp(new URL('../'+name,import.meta.url),new URL(name,out),{recursive:true});
console.log('Static build ready in dist/');