杨明明
|
14205a9021
|
feat: 配置 TailwindCSS 并迁移到 Redux
- 配置 TailwindCSS 支持小程序开发
- 安装 tailwindcss, postcss, autoprefixer
- 安装 weapp-tailwindcss 插件支持小程序
- 配置 tailwind.config.js 和 postcss.config.js
- 更新 Taro 配置支持 TailwindCSS
- 从 Zustand 迁移到 Redux Toolkit
- 移除 zustand 依赖
- 安装 redux, react-redux, redux-thunk, @reduxjs/toolkit
- 重构状态管理架构:
- src/constants/ - Action 类型常量
- src/actions/ - Action creators 和异步 actions
- src/reducers/ - Reducers
- src/selectors/ - 状态选择器
- src/hooks/redux.ts - 类型化 hooks
- 更新组件使用新的 Redux API
- 保持数据持久化功能
- 更新应用配置
- 将 app.ts 重命名为 app.tsx 支持 JSX
- 添加 Redux Provider 到应用根组件
- 更新 TODO.md 标记完成状态
- 构建验证通过,所有功能正常
|
2025-09-03 16:33:06 +08:00 |
imeepos
|
9b3bc7bf2d
|
feat: 完善 TDD 开发环境配置
- 配置 Jest 测试框架,支持 TypeScript 和 React 组件测试
- 添加 Testing Library 相关依赖用于 React 组件测试
- 配置 Babel 预设支持 Jest 和 React 测试环境
- 添加 TDD 开发工作流脚本 (test, test:watch, test:coverage)
- 创建完整的 TDD 编码规范文档 (CLAUDE.md)
- 添加自定义 hooks 和多平台支持目录结构
- 配置 TypeScript 严格模式和 ESLint 规范
- 添加全局类型定义文件支持
|
2025-09-01 13:19:17 +08:00 |