暖通平台前端

wangcong b115149fd5 chore(config): 移除 element-plus 配置 3 mēneši atpakaļ
.husky 40f4807a62 chore(config): 添加 commitlint 配置 3 mēneši atpakaļ
.vscode b115149fd5 chore(config): 移除 element-plus 配置 3 mēneši atpakaļ
cypress 4fe30a9ae7 init: 初始化项目 4 mēneši atpakaļ
public 4fe30a9ae7 init: 初始化项目 4 mēneši atpakaļ
src b115149fd5 chore(config): 移除 element-plus 配置 3 mēneši atpakaļ
.commitlintrc.cjs 40f4807a62 chore(config): 添加 commitlint 配置 3 mēneši atpakaļ
.editorconfig 4fe30a9ae7 init: 初始化项目 4 mēneši atpakaļ
.env.development 4fe30a9ae7 init: 初始化项目 4 mēneši atpakaļ
.env.production 4fe30a9ae7 init: 初始化项目 4 mēneši atpakaļ
.env.test 4fe30a9ae7 init: 初始化项目 4 mēneši atpakaļ
.gitignore 4fe30a9ae7 init: 初始化项目 4 mēneši atpakaļ
.lintstagedrc.cjs 6cb529a7b4 chore: 添加 husky 和 lintstaged 配置 3 mēneši atpakaļ
.prettierignore 4fe30a9ae7 init: 初始化项目 4 mēneši atpakaļ
.prettierrc.json 4fe30a9ae7 init: 初始化项目 4 mēneši atpakaļ
.stylelintignore 4fe30a9ae7 init: 初始化项目 4 mēneši atpakaļ
.stylelintrc.cjs 4fe30a9ae7 init: 初始化项目 4 mēneši atpakaļ
CHANGELOG.md 4fe30a9ae7 init: 初始化项目 4 mēneši atpakaļ
README.md 4fe30a9ae7 init: 初始化项目 4 mēneši atpakaļ
cypress.config.ts 4fe30a9ae7 init: 初始化项目 4 mēneši atpakaļ
eslint.config.js b115149fd5 chore(config): 移除 element-plus 配置 3 mēneši atpakaļ
index.html 4fe30a9ae7 init: 初始化项目 4 mēneši atpakaļ
package.json b115149fd5 chore(config): 移除 element-plus 配置 3 mēneši atpakaļ
pnpm-lock.yaml b115149fd5 chore(config): 移除 element-plus 配置 3 mēneši atpakaļ
tsconfig.app.json b115149fd5 chore(config): 移除 element-plus 配置 3 mēneši atpakaļ
tsconfig.json 4fe30a9ae7 init: 初始化项目 4 mēneši atpakaļ
tsconfig.node.json 4fe30a9ae7 init: 初始化项目 4 mēneši atpakaļ
tsconfig.vitest.json 4fe30a9ae7 init: 初始化项目 4 mēneši atpakaļ
uno.config.ts 4fe30a9ae7 init: 初始化项目 4 mēneši atpakaļ
vite.config.ts b115149fd5 chore(config): 移除 element-plus 配置 3 mēneši atpakaļ
vitest.config.ts 4fe30a9ae7 init: 初始化项目 4 mēneši atpakaļ

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