npm.io
1.1.36 • Published 1 month ago

xydata-tools

Licence
MIT
Version
1.1.36
Deps
4
Size
1.4 MB
Vulns
0
Weekly
0

鑫义科技前端开发者工具包

内网文档:http://172.16.1.222/craft-page-web/xydata

本地开发

react

  1. 在项目根目录执行:

    yarn dev
  2. 在 example 目录下执行:

    yarn start
  3. example 是一个由 umi 搭建的后台项目,可直接引用 xydata-tools 内的组件进行预览。

  4. 新组件可在 /xydata-tools/src/components 下进行开发更新。

  5. 在 src 内的修改操作将会被实时编译到 dist 文件夹中。

uniapp

  1. 在项目根目录执行: .

    yarn dev
  2. 在 example-uniapp 下运行

    yarn link xydata-tools
  3. 将 example-uniapp 添加到 H-Builder 中运行

打包发布:

npm config set registry https://registry.npmjs.org
npm publish -d

发布完成后,还原 npm 源(淘宝源):

npm config set registry https://registry.npmmirror.com