release: WRNexusJS 0.8.0
Quality / quality (ubuntu-latest) (push) Failing after 21s
Quality / quality (windows-latest) (push) Canceled after 0s

This commit is contained in:
2026-08-02 23:18:51 +05:30
parent 87507edf59
commit 586a6db8ff
625 changed files with 243608 additions and 11210 deletions
+6 -2
View File
@@ -9,6 +9,7 @@ import { secureJsonStringify } from "../packages/security/src/serialization.ts";
import { parse } from "../packages/syntax/src/index.ts";
const root = resolve(dirname(fileURLToPath(import.meta.url)), "..");
const frameworkVersion = JSON.parse(readFileSync(join(root, "package.json"), "utf8")).version;
const componentSource = readFileSync(
join(root, "packages", "ui", "components", "button.wrn"),
"utf8",
@@ -55,13 +56,16 @@ for (const benchmark of benchmarks) {
const report = {
schemaVersion: 1,
frameworkVersion: "0.7.0",
frameworkVersion,
environment: { runtime: process.version, platform: process.platform, arch: process.arch },
benchmarks: benchmarks.map(({ result, budget }) => ({ result, budget })),
};
const reportDir = join(root, ".wrnexus", "reports");
mkdirSync(reportDir, { recursive: true });
writeFileSync(join(reportDir, "benchmark-0.7.0.json"), `${JSON.stringify(report, null, 2)}\n`);
writeFileSync(
join(reportDir, `benchmark-${frameworkVersion}.json`),
`${JSON.stringify(report, null, 2)}\n`,
);
console.log(
JSON.stringify(
report.benchmarks.map(({ result }) => ({