You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Foundations: TypeScript build, dist, examples, CI and coverage #1
Toolchain: TypeScript (strict), pnpm, a Vite library build, Vitest, and ESLint + Prettier as in ../i18n. ESLint also rejects physical Tailwind utilities.
dist: ESM .js, CJS .cjs and .d.ts, one file per module, each marked "use client". There are 8 entry points: ., /html, /onu, /onu/editor, /onu/maps, /shadcn, /inertia and /testing. prepare builds it on Git installs.
Decision: there's no IIFE build. This is a React component library with peer dependencies, so a <script> build isn't useful.
Examples:examples/ has a page per integration: Onu, shadcn/ui, plain HTML, Inertia and fetch. The Inertia and fetch pages run against a mock Laravel endpoint in the Vite server. Every page also comes in Dhivehi (?dv). I loaded all pages in headless Chromium and submitted them: Inertia and fetch errors show and the invalid field gets focus. This turned up a real bug, loading buttons that didn't submit, which is now fixed.
Changesets: one per user-facing change, in .changeset/.
CI runs on pushes to next-gen and on PRs: lint, format, typecheck, tests with coverage (thresholds at lines 85%, currently ~89%), the Codecov upload, the build and the examples build.
Badges: tests, Codecov, npm and licence, pointing at ?branch=next-gen.
For dependents: with pnpm 10, apps that install github:Javaabu/react-forms#next-gen need onlyBuiltDependencies: ["@javaabu/forms", "@javaabu/i18n"]. This is documented in the installation page.
Activity
Foundations: Inertia and fetch examples, browser-verified submits, co…
n4ff4h commentedon Nov 4, 2026
Done on
next-gen(6a24455).../i18n. ESLint also rejects physical Tailwind utilities.dist: ESM.js, CJS.cjsand.d.ts, one file per module, each marked"use client". There are 8 entry points:.,/html,/onu,/onu/editor,/onu/maps,/shadcn,/inertiaand/testing.preparebuilds it on Git installs.<script>build isn't useful.examples/has a page per integration: Onu, shadcn/ui, plain HTML, Inertia and fetch. The Inertia and fetch pages run against a mock Laravel endpoint in the Vite server. Every page also comes in Dhivehi (?dv). I loaded all pages in headless Chromium and submitted them: Inertia and fetch errors show and the invalid field gets focus. This turned up a real bug, loading buttons that didn't submit, which is now fixed..changeset/.next-genand on PRs: lint, format, typecheck, tests with coverage (thresholds at lines 85%, currently ~89%), the Codecov upload, the build and the examples build.?branch=next-gen.For dependents: with pnpm 10, apps that install
github:Javaabu/react-forms#next-genneedonlyBuiltDependencies: ["@javaabu/forms", "@javaabu/i18n"]. This is documented in the installation page.