@djpfs/adonisjs-service
v1.0.3
Published
Command to create and register service for AdonisJs v5
Downloads
3
Maintainers
Readme
Package para automatizar a geracao de Services no AdonisJs v5.
Instalacao
npm i @djpfs/adonisjs-service
Para criar um novo Service
node ace make:service ServiceName
Resultado
[ info ] Generating service...
CREATE: app/Services/TesteService.ts
CREATE: contracts/interfaces/TesteService.ts
CREATE: providers/TesteServiceProvider.ts
ADD: ./providers/TesteServiceProvider to .adonisrc.json
Para remover um Service
node ace remove:service ServiceName
Resultado
[ info ] Removing TesteService...
REMOVED: TesteService provider
REMOVED: TesteService service
REMOVED: TesteService interface
REMOVED: TesteService from .adonisrc.json providers
[ success ] Done!