release: WRNexusJS 0.4.0

This commit is contained in:
2026-07-27 12:42:18 +05:30
parent 8b728a3e5d
commit 30e5721e84
250 changed files with 10065 additions and 3923 deletions
+15 -6
View File
@@ -1,10 +1,10 @@
import type { AppConfig } from "@wrnexus/styles";
import { captchaPlugin } from "@wrnexus/captcha/plugin";
const config: AppConfig & { plugins?: unknown[] } = {
const config: AppConfig = {
seo: {
title: "WRNexus CAPTCHA Showcase",
description: "Number, text, calculation, image, audio, invisible, managed, and third-party CAPTCHA examples.",
description:
"Number, text, calculation, image, audio, invisible, managed, and third-party CAPTCHA examples.",
canonicalBase: "http://localhost:3000",
robots: "noindex,nofollow",
},
@@ -12,12 +12,21 @@ const config: AppConfig & { plugins?: unknown[] } = {
styles: {
entry: "app/styles/global.css",
process: async ({ entryPath, appRoot, mode }) => {
const args = ["@tailwindcss/cli", "-i", entryPath!];
if (!entryPath) throw new Error("CAPTCHA showcase stylesheet entry was not resolved.");
const args = ["@tailwindcss/cli", "-i", entryPath];
if (mode === "production") args.push("--minify");
return await Bun.$.cwd(appRoot)`bunx ${args}`.text();
const result = await Bun.$.cwd(appRoot).nothrow()`bunx ${args}`;
if (result.exitCode !== 0) {
throw new Error(
result.stderr.toString().trim() ||
result.stdout.toString().trim() ||
"Tailwind CSS processing failed.",
);
}
return result.stdout.toString();
},
failureMode: "throw",
},
plugins: [captchaPlugin({ enableDevToolbar: true })],
};
export default config;