deno.land / x / solidstart@v1.0.0-rc.0 / build.js

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { glob } from "glob";import { copyFile, mkdir, rm } from "node:fs/promises";import { dirname, join } from "node:path";
try { await rm("dist", { recursive: true });} catch {}
const assets = await glob(`**/*.css`, { cwd: join(process.cwd(), "src") })
await Promise.all(assets.map(async a => { await mkdir(join("dist", dirname(a)), { recursive: true }) await copyFile(join("src", a), join("dist", a));}))
solidstart

Version Info

Tagged at
a month ago