acc_invoices: сервис WebUI и бэкенд платёжного процесса (миграция 082, правила статусов, согласования, ручная отметка оплаты), статусы оплат, предложения к ТЗ
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
21
packages/acc_invoices/build-web.mjs
Normal file
21
packages/acc_invoices/build-web.mjs
Normal file
@@ -0,0 +1,21 @@
|
||||
// Сборка WebUI (React + Ariakit) в dist/web: один JS-бандл и CSS, index.html рядом.
|
||||
import { build } from "esbuild";
|
||||
import { cpSync, mkdirSync, rmSync } from "node:fs";
|
||||
|
||||
rmSync("dist/web", { recursive: true, force: true });
|
||||
mkdirSync("dist/web/assets", { recursive: true });
|
||||
await build({
|
||||
entryPoints: ["web/src/main.tsx"],
|
||||
bundle: true,
|
||||
minify: true,
|
||||
sourcemap: true,
|
||||
target: "es2022",
|
||||
format: "esm",
|
||||
jsx: "automatic",
|
||||
outfile: "dist/web/assets/app.js",
|
||||
loader: { ".css": "css" },
|
||||
define: { "process.env.NODE_ENV": '"production"' },
|
||||
});
|
||||
cpSync("web/index.html", "dist/web/index.html");
|
||||
cpSync("web/src/styles.css", "dist/web/assets/styles.css");
|
||||
console.log("web собран");
|
||||
Reference in New Issue
Block a user