This is a React + TypeScript boilerplate built with Vite.
-
Create the project.
npx degit fabien-ml/react-ts-vite-template my-app
-
Access the project directory.
cd my-app
-
Initialize a git repository.
git init
-
Install dependencies.
npm install
-
Start dev server with hot reload at http://localhost:3000.
npm run dev
npm run lint
npm run build
Run the app in production mode at http://localhost:3000.
npm run serve
- Run unit tests and watch
npm run test:unit
- Run unit tests with coverage
npm run test:unit:coverage
- Run e2e tests
npm run test:e2e
This project is licensed under the MIT License.
-
Run commit commitizen、cz-customizable 提交 commit 更新检查信息
-
Run log 生成版本日志,自动根据版本号更新
样式规则配置文件 styleline.config.js
vsCode 配置 styleline 插件(工具市场搜索【styleline】
vsCode 打开【首先项-设置】,搜索 styleline 配置,
- 检查 Stylelint.Enable 设置为 true
- Stylelint.Snippet、Stylelint.Validate 点击添加项 scss
- npm 安装开发依赖
npm i -D stylelint stylelint-config-prettier stylelint-config-standard stylelint-order stylelint-config-standard-scss
- 基础色彩系统,主色调、次色调、警告、提示
- 字体色彩,大标题、小标题
- 其他(阴影、边框、背景)
cra-template-npm-library