Template
- 新增 Vite、React 和 TypeScript 的基础模板 - 添加 ESLint 和 Husky 进行代码检查和提交钩子 - 创建基本的 HTML、CSS 和 TypeScript 文件 - 配置 tsconfig 和 Vite 相关文件
32 lines
644 B
JSON
32 lines
644 B
JSON
{
|
|
"name": "eco-steps",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc -b && vite build",
|
|
"lint": "biome check .",
|
|
"lint:fix": "biome check --write .",
|
|
"preview": "vite preview",
|
|
"prepare": "husky"
|
|
},
|
|
"lint-staged": {
|
|
"*": "bunx biome check --write"
|
|
},
|
|
"dependencies": {
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "2.3.11",
|
|
"@types/react": "^19.0.10",
|
|
"@types/react-dom": "^19.0.4",
|
|
"@vitejs/plugin-react": "^4.3.4",
|
|
"husky": "^9.1.7",
|
|
"lint-staged": "^16.2.7",
|
|
"typescript": "~5.7.2",
|
|
"vite": "^6.2.0"
|
|
}
|
|
}
|