@stonx/elysia
Version:
[](https://www.npmjs.com/package/@stonx/elysia) [](https://opensource.org/licenses/MIT) [ • 1.55 kB
Markdown
# @stonx/elysia — Nx plugin for Elysia
[](https://www.npmjs.com/package/@stonx/elysia)
[](https://opensource.org/licenses/MIT)
[](https://nx.dev)
[](https://github.com/BorisTB/stonx/actions)
Nx plugin adding support for [Elysia](https://elysiajs.com/).
## Features
- Generators for scaffolding Elysia applications with Node
- TODO: Generators for scaffolding Elysia applications with Bun
## Add the plugin to an existing Nx workspace
### Recommended:
```shell
nx add @stonx/elysia
```
This command installs the plugin and performs any required setup in your workspace.
### Fallback (manual):
```shell
npm i -D @stonx/elysia
```
Note: Manual installation may require also having compatible peer dependencies installed.
## Generators
This plugin provides the following Nx generators.
### Application
Generate an Elysia application within your Nx workspace.
```shell
nx g @stonx/elysia:app my-app
```
## Build, Serve, and Test
Targets are provided by @nx/node. Typical commands:
- nx serve <appName> — Run the application in development
- nx build <appName> — Build the application with esbuild
- nx test <appName> — Run unit tests (if configured)
- nx lint <appName> — Run linting (if configured)
## Compatibility
- Nx: >= 18 < 22