0.0.7 • Published 1 year ago

nx-loopback v0.0.7

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

nx-loopback

You can create a loopback 4 application within your nx workspace. This package has been made using nx-plugin executors and generators. It's more in a beta version, but improvements are more than welcome.

This workspace has been generated by Nx, a Smart, fast and extensible build system.

Install the package

With Yarn:

yarn add nx-loopback

With NPM:

npm i nx-loopback --save

Generate

Create a new application

nx g nx-loopback:app

This creates the loopback application, in the apps folder.

ArgumentTypeRequiredDescription
namestringyesThe name of the application
applicationClassNamestringnoThe application class name, being used in the controllers
descriptionstringyesThe description about the application
applicationFeaturesarray of stringsnoEnable features in the applications, like docker,api,etc
directorystringnoA directory where the project is placed

Execute

Serve

nx run serve <app_name>

This starts the application.

ArgumentTypeRequiredDescription
nodeEnvironmentstringnoThe node environment LOCAL,STAGE,etc

Build

nx run build <app_name>

This builds the application using lb-stc command and creates a dist folder in the app.

ArgumentTypeRequiredDescription
nodeEnvironmentstringnoThe node environment LOCAL,STAGE,etc
cleanbooleanyesClean the dist files, before build

Watch

nx run watch <app_name>

This starts the application, with watching file changes and reload. We use tsc-watch under the hood for this.

ArgumentTypeRequiredDescription
nodeEnvironmentstringnoThe node environment LOCAL,STAGE,etc

Clean

nx run clean <app_name>

This cleans the build files

Features yet to be added

  • Genreate controllers, repositories, models and datasources.
  • Migrate commands.
  • Docker deploy

Remote caching

Run npx nx connect-to-nx-cloud to enable remote caching and make CI faster.

Thanks to the NX folks, you can visit their docs

Visit the Nx Documentation to learn more.

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago