Restore v0.1 and v0.2 archives with separate progress, publish the curved v0.3 campaign, and document the original 24-level design with reproducible evidence. Refine board presentation and movement, and keep video lab tooling within its own directory.
16 lines
1.0 KiB
JavaScript
16 lines
1.0 KiB
JavaScript
import { cp, mkdir, rm, writeFile } from 'node:fs/promises';
|
|
const root = new URL('../', import.meta.url);
|
|
const out = new URL('dist/', root);
|
|
await rm(out, { recursive: true, force: true });
|
|
await mkdir(new URL('labs/hex-video/', out), { recursive: true });
|
|
await mkdir(new URL('src/', out), { recursive: true });
|
|
for (const name of ['index.html','lab.js','lab.css','fixture.js','designv2.md','designv2.html','README.md','reference']) {
|
|
await cp(new URL(name, root), new URL('labs/hex-video/'+name, out), { recursive: true });
|
|
}
|
|
for (const name of ['core.js','geometry.js','path-math.js']) {
|
|
await cp(new URL('../../src/'+name, root), new URL('src/'+name, out));
|
|
}
|
|
await cp(new URL('../../Design.md', root), new URL('Design.md', out));
|
|
await writeFile(new URL('index.html', out), '<!doctype html><html lang="zh-CN"><meta charset="utf-8"><meta http-equiv="refresh" content="0;url=labs/hex-video/index.html"><title>HEX Video Lab</title><a href="labs/hex-video/index.html">打开 HEX Video Lab</a></html>');
|
|
console.log('Hex Video build ready in labs/hex-video/dist/');
|