dits-ksm-cli-marketplace
v1.0.0
Published
Provide an masked nest.js command to generete sub-apps within nest monorepo
Downloads
2
Readme
Kosmos CLI
Provide an masked nest.js command to generete sub-apps within nest monorepo
Requirements
Add to the next option in scripts section in package.json.
{
...
"scripts": {
...
"generate:scaffold": "name=${npm_config_name} && cd apps/${name} && mkdir -p src/application/dtos src/application/services src/controllers/ src/domain/entities src/domain/repositories src/domain/services src/interfaces/controllers src/interfaces/resolvers"
}
}
Install
- Copy into monorepo root folder
- Move to kosmos-cli
$ cd kosmos-cli
- Link kosmos-cli folder
$ npm link
- install globaly
$ npm install -g .
Usage
This cli provide only one command at the moment, generate sub-app.
kosmos-cli sub-app my_subapp