local-development
Oak AI 项目的开发服务器和构建命令,包括在端口 2525 上运行开发服务器、生产环境和开发环境构建,以及使用环境变量运行脚本。启动本地开发、构建项目或运行脚本时使用。
📖 中文导读:Oak AI 项目的开发服务器和构建命令,包括在端口 2525 上运行开发服务器、生产环境和开发环境构建,以及使用环境变量运行脚本。启动本地开发、构建项目或运行脚本时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: local-development description: Development server and build commands for Oak AI project including running dev server on port 2525, production and development builds, and running scripts with environment variables. Use when starting local development, building the project, or running scripts.
Local Development
Development Server
Start the Next.js development server:
pnpm dev
- Runs on port 2525
- Hot reload enabled
Build Commands
Production Build
pnpm build
Development Build
pnpm build:dev
Running Scripts with Environment Variables
Use pnpm with-env to run scripts with environment variables loaded:
pnpm with-env tsx src/script.ts
Monorepo Structure
This is a Turborepo monorepo using pnpm workspaces. Target specific packages with --filter:
pnpm --filter @oakai/nextjs dev
pnpm --filter @oakai/aila build