Skip to content

Commit ebf64b9

Browse files
authored
chore(orchestrator): add export-dynamic to scaffolder orchestrator (#389)
* chore(orchestrator): add export-dynamic to scaffolder orchestrator Signed-off-by: Marek Libra <[email protected]> * chore(orchestrator): export scaffolder module as a dynamic plugin add @Red-Hat-Developer-Hub org to the scaffolder module name update @janus-idp/cli to 3.2.0 from 1.19.1 embed dependencies to pass d/s dynamic plugin build and additional related fixes. Signed-off-by: Marek Libra <[email protected]> * yarn fix --publish --------- Signed-off-by: Marek Libra <[email protected]>
1 parent 8cc5161 commit ebf64b9

File tree

9 files changed

+88
-59
lines changed

9 files changed

+88
-59
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@red-hat-developer-hub/backstage-plugin-scaffolder-backend-module-orchestrator': minor
3+
---
4+
5+
Added yarn export-dynamic target

workspaces/orchestrator/packages/backend/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
"@backstage/plugin-signals-backend": "^0.2.3",
5151
"@backstage/plugin-techdocs-backend": "^1.11.1",
5252
"@red-hat-developer-hub/backstage-plugin-orchestrator-backend": "workspace:^",
53+
"@red-hat-developer-hub/backstage-plugin-scaffolder-backend-module-orchestrator": "workspace:^",
5354
"app": "link:../app",
54-
"backstage-plugin-scaffolder-backend-module-orchestrator": "^0.1.0",
5555
"better-sqlite3": "^9.0.0",
5656
"node-gyp": "^10.0.0",
5757
"pg": "^8.11.3",

workspaces/orchestrator/packages/backend/src/index.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ backend.add(
5959
);
6060
backend.add(import('@backstage/plugin-notifications-backend'));
6161
backend.add(import('@backstage/plugin-signals-backend'));
62-
backend.add(import('backstage-plugin-scaffolder-backend-module-orchestrator'));
62+
backend.add(
63+
import(
64+
'@red-hat-developer-hub/backstage-plugin-scaffolder-backend-module-orchestrator'
65+
),
66+
);
6367

6468
// for integrating templates with github
6569
backend.add(import('@backstage/plugin-scaffolder-backend-module-github'));

workspaces/orchestrator/plugins/orchestrator-backend/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"@backstage/backend-test-utils": "1.0.2",
9595
"@backstage/cli": "0.28.2",
9696
"@janus-idp/backstage-plugin-audit-log-node": "^1.7.1",
97-
"@janus-idp/cli": "1.19.1",
97+
"@janus-idp/cli": "3.2.0",
9898
"@types/express": "4.17.21",
9999
"@types/fs-extra": "11.0.4",
100100
"@types/json-schema": "7.0.15",

workspaces/orchestrator/plugins/orchestrator/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"@backstage/dev-utils": "1.1.2",
8787
"@backstage/test-utils": "1.7.0",
8888
"@backstage/types": "1.1.1",
89-
"@janus-idp/cli": "1.19.1",
89+
"@janus-idp/cli": "3.2.0",
9090
"@material-ui/core": "^4.12.4",
9191
"@material-ui/icons": "^4.11.3",
9292
"@material-ui/lab": "^4.0.0-alpha.45",

workspaces/orchestrator/plugins/scaffolder-backend-module-orchestrator/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ An example of using these actions can be found in the `workspaces/orchestrator/e
1111
In `packages/backend/src/index.ts`:
1212

1313
```
14-
backend.add(import('backstage-plugin-scaffolder-backend-module-orchestrator'));
14+
backend.add(import('@red-hat-developer-hub/backstage-plugin-scaffolder-backend-module-orchestrator'));
1515
```
1616

1717
# The software template generating templates from workflows - convertWorkflowToTemplate
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
{
2-
"name": "backstage-plugin-scaffolder-backend-module-orchestrator",
2+
"name": "@red-hat-developer-hub/backstage-plugin-scaffolder-backend-module-orchestrator",
33
"description": "The orchestrator module for @backstage/plugin-scaffolder-backend",
44
"version": "0.1.0",
55
"main": "src/index.ts",
66
"types": "src/index.ts",
77
"license": "Apache-2.0",
8-
"private": true,
98
"publishConfig": {
10-
"access": "public",
11-
"main": "dist/index.cjs.js",
12-
"types": "dist/index.d.ts"
9+
"access": "public"
1310
},
1411
"repository": {
1512
"type": "git",
@@ -19,8 +16,33 @@
1916
"backstage": {
2017
"role": "backend-plugin-module",
2118
"pluginId": "scaffolder",
19+
"supported-versions": "1.32.5",
20+
"pluginPackages": [
21+
"@red-hat-developer-hub/backstage-plugin-orchestrator-common",
22+
"@red-hat-developer-hub/backstage-plugin-scaffolder-backend-module-orchestrator"
23+
],
2224
"pluginPackage": "@backstage/plugin-scaffolder-backend"
2325
},
26+
"bugs": "https://github.com/redhat-developer/rhdh-plugins/issues",
27+
"keywords": [
28+
"support:tech-preview",
29+
"lifecycle:active",
30+
"backstage",
31+
"plugin",
32+
"orchestrator",
33+
"workflows"
34+
],
35+
"exports": {
36+
".": "./src/index.ts",
37+
"./package.json": "./package.json"
38+
},
39+
"typesVersions": {
40+
"*": {
41+
"package.json": [
42+
"package.json"
43+
]
44+
}
45+
},
2446
"scripts": {
2547
"start": "backstage-cli package start",
2648
"build": "backstage-cli package build",
@@ -32,23 +54,34 @@
3254
"prettier:check": "prettier --ignore-unknown --check .",
3355
"prettier:fix": "prettier --ignore-unknown --write .",
3456
"lint:check": "backstage-cli package lint",
35-
"lint:fix": "backstage-cli package lint --fix"
57+
"lint:fix": "backstage-cli package lint --fix",
58+
"export-dynamic": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies --embed-package '@red-hat-developer-hub/backstage-plugin-orchestrator-common'"
3659
},
3760
"dependencies": {
3861
"@backstage/backend-plugin-api": "^1.0.2",
3962
"@backstage/catalog-model": "^1.7.0",
4063
"@backstage/plugin-scaffolder-node": "^0.6.0",
4164
"@backstage/types": "^1.2.1",
4265
"@red-hat-developer-hub/backstage-plugin-orchestrator-common": "workspace:^",
43-
"axios": "^1.7.7",
66+
"axios": "^1.7.9",
4467
"js-yaml": "^4.1.0"
4568
},
4669
"devDependencies": {
4770
"@backstage/cli": "^0.29.0",
4871
"@backstage/plugin-scaffolder-node-test-utils": "^0.1.15",
72+
"@janus-idp/cli": "3.2.0",
4973
"@spotify/prettier-config": "^15.0.0"
5074
},
5175
"files": [
52-
"dist"
76+
"app-config.yaml",
77+
"dist",
78+
"dist-dynamic/*.*",
79+
"dist-dynamic/dist/**",
80+
"static"
81+
],
82+
"maintainers": [
83+
"@mlibra",
84+
"@batzionb",
85+
"@gciavarrini"
5386
]
5487
}

workspaces/orchestrator/plugins/scaffolder-backend-module-orchestrator/report.api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## API Report File for "backstage-plugin-scaffolder-backend-module-orchestrator"
1+
## API Report File for "@red-hat-developer-hub/backstage-plugin-scaffolder-backend-module-orchestrator"
22

33
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
44

workspaces/orchestrator/yarn.lock

+32-45
Original file line numberDiff line numberDiff line change
@@ -8367,17 +8367,17 @@ __metadata:
83678367
languageName: node
83688368
linkType: hard
83698369

8370-
"@janus-idp/cli@npm:1.19.1":
8371-
version: 1.19.1
8372-
resolution: "@janus-idp/cli@npm:1.19.1"
8370+
"@janus-idp/cli@npm:3.2.0":
8371+
version: 3.2.0
8372+
resolution: "@janus-idp/cli@npm:3.2.0"
83738373
dependencies:
8374-
"@backstage/cli-common": ^0.1.14
8375-
"@backstage/cli-node": ^0.2.9
8376-
"@backstage/config": ^1.2.0
8377-
"@backstage/config-loader": ^1.9.1
8378-
"@backstage/errors": ^1.2.4
8374+
"@backstage/cli-common": ^0.1.15
8375+
"@backstage/cli-node": ^0.2.12
8376+
"@backstage/config": ^1.3.2
8377+
"@backstage/config-loader": ^1.9.5
8378+
"@backstage/errors": ^1.2.7
83798379
"@backstage/eslint-plugin": ^0.1.10
8380-
"@backstage/types": ^1.1.1
8380+
"@backstage/types": ^1.2.1
83818381
"@manypkg/get-packages": ^1.1.3
83828382
"@openshift/dynamic-plugin-sdk-webpack": ^3.0.0
83838383
"@pmmmwh/react-refresh-webpack-plugin": ^0.5.7
@@ -8415,7 +8415,7 @@ __metadata:
84158415
react-dev-utils: ^12.0.0-next.60
84168416
react-refresh: ^0.14.0
84178417
recursive-readdir: ^2.2.2
8418-
rollup: ^2.78.0
8418+
rollup: ^4.0.0
84198419
rollup-plugin-dts: ^4.0.1
84208420
rollup-plugin-esbuild: ^4.7.2
84218421
rollup-plugin-postcss: ^4.0.0
@@ -8436,7 +8436,7 @@ __metadata:
84368436
optional: true
84378437
bin:
84388438
janus-cli: bin/janus-cli
8439-
checksum: f9418392f21e88d6eb24a4520b57e9446207bef696a7fbf212562fb3721f105141d9e975935db25bf27431513af9aad8ddfad2d29716a607cb0a4fcc844b73b4
8439+
checksum: ac5121095765b0b9224b96d2546c852a81d167004fdc48638c3cc36796b784b564d16d0d6e72f9b32c45889ac0976f634dfaf0ca2053ae5aeb64af0a3d3b7b00
84408440
languageName: node
84418441
linkType: hard
84428442

@@ -12254,7 +12254,7 @@ __metadata:
1225412254
"@backstage/plugin-scaffolder-backend": ^1.26.2
1225512255
"@backstage/plugin-scaffolder-node": ^0.5.0
1225612256
"@janus-idp/backstage-plugin-audit-log-node": ^1.7.1
12257-
"@janus-idp/cli": 1.19.1
12257+
"@janus-idp/cli": 3.2.0
1225812258
"@red-hat-developer-hub/backstage-plugin-orchestrator-common": "workspace:^"
1225912259
"@types/express": 4.17.21
1226012260
"@types/fs-extra": 11.0.4
@@ -12385,7 +12385,7 @@ __metadata:
1238512385
"@backstage/plugin-permission-react": 0.4.27
1238612386
"@backstage/test-utils": 1.7.0
1238712387
"@backstage/types": 1.1.1
12388-
"@janus-idp/cli": 1.19.1
12388+
"@janus-idp/cli": 3.2.0
1238912389
"@kie-tools-core/editor": ^0.32.0
1239012390
"@kie-tools-core/notifications": ^0.32.0
1239112391
"@kie-tools-core/react-hooks": ^0.32.0
@@ -12429,6 +12429,24 @@ __metadata:
1242912429
languageName: unknown
1243012430
linkType: soft
1243112431

12432+
"@red-hat-developer-hub/backstage-plugin-scaffolder-backend-module-orchestrator@workspace:^, @red-hat-developer-hub/backstage-plugin-scaffolder-backend-module-orchestrator@workspace:plugins/scaffolder-backend-module-orchestrator":
12433+
version: 0.0.0-use.local
12434+
resolution: "@red-hat-developer-hub/backstage-plugin-scaffolder-backend-module-orchestrator@workspace:plugins/scaffolder-backend-module-orchestrator"
12435+
dependencies:
12436+
"@backstage/backend-plugin-api": ^1.0.2
12437+
"@backstage/catalog-model": ^1.7.0
12438+
"@backstage/cli": ^0.29.0
12439+
"@backstage/plugin-scaffolder-node": ^0.6.0
12440+
"@backstage/plugin-scaffolder-node-test-utils": ^0.1.15
12441+
"@backstage/types": ^1.2.1
12442+
"@janus-idp/cli": 3.2.0
12443+
"@red-hat-developer-hub/backstage-plugin-orchestrator-common": "workspace:^"
12444+
"@spotify/prettier-config": ^15.0.0
12445+
axios: ^1.7.9
12446+
js-yaml: ^4.1.0
12447+
languageName: unknown
12448+
linkType: soft
12449+
1243212450
"@redhat-developer/red-hat-developer-hub-theme@npm:0.4.0, @redhat-developer/red-hat-developer-hub-theme@npm:^0.4.0":
1243312451
version: 0.4.0
1243412452
resolution: "@redhat-developer/red-hat-developer-hub-theme@npm:0.4.0"
@@ -18105,11 +18123,11 @@ __metadata:
1810518123
"@backstage/plugin-signals-backend": ^0.2.3
1810618124
"@backstage/plugin-techdocs-backend": ^1.11.1
1810718125
"@red-hat-developer-hub/backstage-plugin-orchestrator-backend": "workspace:^"
18126+
"@red-hat-developer-hub/backstage-plugin-scaffolder-backend-module-orchestrator": "workspace:^"
1810818127
"@types/express": ^4.17.6
1810918128
"@types/express-serve-static-core": ^4.17.5
1811018129
"@types/luxon": ^2.0.4
1811118130
app: "link:../app"
18112-
backstage-plugin-scaffolder-backend-module-orchestrator: ^0.1.0
1811318131
better-sqlite3: ^9.0.0
1811418132
node-gyp: ^10.0.0
1811518133
pg: ^8.11.3
@@ -18124,23 +18142,6 @@ __metadata:
1812418142
languageName: node
1812518143
linkType: hard
1812618144

18127-
"backstage-plugin-scaffolder-backend-module-orchestrator@^0.1.0, backstage-plugin-scaffolder-backend-module-orchestrator@workspace:plugins/scaffolder-backend-module-orchestrator":
18128-
version: 0.0.0-use.local
18129-
resolution: "backstage-plugin-scaffolder-backend-module-orchestrator@workspace:plugins/scaffolder-backend-module-orchestrator"
18130-
dependencies:
18131-
"@backstage/backend-plugin-api": ^1.0.2
18132-
"@backstage/catalog-model": ^1.7.0
18133-
"@backstage/cli": ^0.29.0
18134-
"@backstage/plugin-scaffolder-node": ^0.6.0
18135-
"@backstage/plugin-scaffolder-node-test-utils": ^0.1.15
18136-
"@backstage/types": ^1.2.1
18137-
"@red-hat-developer-hub/backstage-plugin-orchestrator-common": "workspace:^"
18138-
"@spotify/prettier-config": ^15.0.0
18139-
axios: ^1.7.7
18140-
js-yaml: ^4.1.0
18141-
languageName: unknown
18142-
linkType: soft
18143-
1814418145
"bail@npm:^2.0.0":
1814518146
version: 2.0.2
1814618147
resolution: "bail@npm:2.0.2"
@@ -34553,20 +34554,6 @@ __metadata:
3455334554
languageName: node
3455434555
linkType: hard
3455534556

34556-
"rollup@npm:^2.78.0":
34557-
version: 2.79.2
34558-
resolution: "rollup@npm:2.79.2"
34559-
dependencies:
34560-
fsevents: ~2.3.2
34561-
dependenciesMeta:
34562-
fsevents:
34563-
optional: true
34564-
bin:
34565-
rollup: dist/bin/rollup
34566-
checksum: df7aa4c8b95245dede157b06ab71e1921de6080757d30e9bf31f8fb142064d12dda865e2bafbab4349588f43425b2965a290c9a5da1c048246a70fc21734ebd7
34567-
languageName: node
34568-
linkType: hard
34569-
3457034557
"rollup@npm:^4.0.0":
3457134558
version: 4.24.0
3457234559
resolution: "rollup@npm:4.24.0"

0 commit comments

Comments
 (0)