太湖风浪模拟

linqilong 12178a8356 统一登陆接入 4 달 전
cypress e386e465b4 first commit 6 달 전
public cec72fafb9 Merge branch 'master' of http://39.98.38.2:13000/lql/tba-nbhs 5 달 전
src 12178a8356 统一登陆接入 4 달 전
.editorconfig e386e465b4 first commit 6 달 전
.gitignore e386e465b4 first commit 6 달 전
.prettierrc.json e386e465b4 first commit 6 달 전
README.md e386e465b4 first commit 6 달 전
cypress.config.ts e386e465b4 first commit 6 달 전
env.d.ts 9ca684fe1d 更新 6 달 전
eslint.config.js 9ca684fe1d 更新 6 달 전
index.html 2a96a96f50 gengxin 5 달 전
package-lock.json 504b0bca10 更新 5 달 전
package.json d3c12c285e 智慧运维接口接入 5 달 전
tsconfig.app.json e386e465b4 first commit 6 달 전
tsconfig.json 9ca684fe1d 更新 6 달 전
tsconfig.node.json e386e465b4 first commit 6 달 전
tsconfig.vitest.json e386e465b4 first commit 6 달 전
vite.config.ts 312bdcf855 更新 4 달 전
vitest.config.ts e386e465b4 first commit 6 달 전

README.md

太湖流域国家基本水文站(tba-nbhs)

TBA National Basic Hydrological Station

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.

项目设置

npm install

用于开发的 Compile 和 Hot-Reload

npm run dev

用于生产的类型检查、编译和缩小

npm run build

Run Unit Tests with Vitest

npm run test:unit

Run End-to-End Tests with Cypress

npm run 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):

npm run build
npm run test:e2e

Lint with ESLint

npm run lint