Updated to use default import
Signed-off-by: Andre Wanlin <awanlin@spotify.com>
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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();
|
||||
```
|
||||
|
||||
|
||||
@@ -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();
|
||||
```
|
||||
|
||||
@@ -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();
|
||||
```
|
||||
|
||||
@@ -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();
|
||||
```
|
||||
|
||||
@@ -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();
|
||||
```
|
||||
|
||||
@@ -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();
|
||||
```
|
||||
|
||||
|
||||
@@ -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();
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user