本地开发
- 作者仓库星标 330
- 许可证 MIT
- 作者仓库 claude-skill-registry
- 领域
- 数据
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 94 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @majiayu000 · MIT
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 需简单配置
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- macOS
- 运行环境要求
- 未检出明确要求
- 检测到的文件与系统行为
-
- 只读
- 命令执行
- 网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
# Start Local Development Environment
Start the backend server and macOS app for local development.
## Usage
Run `/local-dev` to start both the backend and app, or:
- `/local-dev backend` - start backend only
- `/local-dev app` - build and run the macOS app (debug mode)
- `/local-dev app --clean` - clean build and run (forces Swift recompilation)
- `/local-dev app --release` - build and run in release mode
## Commands
### Backend
```bash
cd backend
lsof -ti:8000 | xargs kill -9 2>/dev/null || true
python3 -c "from dotenv import load_dotenv; load_dotenv(); import subprocess; subprocess.run(['python3', '-m', 'uvicorn', 'main:app', '--host', '0.0.0.0', '--port', '8000', '--reload'])"
```
### App
```bash
app/scripts/dev-macos.sh $EXTRA_ARGS
```
Where `$EXTRA_ARGS` can be:
- `--clean` - force clean build (removes build cache, ensures Swift recompilation)
- `--release` - build in release mode instead of debug
- `--no-run` - build only, don't launch the app
## Argument Handling
When `$ARGUMENTS` is "backend", only start the backend.
When `$ARGUMENTS` is "app", build and run the macOS app.
When `$ARGUMENTS` starts with "app ", pass remaining args to the script (e.g., "app --clean").
When `$ARGUMENTS` is empty or "all", start both backend and app.
章节与文件索引
按说明文件中的顺序排列。
用途
应用程序
参数处理
文件/命令 -> /local-dev · /local-dev backend · /local-dev app · /local-dev app --clean · /local-dev app --release · $EXTRA_ARGS · --clean · --release
内容校验值 -> d155bbeda4a1
当前原文的自动摘译,尚未人工审校。
用途
运行
/local-dev以启动后端和应用程序,或者:/local-dev backend- 仅启动后端/local-dev app- 构建并运行 macOS 应用程序(调试模式)/local-dev app --clean- 干净构建并运行(强制 Swift 重新编译)/local-dev app --release- 在发布模式下构建并运行应用程序
其中
$EXTRA_ARGS可以是:--clean- 强制清理构建(删除构建缓存,确保 Swift 重新编译)--release- 在发布模式下构建而不是调试--no-run- 仅构建,不启动应用程序参数处理
当
$ARGUMENTS为“后端”时,仅启动后端。当$ARGUMENTS为“app”时,构建并运行 macOS 应用程序。当$ARGUMENTS以“app”开头时,将剩余的参数传递给脚本(例如“app --clean”)。当$ARGUMENTS为空或“全部”时,启动后端和应用程序。