@linkdesign/components
v1.4.0
Published
linkDesign pc components
Downloads
358
Readme
使用
- 约定式路由等开发调试服务:
npm run dev
- 原始webpack调试服务:
npm start
- 构建build:
npm run build
- 编译:
npm run compile
开发
npm run dev
发布
使用def.统一发布tnpm和cdn
发布目录
- lib 组件ES5代码
- dist cdn文件夹
- type 组件ts声明
- es 组件ES6代码
组件开发
- def创建迭代,迭代版本号需与最终tnpm包版本一致。新增组件使用次版本号,如1.2.0、1.3.0;bug修复使用修订号。如1.2.1、1.2.3
- 下拉分支
- 创建 src/组件名/index.tsx 作为组件代码,并在src/index.ts中export
- 创建 src/组件名/index.md 作为组件api文档
- 创建 src/组件名/demo 文件夹作为组件demo示例
npm start
- http://localhost:8080/组件名/demo/示例文件名 进行调试
- 日常环境发布测试
- 提交代码评审
- cdn、tnpm线上环境发布
- cdn、tnpm校验
- 安全审批单
- 执行tnpm run npmPublish
- npm发布
npm包地址
https://www.npmjs.com/~linkdesign
升级xconsole 1.3.0
- sass编译失败:Can't find stylesheet to import.
- 原因:sass命令不支持解析 ~及node_modules
- 解决方案:将所有地址换成相对路径