@ayato-san/adonis-commands
v1.2.2
Published
My custom commands for AdoniJS
Downloads
6
Readme
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-commands
Commands
make:action
create an action classmake:enum
create an enum filemake:helper
create an helper file (empty)make:presenter
create a presenter classmake:repository
create a repository classmake:migration
(⚠️ only if lucid configured) create a migration based on default adonis migration but using postgresuuid
generation
Configure
activate modules :
import { defineConfig } from '@ayato-san/adonis-commands'
const commandConfig = defineConfig({
modules: ['lucid', 'bouncer'],
})
export default commandConfig
change folders generation :
import { defineConfig } from '@ayato-san/adonis-commands'
const commandConfig = defineConfig({
folders: {
app: 'src',
start: 'boot',
},
})
export default commandConfig