暖通平台前端

wangcong 6cb529a7b4 chore: 添加 husky 和 lintstaged 配置 пре 3 месеци
.husky 6cb529a7b4 chore: 添加 husky 和 lintstaged 配置 пре 3 месеци
.vscode 6cb529a7b4 chore: 添加 husky 和 lintstaged 配置 пре 3 месеци
cypress 4fe30a9ae7 init: 初始化项目 пре 4 месеци
public 4fe30a9ae7 init: 初始化项目 пре 4 месеци
src 4fe30a9ae7 init: 初始化项目 пре 4 месеци
.editorconfig 4fe30a9ae7 init: 初始化项目 пре 4 месеци
.env.development 4fe30a9ae7 init: 初始化项目 пре 4 месеци
.env.production 4fe30a9ae7 init: 初始化项目 пре 4 месеци
.env.test 4fe30a9ae7 init: 初始化项目 пре 4 месеци
.gitignore 4fe30a9ae7 init: 初始化项目 пре 4 месеци
.lintstagedrc.cjs 6cb529a7b4 chore: 添加 husky 和 lintstaged 配置 пре 3 месеци
.prettierignore 4fe30a9ae7 init: 初始化项目 пре 4 месеци
.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 4fe30a9ae7 init: 初始化项目 пре 4 месеци
index.html 4fe30a9ae7 init: 初始化项目 пре 4 месеци
package.json 6cb529a7b4 chore: 添加 husky 和 lintstaged 配置 пре 3 месеци
pnpm-lock.yaml 6cb529a7b4 chore: 添加 husky 和 lintstaged 配置 пре 3 месеци
tsconfig.app.json 4fe30a9ae7 init: 初始化项目 пре 4 месеци
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 4fe30a9ae7 init: 初始化项目 пре 4 месеци
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