uicd
Version:
构建 Web 界面组件库 uic
61 lines (43 loc) • 1.01 kB
Markdown
## 项目名 uic
构建 Web 界面组件库
uic
## 开发环境
node
## 使用技术
- react
- typescript
- sass 样式
# 创建项目框架
- npx create-react-app uic --template typescript
# 安装依赖模块
- cnpm install classnames --save-dev
- cnpm install @types/classnames --save-dev
- cnpm install node-sass --save-dev
- cnpm install @types/node-sass --save-dev
- cnpm install rimraf --save-dev
- cnpm install cross-env --save-dev
- cnpm install eslint --save-dev
# 版本管理
使用 git 版本管理,并添加.gitignore 配置
- git init
- git add .
- git commit -m 'first commit'
- git branch -M master
- git remote add origin https://github.com/xjxafj/uic.git
- git push origin master
- git pull origin master
# 颜色
- 系统颜色
- 品牌色
- 功能色
-
#发布组件到 npm
- 切换到 npm 镜像源
nrm ls 查询当前的镜像源
nrm use npm 切换到 npm 官网镜像
- 登录 npm
npm adduser
- 发布前测试
npm run prepublish
- 发布到 npm
npm publish