https://github.com/shepherdwind/game
https://github.com/shepherdwind/game
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/shepherdwind/game
- Owner: shepherdwind
- Created: 2025-03-24T13:31:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-25T00:06:10.000Z (over 1 year ago)
- Last Synced: 2025-03-25T01:20:36.997Z (over 1 year ago)
- Language: TypeScript
- Size: 128 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tri-FACTa!™
一个有趣的数学卡牌游戏,通过组合数字卡片来创建数学等式。
## 开发环境设置
### 前置要求
- Node.js >= 18
- npm >= 9
### 安装依赖
```bash
npm install
```
### 开发服务器
```bash
npm run dev
```
### 构建生产版本
```bash
npm run build
```
### 运行测试
```bash
npm test
```
### 代码格式化
```bash
npm run format
```
## 项目结构
```
src/
├── components/ # 可复用组件
├── pages/ # 页面组件
├── hooks/ # 自定义 Hooks
├── utils/ # 工具函数
├── types/ # TypeScript 类型定义
├── assets/ # 静态资源
└── styles/ # 样式文件
```
## 技术栈
- React 18
- TypeScript
- Vite
- TailwindCSS
- Jest + React Testing Library
## 开发规范
- 使用 ESLint 进行代码检查
- 使用 Prettier 进行代码格式化
- 遵循 TypeScript 严格模式
- 使用 Jest 进行单元测试
## 许可证
MIT