0.0.3 • Published 3 years ago
constru-nx-microservice v0.0.3
constru-nx-microservice
This plugin was generated with Nx.
Install
Run the following inside your nx worskpace:
npm i -D constru-nx-microservice
Usage
Run the following commands inside your nx worskpace.
To get list of possible generators:
nx list constru-nx-microservice
To genereate an application:
nx g constru-nx-microservice:app APPLICATION_NAME
This creates the following app structure:
APPLICATION_NAME/
┣ src/
┃ ┣ app/
┃ ┃ ┣ .gitkeep
┃ ┃ ┣ Logger.ts
┃ ┃ ┣ foo.spec.ts
┃ ┃ ┗ foo.ts
┃ ┣ assets/
┃ ┃ ┗ .gitkeep
┃ ┣ environments/
┃ ┃ ┣ environment.prod.ts
┃ ┃ ┗ environment.ts
┃ ┗ main.ts
┣ .eslintrc.json
┣ .node-version
┣ .nvmrc
┣ project.json
┣ readme.md
┣ tsconfig.app.json
┗ tsconfig.json
and install necessary imports