بنقرة واحدة
website
Build, serve, and test the dart_node documentation website (Eleventy + Playwright)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Build, serve, and test the dart_node documentation website (Eleventy + Playwright)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Builds all artifacts for this repo. Use when the user asks to build, compile, or produce artifacts, or when verifying that the project compiles cleanly.
Prepares the current branch for CI by running the exact same checks locally, fixing issues at each step. Use before pushing a branch or when the user wants to verify the branch will pass CI.
Searches for duplicate code, duplicate tests, and dead code, then safely merges or removes them. Use when the user says "deduplicate", "find duplicates", "remove dead code", "DRY up", or "code dedup". Requires test coverage — refuses to touch untested code.
Fix a bug using test-driven development. Use when the user reports a bug, describes unexpected behavior, wants to fix a defect, or says something is broken. Enforces a strict test-first workflow where a failing test must be written and verified before any fix is attempted.
Formats all code in this repo using dart format. Use when the user asks to format code, fix formatting, or before committing changes.
Runs all linters and format checks, then fixes any issues found. Use when the user asks to lint, check code quality, or fix linting errors.
استنادا إلى تصنيف SOC المهني
| name | website |
| description | Build, serve, and test the dart_node documentation website (Eleventy + Playwright) |
| argument-hint | [build|dev|test|clean] |
| disable-model-invocation | true |
| allowed-tools | Bash |
Build and test the dart_node documentation site at website/.
Parse $ARGUMENTS to determine the action:
build — Full production build (copies READMEs, generates API docs, runs Eleventy):
cd website && npm run build
dev — Start the dev server with live reload:
cd website && npm run dev
Serves at http://localhost:8080.
test — Run Playwright E2E tests (builds first if _site/ doesn't exist):
cd website && npm test
test:coverage — Run tests with V8 JS coverage:
cd website && npm run test:coverage
clean — Remove generated files:
cd website && npm run clean
No args — Default to build then test.
npm run build runs scripts/build.sh which does:
node scripts/copy-readmes.js — Copies package READMEs into the sitebash scripts/generate-api-docs.sh — Generates API reference from Dart sourcenpx eleventy — Generates static site into _site/9 test specs in website/tests/:
Playwright must be installed first. Run /setup-playwright if npx playwright --version fails.