Updated to use default import

Signed-off-by: Andre Wanlin <awanlin@spotify.com>
This commit is contained in:
Andre Wanlin
2024-02-15 18:50:07 -06:00
parent 0dc66a6912
commit b64ce5a485
9 changed files with 34 additions and 19 deletions
+12
View File
@@ -0,0 +1,12 @@
---
'@backstage/plugin-entity-feedback-backend': patch
'@backstage/plugin-azure-devops-backend': patch
'@backstage/plugin-lighthouse-backend': patch
'@backstage/plugin-devtools-backend': patch
'@backstage/plugin-linguist-backend': patch
'@backstage/plugin-badges-backend': patch
'@backstage/plugin-adr-backend': patch
'@backstage/plugin-airbrake': patch
---
Updated New Backend System instructions to use default import
+1 -3
View File
@@ -65,11 +65,9 @@ The ADR backend plugin has support for the [new backend system](https://backstag
In your `packages/backend/src/index.ts` make the following changes:
```diff
+ import { adrPlugin } from '@backstage/plugin-adr-backend';
const backend = createBackend();
+ backend.add(adrPlugin());
+ backend.add(import('@backstage/plugin-adr-backend'));
// ... other feature additions
+5 -2
View File
@@ -124,10 +124,13 @@ In your `packages/backend/src/index.ts` make the following changes:
```diff
import { createBackend } from '@backstage/backend-defaults';
+ import { airbrakePlugin } from '@backstage/plugin-airbrake-backend';
const backend = createBackend();
// ... other feature additions
+ backend.add(airbrakePlugin());
+ backend.add(import('@backstage/plugin-airbrake-backend'));
backend.start();
```
+1 -2
View File
@@ -84,13 +84,12 @@ In your `packages/backend/src/index.ts` make the following changes:
```diff
import { createBackend } from '@backstage/backend-defaults';
+ import { azureDevOpsPlugin } from '@backstage/plugin-azure-devops-backend';
const backend = createBackend();
// ... other feature additions
+ backend.add(azureDevOpsPlugin());
+ backend.add(import('@backstage/plugin-azure-devops-backend'));
backend.start();
```
+2 -2
View File
@@ -84,12 +84,12 @@ In your `packages/backend/src/index.ts` make the following changes:
```diff
import { createBackend } from '@backstage/backend-defaults';
+ import { badgesPlugin } from '@backstage/plugin-badges-backend';
const backend = createBackend();
// ... other feature additions
+ backend.add(badgesPlugin());
+ backend.add(import('@backstage/plugin-badges-backend'));
backend.start();
```
+1 -2
View File
@@ -57,13 +57,12 @@ In your `packages/backend/src/index.ts` make the following changes:
```diff
import { createBackend } from '@backstage/backend-defaults';
+ import { devtoolsPlugin } from '@backstage/plugin-devtools-backend';
const backend = createBackend();
// ... other feature additions
+ backend.add(devtoolsPlugin());
+ backend.add(import('@backstage/plugin-devtools-backend'));
backend.start();
```
+6 -4
View File
@@ -59,11 +59,13 @@ The Entity Feedback backend plugin has support for the [new backend system](http
In your `packages/backend/src/index.ts` make the following changes:
```diff
+ import { entityFeedbackPlugin } from '@backstage/plugin-entity-feedback-backend';
import { createBackend } from '@backstage/backend-defaults';
const backend = createBackend();
+ backend.add(entityFeedbackPlugin());
// ... other feature additions
const backend = createBackend();
// ... other feature additions
+ backend.add(import(@backstage/plugin-entity-feedback-backend));
backend.start();
```
+5 -2
View File
@@ -72,10 +72,13 @@ In your `packages/backend/src/index.ts` make the following changes:
```diff
import { createBackend } from '@backstage/backend-defaults';
+ import { lighthousePlugin } from '@backstage/plugin-lighthouse-backend';
const backend = createBackend();
// ... other feature additions
+ backend.add(lighthousePlugin());
+ backend.add(import('@backstage/plugin-lighthouse-backend'));
backend.start();
```
+1 -2
View File
@@ -64,13 +64,12 @@ In your `packages/backend/src/index.ts` make the following changes:
```diff
import { createBackend } from '@backstage/backend-defaults';
+ import { linguistPlugin } from '@backstage/plugin-linguist-backend';
const backend = createBackend();
// ... other feature additions
+ backend.add(linguistPlugin());
+ backend.add(import('@backstage/plugin-linguist-backend'));
backend.start();
```