暖通平台前端

wangcong 40f4807a62 chore(config): 添加 commitlint 配置 преди 3 месеца
.husky 40f4807a62 chore(config): 添加 commitlint 配置 преди 3 месеца
.vscode 40f4807a62 chore(config): 添加 commitlint 配置 преди 3 месеца
cypress 4fe30a9ae7 init: 初始化项目 преди 4 месеца
public 4fe30a9ae7 init: 初始化项目 преди 4 месеца
src 4fe30a9ae7 init: 初始化项目 преди 4 месеца
.commitlintrc.cjs 40f4807a62 chore(config): 添加 commitlint 配置 преди 3 месеца
.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 ce7aa259ab chore: 更新 eslint 配置 преди 3 месеца
index.html 4fe30a9ae7 init: 初始化项目 преди 4 месеца
package.json 40f4807a62 chore(config): 添加 commitlint 配置 преди 3 месеца
pnpm-lock.yaml 40f4807a62 chore(config): 添加 commitlint 配置 преди 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