Add premier and capIncompat metadata to plugins (#3453)

This commit is contained in:
Matt Netkow
2020-06-11 10:56:34 -05:00
committed by GitHub
parent 1567e8ff2f
commit 46bbf633e4
37 changed files with 46 additions and 0 deletions
+7
View File
@@ -15,6 +15,8 @@ interface Plugin {
cordovaPlugin: {
name: string;
};
premierSlug: string;
capacitorIncompatible: boolean;
}
const rootDir = resolve(__dirname, '../..');
@@ -55,6 +57,9 @@ function processPlugin(pluginModule): Plugin {
const displayName = getTag(pluginClass, 'name');
const usage = getTag(pluginClass, 'usage');
const description = getTag(pluginClass, 'description');
const premierSlug = getTag(pluginClass, 'premier');
const capIncompat = getTag(pluginClass, 'capacitorincompatible');
const capacitorIncompatible = capIncompat ? true : undefined;
return {
packageName,
displayName,
@@ -66,6 +71,8 @@ function processPlugin(pluginModule): Plugin {
cordovaPlugin: {
name: decorator.plugin,
},
premierSlug,
capacitorIncompatible,
};
}