blowater/UI/_compile-ui-tests.ts
Sherry e149b37087
compile all UI tests in GitHub Action (#256)
Co-authored-by: BlowaterNostr <127284497+BlowaterNostr@users.noreply.github.com>
2023-10-24 11:24:27 +08:00

9 lines
318 B
TypeScript

import { walk } from "https://deno.land/std@0.202.0/fs/walk.ts";
import { bundle } from "https://deno.land/x/emit@0.31.0/mod.ts";
for await (const entry of walk("./", { exts: [".test.tsx"] })) {
const url = new URL(entry.path, import.meta.url);
console.log("bundling", url.pathname);
await bundle(url);
}