@rocketbean/create-chasi-ts
v1.0.9
Published
chasi template
Readme
create-chasi-ts
CLI tool for scaffolding chasi-ts projects and generating boilerplate files.
Installation
npm install -g @rocketbean/create-chasi-tsUsage
Create a new project
create-chasi-tsor
npm create @rocketbean/chasi-tsThe CLI will prompt for project details (name, description, version, author, email), then clone the chasi-ts template, configure package.json, and install dependencies automatically.
Generate files in an existing project
chasi create <name> [options]Options
| Flag | Description | Output |
|------|-------------|--------|
| -c, --controller | Create a controller | src/container/controllers/<Name>Controller.ts |
| -m, --model | Create a model | src/container/models/<Name>.ts |
| -w, --middleware | Create a middleware | src/container/middlewares/<Name>.mw.ts |
| -p, --provider | Create a service provider | src/container/services/<Name>ServiceProvider.ts |
| -e, --event | Create an event | src/container/events/<Name>Event.ts |
Multiple flags can be combined in a single command:
chasi create User -c -m
# creates UserController.ts and User.tsInitialize boilerplate in the current directory
chasi initCommands
| Command | Alias | Description |
|---------|-------|-------------|
| create-chasi-ts | create | Bootstrap a new chasi-ts project |
| chasi create <name> | | Scaffold files inside an existing project |
| chasi init | | Initialize chasi boilerplate in the current directory |
Requirements
- Node.js 18+
- Git (required for project scaffolding)
License
ISC
