一键导入
farm-ready-gate
// Run Farm verification with build-first constraints. For verify/acceptance, use npm run build only for core, rust plugins, and affected examples; do not run cargo check/clippy. Use when validating changes before merge or push.
// Run Farm verification with build-first constraints. For verify/acceptance, use npm run build only for core, rust plugins, and affected examples; do not run cargo check/clippy. Use when validating changes before merge or push.
Use when building Farm locally from source, native bindings or Rust plugin artifacts are missing, or an example/E2E needs local core and plugin artifacts.
Comprehensive Farm build-tool reference for AI agents. Use when writing or reviewing farm.config.ts, adding/configuring plugins, troubleshooting builds, implementing SSR or library mode, using the JavaScript API, writing Farm JS/Rust plugins, or authoring custom plugins from scratch. Covers all config options, official plugins, CLI commands, key features, and plugin authoring sourced from website/docs.
Deep integration with Docusaurus for documentation site development. Configure projects, manage sidebars, versioning, i18n, develop plugins, and optimize builds for React-based documentation.
Commit and push repository changes safely. Use when user asks to commit, push, or verify and push current changes.
Fetch origin/main, rebase current branch, resolve conflicts safely, then commit and push changes; create a PR if none exists for the branch.
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
| name | farm-ready-gate |
| description | Run Farm verification with build-first constraints. For verify/acceptance, use npm run build only for core, rust plugins, and affected examples; do not run cargo check/clippy. Use when validating changes before merge or push. |
| license | MIT |
| compatibility | Requires Node, pnpm, cargo, and project dependencies. |
| metadata | {"author":"farm","version":"1.0"} |
Run repository verification with build-first constraints. For verify/acceptance, default to npm run build only.
npm run build.cargo build, cargo check, or cargo clippy.npm run build in each affected example directory.pnpm run ready when the user explicitly asks for full CI parity.Use when: fixing a bug, changing a single package/crate/plugin, adding a small localized feature.
Steps (run in order, stop at first failure):
@farmfe/core (always required — it is the central dependency):pnpm --filter @farmfe/core run build
npm run build
cd examples/<name> && npm run build
If all three steps pass, verification is PASS.
Use when: refactoring across multiple packages/plugins, changing plugin/compiler APIs, touching build infrastructure.
Default verify flow (still build-only):
pnpm --filter @farmfe/core run build
# then run npm run build in each changed rust-plugin/js-plugin/example package
Optional CI parity flow (only if explicitly requested):
pnpm run ready
Do not switch to this flow automatically.
When pnpm run ready is explicitly requested, the script runs checks in this order:
pnpm install)node ./scripts/clean.mjs)npx cspell "**" --gitignore)runTaskQueuecargo check --color always --all --all-targets)cargo clippy)pnpm run --filter "@farmfe/*" type-check)pnpm run test)cargo test -j <cpu_based_jobs>)buildCoreCjs)buildExamples)pnpm run test-e2e)npm run build.cargo check or cargo clippy in verify flow.pnpm run ready only when explicitly requested by the user.Result: PASS or FAILCommand: exact command executedFailure Step: if failed, map to ready flow item number/nameNext Action: one concrete fix direction