First, ensure you have
To get started with the repo:
$ git clone [email protected]:Stinkstudios/npm-packages.git && cd npm-packages
$ yarn install
This is a monorepo utilising Lerna and Yarn Workspaces
Commit messages are linted with commitlint
and follows Conventional Commits so Lerna can automatically update the CHANGELOG.md for each package on a release.
$ yarn test
$ yarn lint
$ yarn format
To release a new version of a package you will need a NPM account and be part of Stink Studios organisation on NPM . All packages are scoped to @stinkstudios
.
$ yarn
$ npm login
$ npx lerna publish
$ npx lerna create @stinkstudios/<your package name>
This will add a folder in packages