manifest.json 1.94 KB
{
  "id": "main-package-image-cdn",
  "title": "主包本地图片迁移 CDN 并清理历史残留",
  "sourceProject": "dj-car-boutique-work-wechat",
  "affectedPaths": [
    "components",
    "pages",
    "tabIndex",
    "tabWorkOrder",
    "utils",
    "cdn-upload",
    "project.config.json",
    "tests",
    "docs/CDN-IMAGE-MIGRATION.md"
  ],
  "interfaces": [
    "componentsImageUrl(name) returns CDN URL",
    "CLOSE_ICON_URL remains exported",
    "IMG_URL remains the CDN root with trailing slash",
    "Native app.json TabBar icon paths remain local"
  ],
  "tests": [
    {
      "id": "components-image-url-cdn-contract",
      "file": "tests/componentsImageUrl.test.mjs",
      "level": "contract",
      "expectedBefore": "pass",
      "status": "pass"
    },
    {
      "id": "main-package-image-footprint",
      "file": "tests/mainPackageImageCdnMigration.test.mjs",
      "level": "integration",
      "expectedBefore": "pass",
      "status": "pass"
    },
    {
      "id": "upload-exclusions",
      "file": "tests/migration-readiness/uploadExclusions.test.mjs",
      "level": "contract",
      "expectedBefore": "pass",
      "status": "pass"
    }
  ],
  "baseline": {
    "command": "node --test tests/componentsImageUrl.test.mjs",
    "result": "2/2 pass before changing the local-path expectations"
  },
  "apiInventory": "docs/migrations/main-package-image-cdn/api-inventory.md",
  "acceptance": "docs/migrations/main-package-image-cdn/test-acceptance.md",
  "verification": {
    "commands": [
      {
        "command": "node --test tests/componentsImageUrl.test.mjs tests/mainPackageImageCdnMigration.test.mjs tests/migration-readiness/uploadExclusions.test.mjs",
        "status": "pass"
      },
      {
        "command": "npm run test:components",
        "status": "pass"
      },
      {
        "command": "npm test",
        "status": "pass"
      },
      {
        "command": "git diff --check",
        "status": "pass"
      }
    ]
  }
}