2.15.20 • Published 5 months ago
c10amityui v2.15.20
c10 Amity UI - Fork
Getting started
Installation
- git clone https://github.com/curve10-projects/c10-amity-uikit.git
- cd ./c10-amity-uikit
- ensure you are in prod branch
npm ci
ornpm ci ---legacy-peer-deps
if you get an errorupdate .env with api key and region, users can be mocked/fake names (i think?)
Develop locally in parallel with a product
- install yalc globall if you don't have it
npm i yalc -g
- build the ui kit:
npm run build
yalc publish
in c10-amity-uikit directoryyalc add c10amityui
in adminsite reponpm install
in FE repo if this is the first time you've added it (use --legacy-peer-deps if error)- Please branch from prod, and work in your own branch.
- When you are done,
yalc remove --all
(from the adminsite folder) (PLEASE ENSURE YOU DON'T COMMIT TO FE WITH THE YALC REFERENCE PRESENT) YALC documentation: https://github.com/wclr/yalc
Develop with Storybook
npm run storybook
- http://localhost:6006/ to view sotrybook and update UI
- Please branch from prod, and work in your own branch.
Publish changes to NPM
- Update the version number in package.json (check npm or prod branch to ensure correct version)
- stage and commit all changes.
- merge changes into prod branch
- open prod brach
npm run build
npm publish
(only curve10 team members currently have npm credentials) Once published, rebuild product FE enviroment, and UI kit changes should be pulled in.
Documentation
Please refer to our online documentation at https://docs.amity.co or contact a Ui-Kit representative at developers@amity.co for support.