This is an example of a library to be used as part of any node js application.
Anything placed in the src folder is exported as part of the library.
The library has built-in support for:
- Typescript
- Formatting with Prettier
- Yarn as package manager (with the binary in repo)
yarn build
to create a production-ready version of the library.
For private packages, we deploy them to Github packages.
For public packages, we deploy them to both Github packages and npmjs.com.
After updating the version number in package json (i.e. yarn version patch
), run one of the following commands:
yarn pub
deploys to all configured package repositoriesyarn pubNpm
deploys to npmjs.comyarn pubGithub
deploys to Github packages
Never commit any passwords or auth tokens to the repo!