居于React开发的UI组件库,仅供学习使用
https://rimingxie.github.io/ship-ui-document/
在项目目录中,可以运行:
运行文档程序.
open http://localhost:6006/ to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
打包文档,生成静态页面.
Builds the app for production to the storybook-static
folder.\
运行测试程序.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Note: this is a one-way operation. Once you eject
, you can’t go back!
If you aren’t satisfied with the build tool and configuration choices, you can eject
at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject
will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
You don’t have to ever use eject
. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
npm install sass-loader node-sass --save-dev
reboot.scss 基于 normalize.css 修改
jest 测试框架
testing-library/react 测试框架
jest-dom 测试工具
https://github.com/FortAwesome/react-fontawesome
https://fontawesome.com/icons?d=gallery&s=solid&m=free
npm i --save @fortawesome/fontawesome-svg-core
npm i --save @fortawesome/free-solid-svg-icons
npm i --save @fortawesome/react-fontawesome
https://reactcommunity.org/react-transition-group/
npm install react-transition-group --save npm install @types/react-transition-group --save npx -p @storybook/cli sb init运行文档
npm run storybook打包文档
npm run build-storybook