1
0
Fork 0
mirror of synced 2024-06-02 02:25:17 +12:00

Add feature flags to manifest

This commit is contained in:
Andrew Kingston 2021-07-07 13:53:59 +01:00
parent 4dec87795a
commit 54236ee031
2 changed files with 12 additions and 4 deletions

View file

@ -20,10 +20,14 @@ exports.fetchAppComponentDefinitions = async function (ctx) {
const definitions = {}
for (let { manifest, library } of componentManifests) {
for (let key of Object.keys(manifest)) {
const fullComponentName = `${library}/${key}`.toLowerCase()
definitions[fullComponentName] = {
component: fullComponentName,
...manifest[key],
if (key === "features") {
definitions[key] = manifest[key]
} else {
const fullComponentName = `${library}/${key}`.toLowerCase()
definitions[fullComponentName] = {
component: fullComponentName,
...manifest[key],
}
}
}
}

View file

@ -1,4 +1,8 @@
{
"features": {
"spectrumThemes": true,
"intelligentLoading": true
},
"layout": {
"name": "Layout",
"description": "This component is specific only to layouts",