暖通平台前端

wangshun 3936278901 chore(i18n): 更新多语言 il y a 3 mois
.husky 40f4807a62 chore(config): 添加 commitlint 配置 il y a 3 mois
.vscode b115149fd5 chore(config): 移除 element-plus 配置 il y a 3 mois
cypress 4fe30a9ae7 init: 初始化项目 il y a 4 mois
public 4fe30a9ae7 init: 初始化项目 il y a 4 mois
src 3936278901 chore(i18n): 更新多语言 il y a 3 mois
.commitlintrc.cjs 40f4807a62 chore(config): 添加 commitlint 配置 il y a 3 mois
.editorconfig 4fe30a9ae7 init: 初始化项目 il y a 4 mois
.env.development 7199184553 chore(api): 封装接口请求函数 il y a 3 mois
.env.production 4fe30a9ae7 init: 初始化项目 il y a 4 mois
.env.test 4fe30a9ae7 init: 初始化项目 il y a 4 mois
.gitignore 4fe30a9ae7 init: 初始化项目 il y a 4 mois
.lintstagedrc.cjs 6cb529a7b4 chore: 添加 husky 和 lintstaged 配置 il y a 3 mois
.prettierignore 4fe30a9ae7 init: 初始化项目 il y a 4 mois
.prettierrc.json 4fe30a9ae7 init: 初始化项目 il y a 4 mois
.stylelintignore 4fe30a9ae7 init: 初始化项目 il y a 4 mois
.stylelintrc.cjs 4fe30a9ae7 init: 初始化项目 il y a 4 mois
CHANGELOG.md 4fe30a9ae7 init: 初始化项目 il y a 4 mois
README.md 4fe30a9ae7 init: 初始化项目 il y a 4 mois
cypress.config.ts 4fe30a9ae7 init: 初始化项目 il y a 4 mois
eslint.config.js b115149fd5 chore(config): 移除 element-plus 配置 il y a 3 mois
index.html 4fe30a9ae7 init: 初始化项目 il y a 4 mois
package.json 283890039f fix(config): 修复 eslint 在 win10 系统无法校验的问题 il y a 3 mois
pnpm-lock.yaml 283890039f fix(config): 修复 eslint 在 win10 系统无法校验的问题 il y a 3 mois
tsconfig.app.json 9f62fbd719 chore(config): 配置 antdv 类型 il y a 3 mois
tsconfig.json 4fe30a9ae7 init: 初始化项目 il y a 4 mois
tsconfig.node.json 4fe30a9ae7 init: 初始化项目 il y a 4 mois
tsconfig.vitest.json 4fe30a9ae7 init: 初始化项目 il y a 4 mois
uno.config.ts 4fe30a9ae7 init: 初始化项目 il y a 4 mois
vite.config.ts b115149fd5 chore(config): 移除 element-plus 配置 il y a 3 mois
vitest.config.ts 4fe30a9ae7 init: 初始化项目 il y a 4 mois

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