This project is using npmjs.com as a npm package repository and is publicly available. Please go to Company's LastPass > Shared Dev > npmjs.com to find shared credentials to the account.
After running the initial yarn install
(we use yarn, not npm), run yarn husky:setup
. We use husky
/lint-staged
/prettier
to format our staged code consistently every time we create a new commit.
NOTE: Please don't run yarn husky:setup
more than once, or else you will add multiple yarn lint-staged
commands inside your .husky/pre-commit
file
- Increase library version
- Commit
- Go to pipelines and select pipeline that includes version to be released.
- Tap "Publish"
To use a local version of the react-ui-library in another FE repo during development:
- from react-ui-library,
- run
yarn yalc:publish
- run
yarn yalc:serve
- run
- in the target local FE repo,
- run
yalc link (library name)
Ex: ../fe_repo $yalc link @energybox/react-ui-library@5.12.0
- run