mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
* feat: (AppRunner) Mechanism to configure cli args and derive componentsjs vars from them implemented * fix: (AppRunner) tidying * fix: (AppRunner) tidying up * fix: (AppRunner) runCli method made sync * fix; (VarResolver) refactored to multiple files, and other stylistic fixes. * chore: (AppRunner) Uses builder pattern for yargs base arguments setup to enable better typescript inference * fix(AppRunner): refactoring AppRunner and VarResolver * fix(AppRunner): refactoring AppRunner promise handling * fix(AppRunner): verror dependency removal * fix: Simplify CLI error handling * feat: Use same config for both CLI and app instantiation * fix: Update typings and imports * feat: Split VariableResolver behaviour to 2 classes * feat: Move default value behaviour from CLI to ValueComputers * test: Add unit tests for new CLI classes * feat: Integrate new CLI configuration with all default configurations * feat: Add createApp function to AppRunner * docs: Update comments in CLI-related classes * fix: Various fixes and refactors Co-authored-by: damooo <damodara@protonmail.com>
66 lines
2.4 KiB
JSON
66 lines
2.4 KiB
JSON
{
|
|
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^2.0.0/components/context.jsonld",
|
|
"@graph": [
|
|
{
|
|
"comment": "Converts an input key/value object into an object mapping values to Components.js variables",
|
|
"@id": "urn:solid-server-app-setup:default:SettingsResolver",
|
|
"@type": "CombinedSettingsResolver",
|
|
"computers": [
|
|
{
|
|
"CombinedSettingsResolver:_computers_key": "urn:solid-server:default:variable:baseUrl",
|
|
"CombinedSettingsResolver:_computers_value": {
|
|
"@type": "BaseUrlExtractor"
|
|
}
|
|
},
|
|
{
|
|
"CombinedSettingsResolver:_computers_key": "urn:solid-server:default:variable:loggingLevel",
|
|
"CombinedSettingsResolver:_computers_value": {
|
|
"@type": "KeyExtractor",
|
|
"key": "loggingLevel",
|
|
"defaultValue": "info"
|
|
}
|
|
},
|
|
{
|
|
"CombinedSettingsResolver:_computers_key": "urn:solid-server:default:variable:port",
|
|
"CombinedSettingsResolver:_computers_value": {
|
|
"@type": "KeyExtractor",
|
|
"key": "port",
|
|
"defaultValue": 3000
|
|
}
|
|
},
|
|
{
|
|
"CombinedSettingsResolver:_computers_key": "urn:solid-server:default:variable:rootFilePath",
|
|
"CombinedSettingsResolver:_computers_value": {
|
|
"@type": "AssetPathExtractor",
|
|
"key": "rootFilePath",
|
|
"defaultPath": "./"
|
|
}
|
|
},
|
|
{
|
|
"CombinedSettingsResolver:_computers_key": "urn:solid-server:default:variable:sparqlEndpoint",
|
|
"CombinedSettingsResolver:_computers_value": {
|
|
"@type": "KeyExtractor",
|
|
"key": "sparqlEndpoint"
|
|
}
|
|
},
|
|
{
|
|
"CombinedSettingsResolver:_computers_key": "urn:solid-server:default:variable:showStackTrace",
|
|
"CombinedSettingsResolver:_computers_value": {
|
|
"@type": "KeyExtractor",
|
|
"key": "showStackTrace",
|
|
"defaultValue": false
|
|
}
|
|
},
|
|
{
|
|
"CombinedSettingsResolver:_computers_key": "urn:solid-server:default:variable:AssetPathResolver",
|
|
"CombinedSettingsResolver:_computers_value": {
|
|
"@type": "AssetPathExtractor",
|
|
"key": "podConfigJson",
|
|
"defaultPath": "./pod-config.json"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|