@parallel-mono/components
v1.0.0-alpha.210
Published
This library was generated with [Nx](https://nx.dev).
Downloads
91
Readme
components
This library was generated with Nx.
Running unit tests
Run nx test components
to execute the unit tests via Jest.
how to contribute
see the document here
Test
- unit test is required,
- must test if a component acts like a normal div or span when it comes to layout and styling
- must test if ref is forwarded
- must test if component works in both controlled mode and uncontrolled mode
- try not to test implemention detail
- create snapshot test
work flow
board
all work is tracked at https://parallelfi.atlassian.net/jira/software/projects/PDS/boards/16
design
https://www.figma.com/file/zQktt4A1uHxf6phLnroPAt/Parallel-Design-System-V3?node-id=15%3A1140
chromatic
we're using chromatic for UI change detection, you have to go throgh the UI change in chromatic builds and accept the build if no unexpected UI changes. https://www.chromatic.com/builds?appId=6220e80ba126ca003f231742
view the latest storybook
Release
release common components
- create a branch
release/vx.x.x
(replace x.x.x with the actual version) - change package version in
src/libs/components/package.json
and create a pr tomain
- add a tag on the
main
branch, will trigger the release workflow automatically.git tag vx.x.x main
git push origin main
release business components
- create a branch
release/business-components-vx.x.x
(replace x.x.x with the actual version) - change package version in
src/libs/business-components/package.json
and create a pr tomain
- add a tag on the
main
branch, will trigger the release workflow automatically.git tag [email protected] main
git push origin main