UNPKG

@shagital/adonisjs-crud-generator

Version:

Adonisjs Admin Panel Generator is a package that helps you quickly scaffold your typical CRUD admin interfaces. It generates the admin panel code based on the existing (migrated) table in the database

37 lines (36 loc) 1.03 kB
import { BaseCommand } from '@adonisjs/core/build/standalone'; export default class CrudInit extends BaseCommand { /** * Command name is used to run the command */ static commandName: string; /** * Command description is displayed in the "help" output */ static description: string; prefix: string; migrate: boolean; force: boolean; static settings: { /** * Set the following value to true, if you want to load the application * before running the command */ loadApp: boolean; /** * Set the following value to true, if you want this command to keep running until * you manually decide to exit the process */ stayAlive: boolean; }; private Env; run(): Promise<void>; private initializeDirectories; private runMigration; private createEnv; private copyRoute; private copyMigration; private copyConfig; private copyController; private copyViews; }