@backstage/plugin-devtools-backend 0.4.0-next.1 → 0.4.0-next.2
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 +18 -0
- package/README.md +24 -19
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @backstage/plugin-devtools-backend
|
|
2
2
|
|
|
3
|
+
## 0.4.0-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5d1670f: Update README installation instructions
|
|
8
|
+
- c2b63ab: Updated dependency `supertest` to `^7.0.0`.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
- @backstage/backend-common@0.25.0-next.2
|
|
11
|
+
- @backstage/backend-plugin-api@1.0.0-next.2
|
|
12
|
+
- @backstage/config-loader@1.9.1-next.0
|
|
13
|
+
- @backstage/plugin-permission-node@0.8.3-next.2
|
|
14
|
+
- @backstage/cli-common@0.1.14
|
|
15
|
+
- @backstage/config@1.2.0
|
|
16
|
+
- @backstage/errors@1.2.4
|
|
17
|
+
- @backstage/types@1.1.1
|
|
18
|
+
- @backstage/plugin-devtools-common@0.1.12
|
|
19
|
+
- @backstage/plugin-permission-common@0.8.1
|
|
20
|
+
|
|
3
21
|
## 0.4.0-next.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -4,7 +4,30 @@ Welcome to the DevTools backend plugin! This plugin provides data for the [DevTo
|
|
|
4
4
|
|
|
5
5
|
## Setup
|
|
6
6
|
|
|
7
|
-
Here's how to get the DevTools Backend up and running:
|
|
7
|
+
Here's how to get the DevTools Backend up and running in the new backend system:
|
|
8
|
+
|
|
9
|
+
1. First we need to add the `@backstage/plugin-devtools-backend` package to your backend:
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
# From the Backstage root directory
|
|
13
|
+
yarn --cwd packages/backend add @backstage/plugin-devtools-backend
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
2. Then add the plugin to your backend index file:
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
// In packages/backend/src/index.ts
|
|
20
|
+
const backend = createBackend();
|
|
21
|
+
// ... other feature additions
|
|
22
|
+
backend.add(import('@backstage/plugin-devtools-backend'));
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
3. Now run `yarn start-backend` from the repo root
|
|
26
|
+
4. Finally open `http://localhost:7007/api/devtools/health` in a browser and it should return `{"status":"ok"}`
|
|
27
|
+
|
|
28
|
+
## Old Backend System
|
|
29
|
+
|
|
30
|
+
If you are still on the old backend system, please consider migrating to the new backend system. But to install this plugin in an old backend, see below.
|
|
8
31
|
|
|
9
32
|
1. First we need to add the `@backstage/plugin-devtools-backend` package to your backend:
|
|
10
33
|
|
|
@@ -50,24 +73,6 @@ Here's how to get the DevTools Backend up and running:
|
|
|
50
73
|
4. Now run `yarn start-backend` from the repo root
|
|
51
74
|
5. Finally open `http://localhost:7007/api/devtools/health` in a browser and it should return `{"status":"ok"}`
|
|
52
75
|
|
|
53
|
-
### New Backend System
|
|
54
|
-
|
|
55
|
-
The DevTools backend plugin has support for the [new backend system](https://backstage.io/docs/backend-system/), here's how you can set that up:
|
|
56
|
-
|
|
57
|
-
In your `packages/backend/src/index.ts` make the following changes:
|
|
58
|
-
|
|
59
|
-
```diff
|
|
60
|
-
import { createBackend } from '@backstage/backend-defaults';
|
|
61
|
-
|
|
62
|
-
const backend = createBackend();
|
|
63
|
-
|
|
64
|
-
// ... other feature additions
|
|
65
|
-
|
|
66
|
-
+ backend.add(import('@backstage/plugin-devtools-backend'));
|
|
67
|
-
|
|
68
|
-
backend.start();
|
|
69
|
-
```
|
|
70
|
-
|
|
71
76
|
## Links
|
|
72
77
|
|
|
73
78
|
- [Frontend part of the plugin](https://github.com/backstage/backstage/tree/master/plugins/devtools)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-devtools-backend",
|
|
3
|
-
"version": "0.4.0-next.
|
|
3
|
+
"version": "0.4.0-next.2",
|
|
4
4
|
"backstage": {
|
|
5
5
|
"role": "backend-plugin",
|
|
6
6
|
"pluginId": "devtools",
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
"test": "backstage-cli package test"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@backstage/backend-common": "^0.25.0-next.
|
|
42
|
-
"@backstage/backend-plugin-api": "^0.
|
|
41
|
+
"@backstage/backend-common": "^0.25.0-next.2",
|
|
42
|
+
"@backstage/backend-plugin-api": "^1.0.0-next.2",
|
|
43
43
|
"@backstage/cli-common": "^0.1.14",
|
|
44
44
|
"@backstage/config": "^1.2.0",
|
|
45
|
-
"@backstage/config-loader": "^1.9.0",
|
|
45
|
+
"@backstage/config-loader": "^1.9.1-next.0",
|
|
46
46
|
"@backstage/errors": "^1.2.4",
|
|
47
47
|
"@backstage/plugin-devtools-common": "^0.1.12",
|
|
48
48
|
"@backstage/plugin-permission-common": "^0.8.1",
|
|
49
|
-
"@backstage/plugin-permission-node": "^0.8.3-next.
|
|
49
|
+
"@backstage/plugin-permission-node": "^0.8.3-next.2",
|
|
50
50
|
"@backstage/types": "^1.1.1",
|
|
51
51
|
"@manypkg/get-packages": "^1.1.3",
|
|
52
52
|
"@types/express": "*",
|
|
@@ -62,13 +62,13 @@
|
|
|
62
62
|
"yn": "^4.0.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@backstage/backend-defaults": "^0.5.0-next.
|
|
66
|
-
"@backstage/backend-test-utils": "^0.
|
|
67
|
-
"@backstage/cli": "^0.27.1-next.
|
|
65
|
+
"@backstage/backend-defaults": "^0.5.0-next.2",
|
|
66
|
+
"@backstage/backend-test-utils": "^1.0.0-next.2",
|
|
67
|
+
"@backstage/cli": "^0.27.1-next.2",
|
|
68
68
|
"@types/ping": "^0.4.1",
|
|
69
69
|
"@types/supertest": "^2.0.8",
|
|
70
70
|
"@types/yarnpkg__lockfile": "^1.1.4",
|
|
71
|
-
"supertest": "^
|
|
71
|
+
"supertest": "^7.0.0"
|
|
72
72
|
},
|
|
73
73
|
"configSchema": "config.d.ts"
|
|
74
74
|
}
|