Socket
Book a DemoInstallSign in
Socket

@weskerjs/supergen

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@weskerjs/supergen

Super generator for AdonisJS

latest
Source
npmnpm
Version
0.0.9
Version published
Maintainers
0
Created
Source

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:string

This will generate the following:

  • Create, Show, Edit and List views inside views/cars directory
  • 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.

FAQs

Package last updated on 24 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts