1.0.3 • Published 4 years ago
cs-nestrand v1.0.3
README
This project is a example of custom NestJS library which can be pushed to NPM and later on can be used in serveral other NestJS based project.
This project is heavily inspired by following two articles:-
- Packaging NestJS Modules for NPM Installs
- Step by step: Building and publishing an NPM Typescript package
Todo List
- Create project
- Add NestJS libraries for building the library project
- Create package.json to generate the library
- Add Jest for writing and implementing the test cases
- Add Nest CLI configuration to generate Nest Modules or classes via Nest CLI commands
- Formatting and Linting
- Use the magic scripts in NPM
- Restrict code getting published via NPM (only JS file and source code map should be published)
- Publish NPM
NPM URL
https://www.npmjs.com/package/cs-nestrand
Package can be installed by
npm i cs-nestrand