# sun-ui **Repository Path**: Eplayer/sun-ui ## Basic Information - **Project Name**: sun-ui - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-07-15 - **Last Updated**: 2021-11-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 安装 ``` npm install 或者 yarn install(推荐) ``` # 编写组件 ``` npm run new ``` 按照提示创建组件 # 调试 ``` npm run start ``` /src/组件/demo/basic.tsx 下,使用开发的组件,搭建模拟场景调试 # 文档 按照(约定路路由配置方法)[https://d.umijs.org/zh-CN/guide/basic#%E7%BA%A6%E5%AE%9A%E5%BC%8F%E8%B7%AF%E7%94%B1]根据层级配置path,目前文档`mode`采用`site`模式 # 发布组件 更新package.json版本号 ``` npm run release ``` # 代码格式及提交规范 添加了husky、commitlint、lint-staged # 疑问 > 为什么是 gulp 而不是 webpack 或 rollup ?因为要做的是代码编译而非代码打包,同时需要考虑到样式处理及其按需加载。