nx-loopback-next-cli
v2.11.2
Published
Yeoman generator for LoopBack 4 on nx
Downloads
40
Readme
nx-loopback-next-cli (@loopback/cli fork)
Nx friendly @loopback/cli (official CLI for LoopBack 4)
Installation
Run the following command to install the CLI.
yarn add nx-loopback-next-cli
Basic Use
Run nx-lb4 --commands
or nx-lb4 -l
to list all available commands:
See CLI reference for a detailed documentation.
Usage w/ loopback 4
Generate a loopback app w/ nx-loopback-next ;
Update your
workspace.json
file :{ "projects": { "{{YOUR_PROJECT}}": { // ... "architect": { // ... "model": { "builder": "@nrwl/workspace:run-commands", "options": { "command": "nx-lb4 model --appDir={{YOUR_PROJECT}}" } } } } } }
Use the new command :
nx model gateway
Changes from official repo
artifact-generator
gets a new optionappDir
(default:process.cwd()
) ;- Every generators making use of
utils.sourceRootDir
are updated to prependappDir
;
"Fixed" commands
- [x] model
- [x] datasource
- [x] controller
- [x] interceptor
- [x] observer
- [ ] openapi
- [x] relation
- [x] repository
- [ ] rest-crud
- [x] service
License
MIT