Infinity UI Library
Component Structure & process to add new component
- Components -> new component Name
- .stories.js file for stories
- .test.js file to test renderer
- Components/v1 -> for next-ui
Install (assuming you are inside lib directory)
npm i
Run (Local)
npm run storybook
Publish
Travis will publish it for you once you commit/merge to master.
bash .travis-build.sh
bash run.sh
Release
Note: Package.json version is set to
0.0.0-semantically-released
since release is been managed by semantic-release
Commit message type
fix: A bug fix
docs: Documentation only changes
style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
refactor: A code change that neither fixes a bug nor adds a feature
perf: A code change that improves performance
test: Adding missing or correcting existing tests
chore: Changes to the build process or auxiliary tools and libraries such as documentation generation
Easy way to do conventional commit
npm run commit
Run Components (Docker)
from parent dir run following command, to build docker image
docker build -t test -f ./infra/docker/Dockerfile ./lib
to run
docker run -p 80:80 test