@lynx-js/create-lynx-canary
v0.2.1-canary-20260923-aacf8f87
Published
Create a Lynx app or library with one command
Readme
@lynx-js/create-lynx
Create a Lynx app or library with one command.
npm create @lynx-js/lynx@latestTemplates
Templates are named <build tool>-<DSL>-<language>. Parts that are left out
take their default, so rsbuild, rsbuild-ts and rsbuild-react-ts all name
the same template.
| Template | Creates | Build tool | Config |
| --------------------------------------- | ------- | ------------------------------------------------ | ------------------ |
| rsbuild-react-ts / rsbuild-react-js | App | Rsbuild with pluginLynx | rsbuild.config.* |
| rspeedy-react-ts / rspeedy-react-js | App | Rspeedy | lynx.config.* |
| rslib-react-ts / rslib-react-js | Library | Rslib | rslib.config.* |
Every template comes with Rstest and
@lynx-js/react/testing-library set up; run the tests with npm run test.
A library keeps JSX in its output (dist/*.jsx), so the Lynx app that depends
on it compiles the components with its own ReactLynx version. Pick the
external-bundle tool to also pack it into a Lynx External Bundle
(dist-external-bundle/*.lynx.bundle) that a host app loads at runtime.
npm create @lynx-js/lynx@latest my-app -- --template rsbuild-react-ts
npm create @lynx-js/lynx@latest my-lib -- --template rslib-react-tsOptions
| Option | Description |
| ---------------- | -------------------------------------------------------------------------------------- |
| -d, --dir | Directory to create the project in |
| -t, --template | Template to use |
| --tools | Extra tools, such as eslint, prettier, biome, or external-bundle for a library |
| --skill | Agent skills to install |
| --override | Override files in the target directory |
This package supersedes create-rspeedy.
