$ cnpm install unizin-lib
A collection of accessible, styled, reusable React components for Unizin Engage and order-tool.
yarn install unizin-lib
will install the latest version. This library is under active development though, and frequent upgrades are recommended.
Unizin-lib bundles both ES6 and CommonJS modules; a webpack project should use the ES6 modules by default.
If you're using ES6 modules, you can rely on tree-shaking to eliminate unused code, rather than importing individual files. import { Avatar } from 'unizin-lib'
is preferred over import Avatar from 'unizin-lib/src/components/avatar'
.
yarn
).yarn global add rollup
).yarn run storybook
will start up Storybook on port 6006.
yarn run build
will build the production bundle.
Please copy the pre-push
hook from scripts/
into .git/hooks
Copyright 2014 - 2017 © taobao.org |