Nodejs lib
How to create a new nodejs lib
Prerequisites
To develop and run a nodejs lib you need to install some tools first:
Run these commands to check if both are installed
node -v
npm -v
yarn -v
Install the Parro connect schematics
Parro has its own schematics for creating libs. To use this you need to install the schematics lib.
npm i -g @parro-connect/schematics
Create a new lib
All libs are located in the libs directory. To create a new lib project go to the libs directory and run
nest g -c @parro-connect/schematics connect-lib
cd [YOUR_SERVICE_NAME]
yarn install