暖通平台前端

wangcong 9142be5b77 chore(icons): 添加 iconfont 3 月之前
.husky 40f4807a62 chore(config): 添加 commitlint 配置 3 月之前
.vscode b115149fd5 chore(config): 移除 element-plus 配置 3 月之前
cypress 4fe30a9ae7 init: 初始化项目 4 月之前
public 4fe30a9ae7 init: 初始化项目 4 月之前
src 9142be5b77 chore(icons): 添加 iconfont 3 月之前
.commitlintrc.cjs 9142be5b77 chore(icons): 添加 iconfont 3 月之前
.editorconfig 4fe30a9ae7 init: 初始化项目 4 月之前
.env.development 7199184553 chore(api): 封装接口请求函数 3 月之前
.env.production 4fe30a9ae7 init: 初始化项目 4 月之前
.env.test 4fe30a9ae7 init: 初始化项目 4 月之前
.gitignore 4fe30a9ae7 init: 初始化项目 4 月之前
.lintstagedrc.cjs 6cb529a7b4 chore: 添加 husky 和 lintstaged 配置 3 月之前
.prettierignore 9142be5b77 chore(icons): 添加 iconfont 3 月之前
.prettierrc.json 4fe30a9ae7 init: 初始化项目 4 月之前
.stylelintignore 4fe30a9ae7 init: 初始化项目 4 月之前
.stylelintrc.cjs 4fe30a9ae7 init: 初始化项目 4 月之前
CHANGELOG.md 4fe30a9ae7 init: 初始化项目 4 月之前
README.md 4fe30a9ae7 init: 初始化项目 4 月之前
cypress.config.ts 4fe30a9ae7 init: 初始化项目 4 月之前
eslint.config.js 9142be5b77 chore(icons): 添加 iconfont 3 月之前
index.html 4fe30a9ae7 init: 初始化项目 4 月之前
package.json 9142be5b77 chore(icons): 添加 iconfont 3 月之前
pnpm-lock.yaml 9142be5b77 chore(icons): 添加 iconfont 3 月之前
tsconfig.app.json 9f62fbd719 chore(config): 配置 antdv 类型 3 月之前
tsconfig.json 4fe30a9ae7 init: 初始化项目 4 月之前
tsconfig.node.json 4fe30a9ae7 init: 初始化项目 4 月之前
tsconfig.vitest.json 4fe30a9ae7 init: 初始化项目 4 月之前
uno.config.ts 4fe30a9ae7 init: 初始化项目 4 月之前
vite.config.ts b115149fd5 chore(config): 移除 element-plus 配置 3 月之前
vitest.config.ts 4fe30a9ae7 init: 初始化项目 4 月之前

README.md

暖通平台

Recommended IDE Setup

VSCode + Volar (and disable Vetur).

Type Support for .vue Imports in TS

TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.

Customize configuration

See Vite Configuration Reference.

Project Setup

pnpm install

Compile and Hot-Reload for Development

pnpm dev

Type-Check, Compile and Minify for Production

pnpm build

Run Unit Tests with Vitest

pnpm test:unit

Run End-to-End Tests with Cypress

pnpm test:e2e:dev

This runs the end-to-end tests against the Vite development server. It is much faster than the production build.

But it's still recommended to test the production build with test:e2e before deploying (e.g. in CI environments):

pnpm build
pnpm test:e2e

Lint with ESLint

pnpm lint