0.0.9 • Published 1 year ago
@weskerjs/supergen v0.0.9
supergen
If "make" command was a superhero.
Install
npm i @weskerjs/supergen- Add
"@weskerjs/supergen/build/commands"to the commands array in.adonisrc.json - Run
node ace generate:manifest
Example
node ace supergen --name cars --fields=manufacturer:string,model:string,colour:stringThis will generate the following:
- Create, Show, Edit and List views inside
views/carsdirectory - CarsController
- Car model
- timestamp_cars.ts migration.
It will also append CRUD routes to the end of start/routes.ts
Ensure the resource name is in lowercase or you'll run into some issues in the Controller file.
0.0.9
1 year ago