一套模板,三种语言。秒级生成规范项目。
copier copy gh:gqy20/quick-template my-project
无论选择哪种语言,Make 命令完全一致
make install安装依赖make check代码检查make format格式化代码make typecheck类型检查make test运行测试make test-cov测试 + 覆盖率make run运行项目make all全量检查{{ project_slug }}/
├── src/{{ '{' }}package_name{{ '}' }}/
│ ├── __init__.py
│ ├── core.py
│ ├── logger.py
│ ├── api.py # {% if add_api %}FastAPI{% endif %}
│ └── main.py
├── tests/
├── pyproject.toml # uv + ruff + pytest
└── Makefile
{{ project_slug }}/
├── cmd/{{ '{' }}project_slug{{ '}' }}/
│ └── main.go # 入口 (Cobra)
├── internal/
│ ├── handler/ # HTTP (Gin)
│ ├── service/ # 业务逻辑
│ └── model/ # 数据模型
├── pkg/logger/ # 日志库 (slog)
├── tests/
├── go.mod # go mod + Gin + Cobra
└── Makefile
{{ project_slug }}/
├── src/
│ ├── index.ts # 入口
│ ├── core.ts # 核心功能
│ ├── logger.ts # 日志
│ └── api/router.ts # Hono 路由
├── tests/
├── package.json # npm + Biome + vitest
├── tsconfig.json
└── Makefile
Copier 交互式询问,选择 Python / Go / TypeScript
项目名称、作者、是否添加 API/CLI、开源协议等
Copier 根据 Jinja2 条件渲染对应语言的完整项目
make install && make test 即可开始开发