- 新增 scripts/generate-tokens.ts 从 SCSS 解析 CSS 变量生成 token-values.ts - 新增 useCanvasTokens hook 供 Canvas 组件适老化/医生端切换 - vitest include 扩展覆盖 scripts/__tests__/ - 10 单元测试覆盖 SCSS 解析和变量替换
67 lines
2.1 KiB
JSON
67 lines
2.1 KiB
JSON
{
|
|
"name": "hms-miniprogram",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"description": "HMS 健康管理平台患者小程序",
|
|
"scripts": {
|
|
"generate-tokens": "tsx scripts/generate-tokens.ts",
|
|
"build:weapp": "taro build --type weapp",
|
|
"dev:weapp": "taro build --type weapp --watch",
|
|
"lint": "eslint src/",
|
|
"lint:fix": "eslint src/ --fix",
|
|
"format": "prettier --write 'src/**/*.{ts,tsx}'",
|
|
"format:check": "prettier --check 'src/**/*.{ts,tsx}'",
|
|
"typecheck": "tsc --noEmit",
|
|
"test:e2e": "vitest run --config e2e/vitest.config.ts",
|
|
"dev:h5": "dotenv -e .env.h5 -- taro build --type h5 --watch",
|
|
"build:h5": "dotenv -e .env.h5 -- taro build --type h5"
|
|
},
|
|
"browserslist": [
|
|
"last 3 versions",
|
|
"Android >= 4.1",
|
|
"ios >= 8"
|
|
],
|
|
"dependencies": {
|
|
"@tarojs/components": "4.2.0",
|
|
"@tarojs/helper": "4.2.0",
|
|
"@tarojs/plugin-framework-react": "4.2.0",
|
|
"@tarojs/plugin-platform-weapp": "4.2.0",
|
|
"@tarojs/react": "4.2.0",
|
|
"@tarojs/runtime": "4.2.0",
|
|
"@tarojs/shared": "4.2.0",
|
|
"@tarojs/taro": "4.2.0",
|
|
"react": "^18.3.0",
|
|
"react-dom": "18.3.1",
|
|
"zustand": "^5.0.0",
|
|
"@noble/ciphers": "^1.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/preset-env": "^7.29.2",
|
|
"@babel/preset-react": "^7.28.5",
|
|
"@babel/preset-typescript": "^7.28.5",
|
|
"@babel/runtime": "^7.27.0",
|
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.6.2",
|
|
"@tarojs/cli": "4.2.0",
|
|
"@tarojs/plugin-platform-h5": "^4.2.0",
|
|
"@tarojs/webpack5-runner": "4.2.0",
|
|
"@types/react": "^18.3.0",
|
|
"babel-preset-taro": "^4.2.0",
|
|
"dotenv-cli": "^11.0.0",
|
|
"miniprogram-automator": "^0.12.1",
|
|
"react-refresh": "^0.14.0",
|
|
"sass": "^1.87.0",
|
|
"typescript": "^5.8.0",
|
|
"@types/node": "^22.0.0",
|
|
"eslint": "^9.0.0",
|
|
"@eslint/js": "^9.0.0",
|
|
"@typescript-eslint/parser": "^8.0.0",
|
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
"eslint-plugin-react-refresh": "^0.4.0",
|
|
"prettier": "^3.0.0",
|
|
"eslint-config-prettier": "^10.0.0",
|
|
"vite": "^8.0.10",
|
|
"vitest": "^4.1.5",
|
|
"webpack": "~5.95.0"
|
|
}
|
|
} |