dso-core-charts v1.0.9
React 图表组件库-插件
图表工具插件开发项目,主要作用是本地调试npm包并上传。 此项目是图表池插件项目,不用编写详细文档,只用预览和功能,然后把组件向外暴露出去。
comment: <> (🚀 在线预览(https://worldzhao.github.io/react-ui-library-tutorial))
Getting Started
Install dependencies,
$ npm i
Start the dev server,
$ npm start
npm包发布
先手动在package.json文件里面升级一下版本号(version),然后发布执行命令即可。
$ npm publish
创建新的图表文件
输入命令然后填写对应的组件名称和描述
$ npm run new
comment: <> (## 概览)
comment: <> (本系列文章主要包含以下内容:)
comment: <> (- 项目初始化: 组件库前期开发准备工作。eslint
/commit lint
/typescript
等等;)
comment: <> (- 开发阶段: 使用 dumi(https://d.umijs.org/zh-CN); 进行开发调试以及文档编写;)
comment: <> (- 打包阶段: 输出/umd
cjs
/esm
产物并支持按需加载;)
comment: <> (- 组件测试: 使用@testing-library/react
及其相关生态进行组件测试;)
comment: <> (- 发布 npm: 编写脚本完成发布或直接使用 np(https://www.npmjs.com/package/np); 发布;)
comment: <> (- 部署文档站点: 使用 Github Pages 以及 Github Actions 完成文档站点自动部署。)
comment: <> (- 参考Git(https://github.com/worldzhao/react-ui-library-tutorial))