nandi/oripublic Fork 0
35061753be581c0ba47a3189520d64e7788c183d
Commits
Clone
git clone https://git.rickub.com/nandi/ori.git
git clone ssh://git@rickub.com/nandi/ori.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

forked from bots-garden/ori

copy-icons.mjs · 20 lines · 677 BJavaScript Blame HistoryRaw
✨ Workspace panel, selectors, previews, desktop app, sandbox template, resizable file tree, light/dark theme 76d62ac k33g yesterday1// Copies the Material icon SVGs from vscode-material-icons into public/, so
2// Vite ships them as static assets. Runs automatically before `dev` and
3// `build` (npm pre-hooks); the copy is skipped when already present.
4import { cpSync, existsSync } from "node:fs";
5import { fileURLToPath } from "node:url";
6
7const source = fileURLToPath(
8 new URL(
9 "../node_modules/vscode-material-icons/generated/icons",
10 import.meta.url,
11 ),
12);
13const destination = fileURLToPath(
14 new URL("../public/material-icons", import.meta.url),
15);
16
17if (!existsSync(destination)) {
18 cpSync(source, destination, { recursive: true });
19 console.log("material icons copied to public/material-icons");
20}