派生自
package / lwc-ui-components
30 提交 落后 上游代码库。
README.md 1.02 KiB
LWC UI COMPONENTS
组件库开发
yarn install
启动storybook
npm run storybook
打包发布组件库
npm run build
打包发布组件库文档
npm run build-storybook
代码检测
npm run lint
Style检测
npm run stylelint
新建组件
npm run new componentGroup/componentName 组件中文名
# For Example
# > npm run new card/test 测试
发布流程
- 切换至
master
分支 - 合并开发分支代码
- 更新发布日志
- 更新发布版本
npm version 版本号 # For Example # > npm version 0.1.8 # # 手动更改package.json version(不建议) # > git tag -a v0.1.8 -m "release v0.1.8" #
- 提交分支 && 提交
tag
git push origin master && git push origin v版本号 # For Example # > git push origin master && git push origin v0.1.8
后续会自动触发 gitlab-ci
作业执行,打包发布上传组件库。