1.2.2 • Published 1 year ago
@ayato-san/adonis-commands v1.2.2
Features
- Designed to work with AdonisJS, his packages lucid and bouncer out of the box
- add / modify Adonis commands
Install
npm i -D @ayato-san/adonis-commands
node ace configure @ayato-san/adonis-commandsCommands
make:actioncreate an action classmake:enumcreate an enum filemake:helpercreate an helper file (empty)make:presentercreate a presenter classmake:repositorycreate a repository classmake:migration(⚠️ only if lucid configured) create a migration based on default adonis migration but using postgresuuidgeneration
Configure
activate modules :
import { defineConfig } from '@ayato-san/adonis-commands'
const commandConfig = defineConfig({
modules: ['lucid', 'bouncer'],
})
export default commandConfigchange folders generation :
import { defineConfig } from '@ayato-san/adonis-commands'
const commandConfig = defineConfig({
folders: {
app: 'src',
start: 'boot',
},
})
export default commandConfig