@backstage-community/plugin-lighthouse 0.12.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/README.md +24 -1
- package/dist/alpha/extensions.esm.js +54 -0
- package/dist/alpha/extensions.esm.js.map +1 -0
- package/dist/alpha/plugin.esm.js +16 -0
- package/dist/alpha/plugin.esm.js.map +1 -0
- package/dist/alpha.d.ts +124 -0
- package/dist/alpha.esm.js +6 -0
- package/dist/alpha.esm.js.map +1 -0
- package/package.json +42 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @backstage-community/plugin-lighthouse
|
|
2
2
|
|
|
3
|
+
## 0.13.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a1ec06f: Added support for the new frontend system.
|
|
8
|
+
- Updated dependencies [a1ec06f]
|
|
9
|
+
- @backstage-community/plugin-lighthouse-common@0.10.1
|
|
10
|
+
|
|
11
|
+
## 0.13.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- 51df1cb: Backstage version bump to v1.42.4
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [51df1cb]
|
|
20
|
+
- @backstage-community/plugin-lighthouse-common@0.10.0
|
|
21
|
+
|
|
3
22
|
## 0.12.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -32,7 +32,30 @@ When you have an instance running that Backstage can hook into, first install th
|
|
|
32
32
|
yarn --cwd packages/app add @backstage-community/plugin-lighthouse
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
If you have [Feature Discovery](https://backstage.io/docs/frontend-system/architecture/app#feature-discovery) enabled, no additional configuration is required. Otherwise, you should be able to enable the plugin in your `packages/app/src/App.tsx`:
|
|
36
|
+
|
|
37
|
+
```diff
|
|
38
|
+
+ import lighthousePlugin from '@backstage-community/plugin-lighthouse';
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
...
|
|
42
|
+
|
|
43
|
+
export const app = createApp({
|
|
44
|
+
features: [
|
|
45
|
+
catalogPlugin,
|
|
46
|
+
catalogImportPlugin,
|
|
47
|
+
userSettingsPlugin,
|
|
48
|
+
+ lighthousePlugin,
|
|
49
|
+
// ...
|
|
50
|
+
],
|
|
51
|
+
});
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
That's it!
|
|
55
|
+
|
|
56
|
+
### Legacy Frontend
|
|
57
|
+
|
|
58
|
+
If you are using the legacy frontend, modify your app routes in `App.tsx` to include the `LighthousePage` component exported from the plugin, for example:
|
|
36
59
|
|
|
37
60
|
```tsx
|
|
38
61
|
// In packages/app/src/App.tsx
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { PageBlueprint, ApiBlueprint, configApiRef, NavItemBlueprint } from '@backstage/frontend-plugin-api';
|
|
3
|
+
import { convertLegacyRouteRef, compatWrapper } from '@backstage/core-compat-api';
|
|
4
|
+
import { rootRouteRef } from '../plugin.esm.js';
|
|
5
|
+
import { lighthouseApiRef } from '../api.esm.js';
|
|
6
|
+
import { LighthouseRestApi } from '@backstage-community/plugin-lighthouse-common';
|
|
7
|
+
import { EntityCardBlueprint, EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';
|
|
8
|
+
import { isLighthouseAvailable } from '../Router.esm.js';
|
|
9
|
+
import Highlight from '@material-ui/icons/Highlight';
|
|
10
|
+
|
|
11
|
+
const lighthousePage = PageBlueprint.make({
|
|
12
|
+
params: {
|
|
13
|
+
path: "/lighthouse",
|
|
14
|
+
routeRef: convertLegacyRouteRef(rootRouteRef),
|
|
15
|
+
loader: async () => import('../Router.esm.js').then((m) => compatWrapper(/* @__PURE__ */ jsx(m.Router, {})))
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
const lighthouseApi = ApiBlueprint.make({
|
|
19
|
+
params: (defineParams) => defineParams({
|
|
20
|
+
api: lighthouseApiRef,
|
|
21
|
+
deps: {
|
|
22
|
+
configApi: configApiRef
|
|
23
|
+
},
|
|
24
|
+
factory: ({ configApi }) => LighthouseRestApi.fromConfig(configApi)
|
|
25
|
+
})
|
|
26
|
+
});
|
|
27
|
+
const lighthouseNavItem = NavItemBlueprint.make({
|
|
28
|
+
params: {
|
|
29
|
+
icon: Highlight,
|
|
30
|
+
routeRef: convertLegacyRouteRef(rootRouteRef),
|
|
31
|
+
title: "Lighthouse"
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
const lighthouseEntityCard = EntityCardBlueprint.make({
|
|
35
|
+
name: "lighthouse",
|
|
36
|
+
params: {
|
|
37
|
+
filter: isLighthouseAvailable,
|
|
38
|
+
loader: async () => import('../components/Cards/LastLighthouseAuditCard.esm.js').then(
|
|
39
|
+
(m) => compatWrapper(/* @__PURE__ */ jsx(m.LastLighthouseAuditCard, {}))
|
|
40
|
+
)
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
const lighthouseEntityContent = EntityContentBlueprint.make({
|
|
44
|
+
name: "lighthouse",
|
|
45
|
+
params: {
|
|
46
|
+
path: "/lighthouse",
|
|
47
|
+
title: "Lighthouse",
|
|
48
|
+
filter: isLighthouseAvailable,
|
|
49
|
+
loader: async () => import('../Router.esm.js').then((m) => compatWrapper(/* @__PURE__ */ jsx(m.EmbeddedRouter, {})))
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export { lighthouseApi, lighthouseEntityCard, lighthouseEntityContent, lighthouseNavItem, lighthousePage };
|
|
54
|
+
//# sourceMappingURL=extensions.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extensions.esm.js","sources":["../../src/alpha/extensions.tsx"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n ApiBlueprint,\n configApiRef,\n NavItemBlueprint,\n PageBlueprint,\n} from '@backstage/frontend-plugin-api';\nimport {\n compatWrapper,\n convertLegacyRouteRef,\n} from '@backstage/core-compat-api';\nimport { rootRouteRef } from '../plugin';\nimport { lighthouseApiRef } from '../api';\nimport { LighthouseRestApi } from '@backstage-community/plugin-lighthouse-common';\nimport {\n EntityCardBlueprint,\n EntityContentBlueprint,\n} from '@backstage/plugin-catalog-react/alpha';\nimport { isLighthouseAvailable } from '../Router';\nimport Highlight from '@material-ui/icons/Highlight';\n\nexport const lighthousePage = PageBlueprint.make({\n params: {\n path: '/lighthouse',\n routeRef: convertLegacyRouteRef(rootRouteRef),\n loader: async () =>\n import('../Router').then(m => compatWrapper(<m.Router />)),\n },\n});\n\nexport const lighthouseApi = ApiBlueprint.make({\n params: defineParams =>\n defineParams({\n api: lighthouseApiRef,\n deps: {\n configApi: configApiRef,\n },\n factory: ({ configApi }) => LighthouseRestApi.fromConfig(configApi),\n }),\n});\n\nexport const lighthouseNavItem = NavItemBlueprint.make({\n params: {\n icon: Highlight,\n routeRef: convertLegacyRouteRef(rootRouteRef),\n title: 'Lighthouse',\n },\n});\n\nexport const lighthouseEntityCard = EntityCardBlueprint.make({\n name: 'lighthouse',\n params: {\n filter: isLighthouseAvailable,\n loader: async () =>\n import('../components/Cards/LastLighthouseAuditCard').then(m =>\n compatWrapper(<m.LastLighthouseAuditCard />),\n ),\n },\n});\n\nexport const lighthouseEntityContent = EntityContentBlueprint.make({\n name: 'lighthouse',\n params: {\n path: '/lighthouse',\n title: 'Lighthouse',\n filter: isLighthouseAvailable,\n loader: async () =>\n import('../Router').then(m => compatWrapper(<m.EmbeddedRouter />)),\n },\n});\n"],"names":[],"mappings":";;;;;;;;;;AAmCa,MAAA,cAAA,GAAiB,cAAc,IAAK,CAAA;AAAA,EAC/C,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,aAAA;AAAA,IACN,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,IAC5C,MAAQ,EAAA,YACN,OAAO,kBAAW,CAAE,CAAA,IAAA,CAAK,CAAK,CAAA,KAAA,aAAA,iBAAe,GAAA,CAAA,CAAA,CAAE,MAAF,EAAA,EAAS,CAAE,CAAC;AAAA;AAE/D,CAAC;AAEY,MAAA,aAAA,GAAgB,aAAa,IAAK,CAAA;AAAA,EAC7C,MAAA,EAAQ,kBACN,YAAa,CAAA;AAAA,IACX,GAAK,EAAA,gBAAA;AAAA,IACL,IAAM,EAAA;AAAA,MACJ,SAAW,EAAA;AAAA,KACb;AAAA,IACA,SAAS,CAAC,EAAE,WAAgB,KAAA,iBAAA,CAAkB,WAAW,SAAS;AAAA,GACnE;AACL,CAAC;AAEY,MAAA,iBAAA,GAAoB,iBAAiB,IAAK,CAAA;AAAA,EACrD,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,SAAA;AAAA,IACN,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,IAC5C,KAAO,EAAA;AAAA;AAEX,CAAC;AAEY,MAAA,oBAAA,GAAuB,oBAAoB,IAAK,CAAA;AAAA,EAC3D,IAAM,EAAA,YAAA;AAAA,EACN,MAAQ,EAAA;AAAA,IACN,MAAQ,EAAA,qBAAA;AAAA,IACR,MAAQ,EAAA,YACN,OAAO,oDAA6C,CAAE,CAAA,IAAA;AAAA,MAAK,OACzD,aAAc,iBAAA,GAAA,CAAC,CAAE,CAAA,uBAAA,EAAF,EAA0B,CAAE;AAAA;AAC7C;AAEN,CAAC;AAEY,MAAA,uBAAA,GAA0B,uBAAuB,IAAK,CAAA;AAAA,EACjE,IAAM,EAAA,YAAA;AAAA,EACN,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,aAAA;AAAA,IACN,KAAO,EAAA,YAAA;AAAA,IACP,MAAQ,EAAA,qBAAA;AAAA,IACR,MAAQ,EAAA,YACN,OAAO,kBAAW,CAAE,CAAA,IAAA,CAAK,CAAK,CAAA,KAAA,aAAA,iBAAe,GAAA,CAAA,CAAA,CAAE,cAAF,EAAA,EAAiB,CAAE,CAAC;AAAA;AAEvE,CAAC;;;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { createFrontendPlugin } from '@backstage/frontend-plugin-api';
|
|
2
|
+
import { lighthousePage, lighthouseApi, lighthouseEntityCard, lighthouseNavItem, lighthouseEntityContent } from './extensions.esm.js';
|
|
3
|
+
|
|
4
|
+
const lighthousePlugin = createFrontendPlugin({
|
|
5
|
+
pluginId: "lighthouse",
|
|
6
|
+
extensions: [
|
|
7
|
+
lighthousePage,
|
|
8
|
+
lighthouseApi,
|
|
9
|
+
lighthouseEntityCard,
|
|
10
|
+
lighthouseNavItem,
|
|
11
|
+
lighthouseEntityContent
|
|
12
|
+
]
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
export { lighthousePlugin };
|
|
16
|
+
//# sourceMappingURL=plugin.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.esm.js","sources":["../../src/alpha/plugin.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createFrontendPlugin } from '@backstage/frontend-plugin-api';\nimport {\n lighthouseApi,\n lighthouseEntityCard,\n lighthouseEntityContent,\n lighthouseNavItem,\n lighthousePage,\n} from './extensions';\n\n/**\n * @alpha\n */\nexport const lighthousePlugin = createFrontendPlugin({\n pluginId: 'lighthouse',\n extensions: [\n lighthousePage,\n lighthouseApi,\n lighthouseEntityCard,\n lighthouseNavItem,\n lighthouseEntityContent,\n ],\n});\n"],"names":[],"mappings":";;;AA2BO,MAAM,mBAAmB,oBAAqB,CAAA;AAAA,EACnD,QAAU,EAAA,YAAA;AAAA,EACV,UAAY,EAAA;AAAA,IACV,cAAA;AAAA,IACA,aAAA;AAAA,IACA,oBAAA;AAAA,IACA,iBAAA;AAAA,IACA;AAAA;AAEJ,CAAC;;;;"}
|
package/dist/alpha.d.ts
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as _backstage_catalog_model from '@backstage/catalog-model';
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import * as _backstage_plugin_catalog_react_alpha from '@backstage/plugin-catalog-react/alpha';
|
|
5
|
+
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
6
|
+
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @alpha
|
|
10
|
+
*/
|
|
11
|
+
declare const lighthousePlugin: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{}, {}, {
|
|
12
|
+
"api:lighthouse": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
13
|
+
kind: "api";
|
|
14
|
+
name: undefined;
|
|
15
|
+
config: {};
|
|
16
|
+
configInput: {};
|
|
17
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_core_plugin_api.AnyApiFactory, "core.api.factory", {}>;
|
|
18
|
+
inputs: {};
|
|
19
|
+
params: <TApi, TImpl extends TApi, TDeps extends {
|
|
20
|
+
[x: string]: unknown;
|
|
21
|
+
}>(params: _backstage_core_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_core_plugin_api.AnyApiFactory>;
|
|
22
|
+
}>;
|
|
23
|
+
"entity-card:lighthouse/lighthouse": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
24
|
+
kind: "entity-card";
|
|
25
|
+
name: "lighthouse";
|
|
26
|
+
config: {
|
|
27
|
+
filter: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
|
|
28
|
+
type: "content" | "summary" | "info" | undefined;
|
|
29
|
+
};
|
|
30
|
+
configInput: {
|
|
31
|
+
filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
|
|
32
|
+
type?: "content" | "summary" | "info" | undefined;
|
|
33
|
+
};
|
|
34
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
|
|
35
|
+
optional: true;
|
|
36
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
37
|
+
optional: true;
|
|
38
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_plugin_catalog_react_alpha.EntityCardType, "catalog.entity-card-type", {
|
|
39
|
+
optional: true;
|
|
40
|
+
}>;
|
|
41
|
+
inputs: {};
|
|
42
|
+
params: {
|
|
43
|
+
loader: () => Promise<JSX.Element>;
|
|
44
|
+
filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model.Entity) => boolean) | undefined;
|
|
45
|
+
type?: _backstage_plugin_catalog_react_alpha.EntityCardType | undefined;
|
|
46
|
+
};
|
|
47
|
+
}>;
|
|
48
|
+
"entity-content:lighthouse/lighthouse": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
49
|
+
kind: "entity-content";
|
|
50
|
+
name: "lighthouse";
|
|
51
|
+
config: {
|
|
52
|
+
path: string | undefined;
|
|
53
|
+
title: string | undefined;
|
|
54
|
+
filter: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
|
|
55
|
+
group: string | false | undefined;
|
|
56
|
+
};
|
|
57
|
+
configInput: {
|
|
58
|
+
filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
|
|
59
|
+
title?: string | undefined;
|
|
60
|
+
path?: string | undefined;
|
|
61
|
+
group?: string | false | undefined;
|
|
62
|
+
};
|
|
63
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
|
|
64
|
+
optional: true;
|
|
65
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
|
|
66
|
+
optional: true;
|
|
67
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
68
|
+
optional: true;
|
|
69
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-content-title", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-content-group", {
|
|
70
|
+
optional: true;
|
|
71
|
+
}>;
|
|
72
|
+
inputs: {};
|
|
73
|
+
params: {
|
|
74
|
+
defaultPath?: [Error: "Use the 'path' param instead"] | undefined;
|
|
75
|
+
path: string;
|
|
76
|
+
defaultTitle?: [Error: "Use the 'title' param instead"] | undefined;
|
|
77
|
+
title: string;
|
|
78
|
+
defaultGroup?: [Error: "Use the 'group' param instead"] | undefined;
|
|
79
|
+
group?: (string & {}) | "development" | "deployment" | "overview" | "documentation" | "operation" | "observability" | undefined;
|
|
80
|
+
loader: () => Promise<JSX.Element>;
|
|
81
|
+
routeRef?: _backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams> | undefined;
|
|
82
|
+
filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model.Entity) => boolean) | undefined;
|
|
83
|
+
};
|
|
84
|
+
}>;
|
|
85
|
+
"nav-item:lighthouse": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
86
|
+
kind: "nav-item";
|
|
87
|
+
name: undefined;
|
|
88
|
+
config: {};
|
|
89
|
+
configInput: {};
|
|
90
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<{
|
|
91
|
+
title: string;
|
|
92
|
+
icon: _backstage_core_plugin_api.IconComponent;
|
|
93
|
+
routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
94
|
+
}, "core.nav-item.target", {}>;
|
|
95
|
+
inputs: {};
|
|
96
|
+
params: {
|
|
97
|
+
title: string;
|
|
98
|
+
icon: _backstage_core_plugin_api.IconComponent;
|
|
99
|
+
routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
100
|
+
};
|
|
101
|
+
}>;
|
|
102
|
+
"page:lighthouse": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
103
|
+
kind: "page";
|
|
104
|
+
name: undefined;
|
|
105
|
+
config: {
|
|
106
|
+
path: string | undefined;
|
|
107
|
+
};
|
|
108
|
+
configInput: {
|
|
109
|
+
path?: string | undefined;
|
|
110
|
+
};
|
|
111
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
|
|
112
|
+
optional: true;
|
|
113
|
+
}>;
|
|
114
|
+
inputs: {};
|
|
115
|
+
params: {
|
|
116
|
+
defaultPath?: [Error: "Use the 'path' param instead"] | undefined;
|
|
117
|
+
path: string;
|
|
118
|
+
loader: () => Promise<JSX.Element>;
|
|
119
|
+
routeRef?: _backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams> | undefined;
|
|
120
|
+
};
|
|
121
|
+
}>;
|
|
122
|
+
}>;
|
|
123
|
+
|
|
124
|
+
export { lighthousePlugin as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alpha.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage-community/plugin-lighthouse",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "A Backstage plugin that integrates towards Lighthouse",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "frontend-plugin",
|
|
@@ -9,12 +9,13 @@
|
|
|
9
9
|
"@backstage-community/plugin-lighthouse",
|
|
10
10
|
"@backstage-community/plugin-lighthouse-backend",
|
|
11
11
|
"@backstage-community/plugin-lighthouse-common"
|
|
12
|
-
]
|
|
12
|
+
],
|
|
13
|
+
"features": {
|
|
14
|
+
"./alpha": "@backstage/FrontendPlugin"
|
|
15
|
+
}
|
|
13
16
|
},
|
|
14
17
|
"publishConfig": {
|
|
15
|
-
"access": "public"
|
|
16
|
-
"main": "dist/index.esm.js",
|
|
17
|
-
"types": "dist/index.d.ts"
|
|
18
|
+
"access": "public"
|
|
18
19
|
},
|
|
19
20
|
"keywords": [
|
|
20
21
|
"backstage",
|
|
@@ -28,8 +29,32 @@
|
|
|
28
29
|
},
|
|
29
30
|
"license": "Apache-2.0",
|
|
30
31
|
"sideEffects": false,
|
|
31
|
-
"
|
|
32
|
-
|
|
32
|
+
"exports": {
|
|
33
|
+
".": {
|
|
34
|
+
"import": "./dist/index.esm.js",
|
|
35
|
+
"types": "./dist/index.d.ts",
|
|
36
|
+
"default": "./dist/index.esm.js"
|
|
37
|
+
},
|
|
38
|
+
"./alpha": {
|
|
39
|
+
"backstage": "@backstage/FrontendPlugin",
|
|
40
|
+
"import": "./dist/alpha.esm.js",
|
|
41
|
+
"types": "./dist/alpha.d.ts",
|
|
42
|
+
"default": "./dist/alpha.esm.js"
|
|
43
|
+
},
|
|
44
|
+
"./package.json": "./package.json"
|
|
45
|
+
},
|
|
46
|
+
"main": "./dist/index.esm.js",
|
|
47
|
+
"types": "./dist/index.d.ts",
|
|
48
|
+
"typesVersions": {
|
|
49
|
+
"*": {
|
|
50
|
+
"alpha": [
|
|
51
|
+
"dist/alpha.d.ts"
|
|
52
|
+
],
|
|
53
|
+
"package.json": [
|
|
54
|
+
"package.json"
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
33
58
|
"files": [
|
|
34
59
|
"dist"
|
|
35
60
|
],
|
|
@@ -43,11 +68,13 @@
|
|
|
43
68
|
"test": "backstage-cli package test"
|
|
44
69
|
},
|
|
45
70
|
"dependencies": {
|
|
46
|
-
"@backstage-community/plugin-lighthouse-common": "^0.
|
|
71
|
+
"@backstage-community/plugin-lighthouse-common": "^0.10.1",
|
|
47
72
|
"@backstage/catalog-model": "^1.7.5",
|
|
48
|
-
"@backstage/core-
|
|
73
|
+
"@backstage/core-compat-api": "^0.5.1",
|
|
74
|
+
"@backstage/core-components": "^0.17.5",
|
|
49
75
|
"@backstage/core-plugin-api": "^1.10.9",
|
|
50
|
-
"@backstage/plugin-
|
|
76
|
+
"@backstage/frontend-plugin-api": "^0.11.0",
|
|
77
|
+
"@backstage/plugin-catalog-react": "^1.20.1",
|
|
51
78
|
"@material-ui/core": "^4.12.2",
|
|
52
79
|
"@material-ui/icons": "^4.9.1",
|
|
53
80
|
"@material-ui/lab": "4.0.0-alpha.61",
|
|
@@ -55,10 +82,12 @@
|
|
|
55
82
|
"react-use": "^17.2.4"
|
|
56
83
|
},
|
|
57
84
|
"devDependencies": {
|
|
58
|
-
"@backstage/cli": "^0.
|
|
85
|
+
"@backstage/cli": "^0.34.1",
|
|
59
86
|
"@backstage/core-app-api": "^1.18.0",
|
|
60
|
-
"@backstage/dev-utils": "^1.1.
|
|
61
|
-
"@backstage/
|
|
87
|
+
"@backstage/dev-utils": "^1.1.13",
|
|
88
|
+
"@backstage/frontend-defaults": "^0.3.0",
|
|
89
|
+
"@backstage/plugin-catalog": "^1.31.2",
|
|
90
|
+
"@backstage/test-utils": "^1.7.11",
|
|
62
91
|
"@testing-library/dom": "^10.0.0",
|
|
63
92
|
"@testing-library/jest-dom": "^6.0.0",
|
|
64
93
|
"@testing-library/react": "^15.0.0",
|
|
@@ -89,12 +118,5 @@
|
|
|
89
118
|
}
|
|
90
119
|
}
|
|
91
120
|
},
|
|
92
|
-
"typesVersions": {
|
|
93
|
-
"*": {
|
|
94
|
-
"package.json": [
|
|
95
|
-
"package.json"
|
|
96
|
-
]
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
121
|
"module": "./dist/index.esm.js"
|
|
100
122
|
}
|