Skip to content

Commit

Permalink
Support scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
oovm committed Jan 31, 2025
1 parent b107c5c commit 5ca4dec
Show file tree
Hide file tree
Showing 8 changed files with 161 additions and 248 deletions.
155 changes: 92 additions & 63 deletions projects/legion-config/legion.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,36 @@
"DependencySystem": {
"type": "object",
"properties": {
"benchmark-dependencies": {
"description": "The dependencies for the bench\n\n - Override same name dependencies when benching",
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/LegionDependency"
},
"default": {}
},
"build-dependencies": {
"type": "array",
"default": [],
"items": {
"description": "The dependencies for the build\n\n - Override same name dependencies when building",
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/LegionDependency"
}
},
"default": {}
},
"dependencies": {
"type": "array",
"default": [],
"items": {
"supports": {
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/LegionDependency"
}
},
"default": {}
},
"tests-dependencies": {
"type": "array",
"default": [],
"items": {
"description": "The dependencies for the test\n\n - Override same name dependencies when testing",
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/LegionDependency"
}
},
"default": {}
}
}
},
Expand Down Expand Up @@ -90,19 +100,21 @@
"$ref": "#/components/schemas/LegionAuthors",
"default": null
},
"build-dependencies": {
"type": "array",
"default": [],
"items": {
"benchmark-dependencies": {
"description": "The dependencies for the bench\n\n - Override same name dependencies when benching",
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/LegionDependency"
}
},
"default": {}
},
"dependencies": {
"type": "array",
"default": [],
"items": {
"build-dependencies": {
"description": "The dependencies for the build\n\n - Override same name dependencies when building",
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/LegionDependency"
}
},
"default": {}
},
"documentation": {
"type": "string",
Expand All @@ -114,14 +126,10 @@
},
"keywords": {
"description": "The keywords of the package",
"type": [
"array",
"null"
],
"type": "array",
"items": {
"type": "string"
},
"nullable": true
}
},
"license": {
"type": "string",
Expand All @@ -134,9 +142,10 @@
"peers": {
"$ref": "#/components/schemas/DependencySystem",
"default": {
"build-dependencies": [],
"dependencies": [],
"tests-dependencies": []
"benchmark-dependencies": {},
"build-dependencies": {},
"supports": {},
"tests-dependencies": {}
}
},
"private": {
Expand All @@ -156,18 +165,27 @@
"default": ""
},
"scripts": {
"type": "array",
"default": [],
"items": {
"description": "Package level scripts\n\n The running directory is the package directory",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"default": {}
},
"supports": {
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/LegionDependency"
},
"default": {}
},
"tests-dependencies": {
"type": "array",
"default": [],
"items": {
"description": "The dependencies for the test\n\n - Override same name dependencies when testing",
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/LegionDependency"
}
},
"default": {}
},
"version": {
"description": "The version of the package",
Expand All @@ -184,7 +202,8 @@
}
},
"required": [
"name"
"name",
"keywords"
]
},
"LegionWorkspace": {
Expand All @@ -194,19 +213,21 @@
"$ref": "#/components/schemas/LegionAuthors",
"default": null
},
"build-dependencies": {
"type": "array",
"default": [],
"items": {
"benchmark-dependencies": {
"description": "The dependencies for the bench\n\n - Override same name dependencies when benching",
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/LegionDependency"
}
},
"default": {}
},
"dependencies": {
"type": "array",
"default": [],
"items": {
"build-dependencies": {
"description": "The dependencies for the build\n\n - Override same name dependencies when building",
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/LegionDependency"
}
},
"default": {}
},
"exclude": {
"description": "Exclude module in `exclude` paths",
Expand All @@ -232,14 +253,6 @@
"type": "string"
}
},
"peers": {
"$ref": "#/components/schemas/DependencySystem",
"default": {
"build-dependencies": [],
"dependencies": [],
"tests-dependencies": []
}
},
"private": {
"type": [
"boolean",
Expand All @@ -248,12 +261,28 @@
"default": null,
"nullable": true
},
"scripts": {
"description": "Workspace level scripts\n\n The running directory is the workspace directory",
"type": "object",
"additionalProperties": {
"type": "string"
},
"default": {}
},
"supports": {
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/LegionDependency"
},
"default": {}
},
"tests-dependencies": {
"type": "array",
"default": [],
"items": {
"description": "The dependencies for the test\n\n - Override same name dependencies when testing",
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/LegionDependency"
}
},
"default": {}
},
"version": {
"anyOf": [
Expand Down
80 changes: 0 additions & 80 deletions projects/legion-config/src/config/der.rs

This file was deleted.

46 changes: 0 additions & 46 deletions projects/legion-config/src/config/mod.rs

This file was deleted.

Loading

0 comments on commit 5ca4dec

Please sign in to comment.