cucc-test1
v2.4.1
Published
文件夹说明: * config : webpack打包的配置文件 * lib: webpack大包后输出文件,也是将这个文件发布到npm服务 * scripts : webpack大包脚本 * src : 组件源码,所有的组件都通过 src/kiteComponents/index.js 暴露
Downloads
3
Readme
极简-组件库
文件夹说明:
- config : webpack打包的配置文件
- lib: webpack大包后输出文件,也是将这个文件发布到npm服务
- scripts : webpack大包脚本
- src : 组件源码,所有的组件都通过 src/kiteComponents/index.js 暴露
包发布步骤
编译组件
执行 yarn build ,会将打包后文件输出到lib
yarn build
发布组件
确定源
需要发布到npm私服,首先需要确保当前npm所使用的源。
nrm ls
添加用户
如果没有用户,可以直接增加用户 依次输入用户名,密码和邮箱
npm addUser
登录
npm login
发布
每次发布一个新的版本,需要更改package.json里面的版本号
"version": "1.0.6",
然后执行
npm publish