node > 8
yarn > 1.5.1
Vital UI Kit React is a monorepo, we use Lerna for package management.
packages
@vital-ui/react-avatar
@vital-ui/react-badge
@vital-ui/react-button
@vital-ui/react-card
@vital-ui/react-form
@vital-ui/react-icon
@vital-ui/react-layout
@vital-ui/react-list
@vital-ui/react-menu
@vital-ui/react-modal
@vital-ui/react-pagination
@vital-ui/react-pill
@vital-ui/react-table
@vital-ui/react-tabs
@vital-ui/react-theme
@vital-ui/react-tooltip
@vital-ui/react-utils
// this one contains all packages
@vital-ui/react
After cloning UI Kit, please do yarn to install the dependencies, using yarn run bootstrap
.
After install the dependencies
yarn run storybook
will runplayground
storybook, and all packages will be watched.- All stories are located in
playground/stories
.
- Create a package like others.
- Add it to playground, run
lerna add @vital-ui/your-new-package --scope @gssfed/playground
yarn run test:web
Run yarn run build
will handle all process.
We follow semantic versioning and publish via lerna
. Run yarn run publish
and beware it should be stable in master
branch.