add svelte UI

This commit is contained in:
Nystik
2026-03-18 18:28:07 +01:00
parent 4cba51f562
commit 408eb7fb54
16 changed files with 1403 additions and 163 deletions

17
build-ui.js Normal file
View File

@@ -0,0 +1,17 @@
const esbuild = require("esbuild");
const sveltePlugin = require("esbuild-svelte");
const path = require("path");
esbuild.build({
entryPoints: [path.join(__dirname, "ui", "index.js")],
bundle: true,
outfile: path.join(__dirname, "dist", "ignis-ui.js"),
format: "iife",
globalName: "IgnisUI",
platform: "browser",
target: ["chrome90"],
mainFields: ["svelte", "browser", "module", "main"],
conditions: ["svelte", "browser"],
plugins: [sveltePlugin({ compilerOptions: { css: "injected" } })],
logLevel: "info",
}).catch(() => process.exit(1));