migration to vite/playwright

This commit is contained in:
JFH
2025-11-29 11:31:34 +01:00
parent babd3490c9
commit a37fbac749
186 changed files with 2699 additions and 13224 deletions

25
scripts/copy-static.mjs Normal file
View File

@@ -0,0 +1,25 @@
import { cp, mkdir } from 'node:fs/promises'
import { resolve } from 'node:path'
const root = process.cwd()
const outDir = resolve(root, 'dist/editor')
await mkdir(outDir, { recursive: true })
const targets = [
['src/editor/index.html', 'index.html'],
['src/editor/xdomain-index.html', 'xdomain-index.html'],
['src/editor/iife-index.html', 'iife-index.html'],
['src/editor/browser-not-supported.html', 'browser-not-supported.html'],
['src/editor/browser-not-supported.js', 'browser-not-supported.js'],
['src/editor/svgedit.css', 'svgedit.css'],
['src/editor/images', 'images'],
['src/editor/components/jgraduate/images', 'components/jgraduate/images'],
['src/editor/extensions', 'extensions']
]
for (const [src, dest] of targets) {
await cp(resolve(root, src), resolve(outDir, dest), { recursive: true })
}
console.info('Copied static editor assets to dist/editor')