Nx SvelteKit Plugin
@surkyl/nx-sveltekit
Section titled “@surkyl/nx-sveltekit”Nx plugin for SvelteKit applications in the Surkyl monorepo.
Features
Section titled “Features”- Generate SvelteKit applications with a single command
- Integrated Nx executors for dev, build, preview, and check
- Full TypeScript support
- Vite-powered development and builds
- Tailwind CSS integration (optional)
- ESLint configuration
Installation
Section titled “Installation”This plugin is installed locally in the monorepo:
pnpm installGenerate a new SvelteKit application
Section titled “Generate a new SvelteKit application”pnpm nx g @surkyl/nx-sveltekit:application my-appOptions
Section titled “Options”--name- Application name (required)--directory- Directory where the app should be generated (default: apps)--port- Development server port (default: 5173)--typescript- Use TypeScript (default: true)--routing- Include routing (default: true)
Available Targets
Section titled “Available Targets”After generating an application, the following targets are available:
pnpm nx dev <app-name>- Start development serverpnpm nx build <app-name>- Build for productionpnpm nx preview <app-name>- Preview production buildpnpm nx check <app-name>- Run type checkingpnpm nx lint <app-name>- Run ESLint
Development
Section titled “Development”Build the plugin:
pnpm nx build nx-sveltekitTest the plugin:
pnpm nx test nx-sveltekitLicense
Section titled “License”MIT