uikit/scripts/sync-biimage-examples.mjs
Mohamadzadeh f9e1eb69a9
All checks were successful
Build and Deploy Next.js + Nginx Docker Image / build-and-deploy (push) Successful in 55s
Build and Deploy Next.js + Nginx Docker Image / deploy (push) Successful in 7s
uikit-v1.8.2-biimage-demo-all-props-complete
2026-11-18 15:29:22 +03:30

15 lines
514 B
JavaScript

import { copyFileSync, mkdirSync } from "node:fs";
import { resolve } from "node:path";
// The same standalone demo is served by Vite dev, Vite demo build and prebuilt dist.
const source = resolve("src/dev/BiImage-examples.html");
for (const destination of [
"public/BiImage-examples.html",
"deploy-demo/public/BiImage-examples.html",
"dist/remote/BiImage-examples.html",
]) {
const target = resolve(destination);
mkdirSync(resolve(target, ".."), { recursive: true });
copyFileSync(source, target);
}