Energybox React UI Library
npm install @energybox/react-ui-libraryThis 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
1. Increase library version
2. Commit
3. Go to pipelines and select pipeline that includes version to be released.
4. Tap "Publish"
1. from react-ui-library,
- run yarn yalc:serve OR yarn yalc:publish
2. in the target local FE repo,
- run yalc add @energybox/react-ui-library (Initial connect)
- run yarn install
- run yalc update @energybox/react-ui-library (re-connecting)
- run `yalc remove @energybox/react-ui-library (Disconnect)
3. When upgrading to a new version of @energybox/react-ui-library, ensure the following steps are completed:
- After upgrading the library version, make sure to update the following repositories with the newest version:
* Connect
* ONE
* Simplycheck
- Perform rigorous testing in all the above repositories to ensure the new version does not introduce any issues or regressions.
- Update the package.json files in all relevant repositories to use the same latest version of @energybox/react-ui-library.