feat: add explore-backend plugin

Signed-off-by: Andrew Thauer <athauer@wealthsimple.com>
This commit is contained in:
Andrew Thauer
2022-11-28 13:43:28 -05:00
parent 41cceb9a3a
commit 4dec6f16be
42 changed files with 1411 additions and 31 deletions
+5 -11
View File
@@ -4,23 +4,17 @@
```ts
import { ApiRef } from '@backstage/core-plugin-api';
import * as common from '@backstage/plugin-explore-common';
// @public (undocumented)
export type ExploreTool = {
title: string;
description?: string;
url: string;
image: string;
tags?: string[];
lifecycle?: string;
};
// @public @deprecated (undocumented)
export type ExploreTool = common.ExploreTool;
// @public (undocumented)
// @public @deprecated (undocumented)
export interface ExploreToolsConfig {
// (undocumented)
getTools: () => Promise<ExploreTool[]>;
}
// @public (undocumented)
// @public @deprecated (undocumented)
export const exploreToolsConfigRef: ApiRef<ExploreToolsConfig>;
```
+2 -1
View File
@@ -32,7 +32,8 @@
"start": "backstage-cli package start"
},
"dependencies": {
"@backstage/core-plugin-api": "workspace:^"
"@backstage/core-plugin-api": "workspace:^",
"@backstage/plugin-explore-common": "workspace:^"
},
"devDependencies": {
"@backstage/cli": "workspace:^",
+19 -12
View File
@@ -16,22 +16,29 @@
import { createApiRef } from '@backstage/core-plugin-api';
/** @public */
/**
* Deprecated types moved to `@backstage/plugin-explore-common`
*/
import * as common from '@backstage/plugin-explore-common';
/**
* @deprecated Use ExploreTool from `@backstage/plugin-explore-common`
* @public
*/
export type ExploreTool = common.ExploreTool;
/**
* @deprecated Use exploreApiRef from `@backstage/plugin-explore` & the `@backstage/plugin-explore-backend`
* @public
*/
export const exploreToolsConfigRef = createApiRef<ExploreToolsConfig>({
id: 'plugin.explore.toolsconfig',
});
/** @public */
export type ExploreTool = {
title: string;
description?: string;
url: string;
image: string;
tags?: string[];
lifecycle?: string;
};
/** @public */
/**
* @deprecated Use ExploreApi from `@backstage/plugin-explore` & the `@backstage/plugin-explore-backend`
* @public
*/
export interface ExploreToolsConfig {
getTools: () => Promise<ExploreTool[]>;
}