搜索

PythonReactSEOPDF
GitHub Skill

dev-server

Development server setup and build watch monitoring. Use when starting dev work, checking build status, or troubleshooting the dev server. Also use when asking about localhost URLs, dev server ports, build errors or failures, the watch script, staging/production URLs, or how to preview docs pages locally.

ag-grid☆ 445 仓库 Stars37 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Development Server Guide

Starting the Dev Server

Run yarn nx dev from the repo root. This starts both the Astro dev server and the watch script that incrementally rebuilds packages on file changes.

Browser automation (claude-in-chrome): you may need to manually accept the self-signed certificate once at the local dev URL before automation works.

Per-Product Reference

AG Charts AG Grid AG Studio
Dev port 4600 4610 4620
Local URL https://localhost:4600/ https://localhost:4610/ https://localhost:4620/
Docs URL pattern /charts/javascript/${pageName}/ /${framework}-data-grid/${pageName}/ /${framework}/${pageName}/
Docs content packages/ag-charts-website/src/content/docs/ documentation/ag-grid-docs/src/content/docs/ packages/ag-studio-docs/src/content/docs/
Nav config …/ag-charts-website/src/content/docs-nav/nav.json …/ag-grid-docs/src/content/docs-nav/nav.json …/ag-studio-docs/src/content/docs-nav/nav.json
Gallery metadata …/ag-charts-website/src/content/gallery/data.json — —
Staging URL https://charts-staging.ag-grid.com/ https://grid-staging.ag-grid.com/ https://studio-staging.ag-grid.com/
Production URL https://www.ag-grid.com/charts/ https://www.ag-grid.com/ https://www.ag-grid.com/studio/

Staging note: Staging sites do not use the production path prefix (e.g. no /charts prefix on charts-staging.ag-grid.com).

Build Watch Status Monitoring

The watch script (external/ag-shared/scripts/watch/watch.js) writes status to node_modules/.cache/ag-watch-status.json. Check this file to confirm builds have finished before running tests, committing, or starting browser automation.

Key fields:

  • status: STARTING | RUNNING | BUILDING | IDLE | STOPPED
  • currentBuild: active build targets and projects (only when BUILDING)
  • recentBuilds: last 10 builds with status, duration, and errors
  • targetHistory: per-target success/failure counts
# Wait for idle before operations
while [ "$(jq -r '.status' node_modules/.cache/ag-watch-status.json 2>/dev/null)" = "BUILDING" ]; do
  sleep 2
done

Troubleshooting

Build failures: Check recentBuilds in the status file for error details. Failed builds do not block the watch loop — subsequent file changes will trigger new builds.

Nx daemon disabled: The watch script requires the Nx daemon. If it reports "Nx daemon has been disabled", run:

yarn nx reset && yarn

Repeated respawn errors: If you see "Repeated respawn detected", the Nx daemon is likely in a bad state:

yarn nx daemon --stop
yarn

Check .nx/cache/d/daemon.log for details.

Git operations pausing builds: The watch script automatically pauses builds while git operations are in progress (detects index.lock, rebase-merge, rebase-apply, MERGE_MSG). Builds resume automatically once the git operation completes.

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-03-11
索引更新时间
2026-03-11
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!