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で見る