Track HiveGrid Cloud planning reference
This commit is contained in:
1 parent
b3d5ea6764
commit
e341c5938a
5784 files changed
+1104929
-3
No files matched your search
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "Bundle Budgets Config",
|
||||
"description": "Per-route and per-vendor-chunk gzip-size budgets used by scripts/verify-bundle-size.mjs.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["default", "routes", "vendorChunks"],
|
||||
"properties": {
|
||||
"$schema": { "type": "string" },
|
||||
"comment": { "type": "string" },
|
||||
"default": { "$ref": "#/definitions/budget" },
|
||||
"routes": {
|
||||
"type": "object",
|
||||
"additionalProperties": { "$ref": "#/definitions/budget" }
|
||||
},
|
||||
"vendorChunks": {
|
||||
"type": "object",
|
||||
"additionalProperties": { "$ref": "#/definitions/budget" }
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
"budget": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["limitKb", "warningKb"],
|
||||
"properties": {
|
||||
"limitKb": {
|
||||
"type": "number",
|
||||
"minimum": 1,
|
||||
"description": "Hard limit in kilobytes (gzip). Above this the route is flagged as exceeding budget; CI emits a warning comment but does not fail."
|
||||
},
|
||||
"warningKb": {
|
||||
"type": "number",
|
||||
"minimum": 1,
|
||||
"description": "Warning threshold in kilobytes (gzip). Above this and at-or-below limitKb, route is flagged as approaching budget."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user