An open API service indexing awesome lists of open source software.

https://github.com/ayato-san/adonis-commands

My custom commands for AdoniJS
https://github.com/ayato-san/adonis-commands

ace adonisjs commands package

Last synced: 3 months ago
JSON representation

My custom commands for AdoniJS

Awesome Lists containing this project

README

        



Adonis Commands


My custom commands for AdoniJS



GitHub License
NPM Version
GitHub Stars
GitHub Top Language

## Features

- Designed to work with AdonisJS, his packages lucid and bouncer out of the box
- add / modify Adonis commands

### Installation

- with npm
```sh
npm install -D @ayato-san/adonis-commands
node ace configure @ayato-san/adonis-commands
```

- with pnpm
```sh
pnpm install -D @ayato-san/adonis-commands
node ace configure @ayato-san/adonis-commands
```

- with yarn
```sh
yarn add -D @ayato-san/adonis-commands
node ace configure @ayato-san/adonis-commands
```

### Commands

- `make:action` create an action class
- `make:enum` create an enum file
- `make:helper` create an helper file (empty)
- `make:presenter` create a presenter class
- `make:repository` create a repository class
- `make:migration` (⚠️ only if lucid configured) create a migration based on default adonis migration but using postgres `uuid` generation

### Configure

change folders generation :

```ts
import { defineConfig } from '@ayato-san/adonis-commands'

const commandConfig = defineConfig({
folders: {
app: 'src',
start: 'boot',
},
})

export default commandConfig
```