39fe248f9f
- 新增 .claude/skills/new-project/SKILL.md(标准 skill 格式) - install-skill.sh 安装时组装 SKILL.md + verify.sh,单一源无重复 - verify.sh 改用索引数组替代 declare -A,兼容 macOS bash 3.2 - log_pass/log_skip 显式 return 0,避免 set -e 下非 verbose 误退出 - README 改为 skill 优先;补全 copier.yml/scripts/template 入库
44 lines
1.1 KiB
Django/Jinja
44 lines
1.1 KiB
Django/Jinja
{
|
|
"name": "{{ project_slug }}-frontend",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc && vite build",
|
|
"preview": "vite preview",
|
|
"lint": "eslint src",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest",
|
|
"test:run": "vitest run"
|
|
},
|
|
"dependencies": {
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"zustand": "^5.0.0",
|
|
"@tanstack/react-query": "^5.0.0",
|
|
"zod": "^3.23.0",
|
|
"sonner": "^1.5.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/react": "^18.3.0",
|
|
"@types/react-dom": "^18.3.0",
|
|
"@vitejs/plugin-react": "^4.3.0",
|
|
"vite": "^5.4.0",
|
|
"typescript": "^5.5.0",
|
|
"eslint": "^9.11.0",
|
|
"@typescript-eslint/eslint-plugin": "^8.7.0",
|
|
"@typescript-eslint/parser": "^8.7.0",
|
|
"eslint-plugin-react-hooks": "^5.1.0",
|
|
"eslint-plugin-react-refresh": "^0.4.0",
|
|
"prettier": "^3.3.0",
|
|
"vitest": "^2.1.0",
|
|
"@testing-library/react": "^16.0.0",
|
|
"@testing-library/jest-dom": "^6.5.0",
|
|
"@vitest/coverage-v8": "^2.1.0",
|
|
"tailwindcss": "^3.4.0",
|
|
"autoprefixer": "^10.4.0",
|
|
"postcss": "^8.4.0",
|
|
"jsdom": "^25.0.0"
|
|
}
|
|
}
|