Compiler-as-a-Service (at the edge of your browser) with @knighted/jsx and @knighted/css.
⚠️ Early project status: this package is pre-1.0.0and still actively evolving.
@knighted/develop is a lightweight dev app that lets you:
- write component code in the browser
- switch render mode between DOM and React
- switch style mode between native CSS, CSS Modules, Less, and Sass
- preview results immediately
npm install
npm run devThen open the URL printed by the dev server (it should open src/index.html).
Install Playwright browsers once before your first local run:
npx playwright installIf your environment needs system dependencies too (for example Linux CI-like containers), use:
npx playwright install --with-depsRun local Playwright tests (Chromium):
npm run test:e2eRun locally with headed browser:
npm run test:e2e:headedCI runs Playwright on Chromium and WebKit.
- This is currently a development playground, not a stable product.
- Expect breaking changes while APIs and UX are still being shaped.
- Documentation will expand closer to
1.0.0.
MIT