React组件库:构建与测试实践

使用React、Webpack、TypeScript精心打造的组件库,借助Jest测试库进行严格测试,并通过Storybook生动展示组件效果。本地开发可运行yarn dev,测试则执行yarn test。构建分发文件,请运行yarn build:dist;构建Storybook静态文件,执行yarn build即可。分发更新时,需运行build:dist命令并提交至仓库。对涉及版本更新的改动,请合并至master分支并设置发布或标签。

zip
react-component-lib-master.zip 预估大小:45个文件
folder
react-component-lib-master 文件夹
file
.gitignore 47B
file
package.json 1KB
folder
src 文件夹
folder
components 文件夹
folder
Header 文件夹
file
Header.tsx 355B
folder
Input 文件夹
file
Input.tsx 660B
folder
Button 文件夹
file
Button.tsx 217B
folder
Box 文件夹
file
Box.tsx 294B
file
Box.stories.tsx 164B
folder
Divider 文件夹
file
Divider.tsx 147B
folder
data 文件夹
file
index.ts 604B
folder
services 文件夹
file
medication_service.ts 885B
folder
containers 文件夹
folder
MedContainer 文件夹
file
MedContainer.stories.tsx 227B
file
MedContainer.tsx 2KB
file
MedContainer.test.tsx 439B
folder
MedSearch 文件夹
file
MedSearch.tsx 2KB
folder
MedForm 文件夹
file
MedForm.tsx 1KB
file
index.ts 93B
file
global.d.ts 438B
file
webpack.config.js 540B
file
jest.config.js 257B
folder
dist 文件夹
folder
components 文件夹
folder
Header 文件夹
file
Header.d.ts 139B
folder
Input 文件夹
file
Input.d.ts 230B
folder
Button 文件夹
file
Button.d.ts 50B
folder
Box 文件夹
file
Box.d.ts 44B
folder
Container 文件夹
file
Container.d.ts 56B
file
main.js 97KB
folder
data 文件夹
file
index.d.ts 202B
folder
services 文件夹
file
medication_service.d.ts 340B
file
medication.service.d.ts 258B
file
main.js.LICENSE.txt 246B
file
index.js 1KB
file
index.js.map 2KB
folder
containers 文件夹
folder
MedContainer 文件夹
file
MedContainer.d.ts 145B
folder
MedSearch 文件夹
file
MedSearch.d.ts 151B
folder
Medication 文件夹
file
Medication.stories.d.ts 166B
file
Medication.d.ts 94B
file
MedicationContainer.d.ts 149B
folder
MedForm 文件夹
file
MedForm.d.ts 143B
file
index.es.js.map 2KB
file
index.es.js 995B
file
index.d.ts 92B
file
tsconfig.json 455B
file
README.md 648B
file
jest.setup.ts 36B
folder
.storybook 文件夹
file
main.js 132B
file
yarn.lock 496KB
...
zip 文件大小:243.97KB