Skip to main content

dev

Build and start the merjs dev server with hot reload. Use when the user wants to run, start, or serve the project.

来源信息

仓库
justrach/merjs
最近来源活动
2026年3月12日 03:58
检测到的 SKILL.md 语言
英语
星标
357
分支
17

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
dev
description
Build and start the merjs dev server with hot reload. Use when the user wants to run, start, or serve the project.
disable-model-invocation
true
# Start merjs dev server ## Steps 1. Kill any existing process on port 3000: ```bash lsof -ti :3000 | xargs kill -9 2>/dev/null ``` 2. Regenerate routes (in case pages changed): ```bash zig build codegen ``` 3. Build the project: ```bash zig build ``` 4. Start the dev server in the background: ```bash ./zig-out/bin/merjs --port 3000 & ``` 5. Wait 2 seconds, then verify the server is listening: ```bash lsof -i :3000 -sTCP:LISTEN ``` 6. Tell the user the server is running at http://localhost:3000 ## Flags - `--port N` — listen on a different port - `--no-dev` — disable hot reload (SSE watcher) - `--prerender` — pre-render SSG pages to dist/ and exit
在 GitHub 查看