@ant-design/cli 6.5.0 → 6.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -375,17 +375,26 @@ antd usage -f Button # filter to one component
375
375
 
376
376
  ### `antd lint [target]`
377
377
 
378
- Four rule categories: `deprecated`, `a11y`, `performance`, `best-practice`. Deprecation rules are derived from metadata at runtime, so they're always version-accurate.
378
+ Four rule categories: `deprecated`, `a11y`, `usage`, `performance`. Deprecation rules are derived from metadata at runtime, so they're always version-accurate.
379
379
 
380
380
  ```bash
381
381
  antd lint ./src
382
382
  antd lint ./src --only deprecated
383
383
  antd lint ./src --only a11y
384
+ antd lint ./src --only usage
385
+ antd lint ./src --diff # check changed files only
386
+ antd lint --staged # check staged files only
384
387
  antd lint ./src --only deprecated --format json --antd-alias @shared-components
385
388
  ```
386
389
 
390
+ `usage` checks include antd-specific prop/API mistakes such as Form.Item conflicts, Upload controlled value conflicts, static feedback APIs that should use `App.useApp()` in v5+, and v5+ Select children APIs that should use `options`.
391
+
387
392
  Use `--antd-alias <source>` to treat additional package names as aliases of `antd`. Repeat the flag for multiple wrapper packages; `antd` remains enabled by default.
388
393
 
394
+ Use `--diff [base]` to lint changed git files only. By default it compares with `origin/main`'s merge-base, falling back to `HEAD`; pass a base ref such as `main` to override it. Use `--staged` to lint only staged files.
395
+
396
+ Files that cannot be read or parsed are reported as skipped instead of being silently ignored. JSON output includes `skippedFiles`, `partial`, and `summary.skipped`; text and markdown output include a skipped-files section.
397
+
389
398
  ### `antd migrate <from> <to>`
390
399
 
391
400
  v3→v4 covers 15+ migration steps; v4→v5 covers 25+ migration steps; v5→v6 covers 30+. Each step includes component name, breaking flag, search pattern, and before/after code.
@@ -462,6 +471,7 @@ antd setup --client claude # write .mcp.json
462
471
  antd setup --client cursor # write .cursor/mcp.json
463
472
  antd setup --client vscode # write .vscode/mcp.json
464
473
  antd setup --client codex # install Codex project skill
474
+ antd setup --client github-actions # write .github/workflows/antd-cli.yml
465
475
  antd setup --client claude --dry-run # preview without writing files
466
476
  antd setup --client claude --project ./my-app
467
477
  antd setup --client claude --version 5.29.3 --lang zh
@@ -478,6 +488,7 @@ Modes:
478
488
  | `mcp` | Writes the client MCP config only. This is the default. |
479
489
  | `skill` | Installs the bundled Ant Design guidance for the selected client and writes a managed instruction block. |
480
490
  | `both` | Writes MCP config, installs the skill or skill reference, and writes the managed instruction block. |
491
+ | `ci` | Writes a GitHub Actions workflow. This mode is only supported by `--client github-actions`. |
481
492
 
482
493
  Supported clients:
483
494
 
@@ -487,6 +498,7 @@ Supported clients:
487
498
  | `cursor` | `.cursor/mcp.json` | `mcpServers` | `.agents/skills/antd/` shared skill | `AGENTS.md` |
488
499
  | `vscode` | `.vscode/mcp.json` | `servers` | `.agents/skills/antd/` shared skill | `AGENTS.md` |
489
500
  | `codex` | - | - | `.agents/skills/antd/` shared skill | `AGENTS.md` |
501
+ | `github-actions` | `.github/workflows/antd-cli.yml` | - | - | - |
490
502
 
491
503
  Generated server entry:
492
504
 
@@ -505,6 +517,8 @@ Skill instructions are written to the selected client's instruction file: Claude
505
517
 
506
518
  Codex setup currently supports skill installation only. Use `antd setup --client codex --mode skill`, or omit `--mode` because Codex defaults to `skill`.
507
519
 
520
+ GitHub Actions setup writes an advisory pull-request workflow that runs `npm ci`, `npm run build`, `npx -y @ant-design/cli doctor --format json`, and `npx -y @ant-design/cli lint ./src --format json`. Use `--check` to verify that the workflow matches the generated content.
521
+
508
522
  Use `--check` to validate an existing setup without writing files. It exits with code `0` when the selected mode is configured, and `1` when config, skill files, or instructions are missing or different.
509
523
 
510
524
  Use `--write-instructions` with the default `mcp` mode to also add an idempotent managed block to the selected agent instructions file, telling agents to use the configured `antd` MCP server before generating Ant Design code. With `--check`, it also verifies that instruction block.
Binary file
package/data/v6.json.gz CHANGED
Binary file
@@ -67,6 +67,6 @@
67
67
  "6.1": "6.1.4",
68
68
  "6.2": "6.2.3",
69
69
  "6.4": "6.4.5",
70
- "6.5": "6.5.0"
70
+ "6.5": "6.5.1"
71
71
  }
72
72
  }