@eljs/create-plugin-project
v1.0.0-beta.1
Published
Full-stack project scaffold (libraries + sites + apps + CLI) powered by @eljs/generator.
Readme
@eljs/create-plugin-project
English | 简体中文
Generate Web applications, documentation sites, or CLI tools, individually or as workspaces in a monorepo.
Usage
npx @eljs/generator @eljs/create-plugin-project my-projectUse Node.js >=22.18.0 and @eljs/generator starting at 2.0.0-beta.6.
Repository Modes
| Mode | Choices and output |
| -------- | -------------------------------------------------------------------------------------------------------------------- |
| Polyrepo | Select one Web application, documentation site, or CLI tool at the repository root |
| Monorepo | Combine a Web application in web, documentation in docs, and a CLI in packages/cli; add library packages later |
Web applications use React and Vite; documentation uses Rspress. CLI tools support single-command and multiple-command layouts.
To add a library in a generated monorepo:
pnpm package:create packages/my-library --description "My library" --env node--env node|web is required and applies to the package being created. Use the selected package manager's command syntax in the generated project.
Configuration
create.config.ts combines the shared base preset with the project plugin. Site flags drive conditional workspaces and rendering; a monorepo root is a private workspace container.
Development
pnpm --filter @eljs/create-plugin-project devThe package publishes TypeScript source and templates. Check each affected repository mode and content combination through rendered-template contracts.
