JoYiHubv0.30.0

check

Run offline static artifact admission checks (dependencies, external URLs, size, entry HTML)

语法

joyihub check

参数

选项

属性

类型

示例

joyihub check --path ./dist

响应示例

{
  "analysis": {},
  "artifact_contract_version": 1,
  "artifact_hash": "sha256",
  "entry_path": "index.html",
  "file_count": 12,
  "total_bytes": 4096,
  "valid": true
}

返回字段

属性

类型

错误码

USAGE_ERROR · Exit 2

参数、取值或本地输入不合法

{
  "error": {
    "code": "USAGE_ERROR",
    "message": "参数、取值或本地输入不合法"
  }
}

INVALID_ARTIFACT_DEPENDENCIES · Exit 2

产物引用了未允许的外部脚本、缺失文件或违禁依赖;详见 details.analysis

{
  "error": {
    "code": "INVALID_ARTIFACT_DEPENDENCIES",
    "message": "产物引用了未允许的外部脚本、缺失文件或违禁依赖;详见 details.analysis"
  }
}

本页目录