Skip to content

Commit

Permalink
feat(dynamic-plugins): publish dynamic assets for all frontend plugins (
Browse files Browse the repository at this point in the history
#896)

Signed-off-by: Tomas Coufal <[email protected]>
  • Loading branch information
tumido authored Nov 1, 2023
1 parent 0ed6eff commit dcfb0ac
Show file tree
Hide file tree
Showing 14 changed files with 119 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ runs:

- name: Build all packages
shell: bash
run: yarn build --filter=${{ inputs.args }}
run: yarn build --filter=${{ inputs.args }} --concurrency=1
13 changes: 11 additions & 2 deletions plugins/acr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"start": "backstage-cli package start",
"build": "backstage-cli package build",
"export-dynamic": "janus-cli package export-dynamic-plugin",
"tsc": "tsc",
"lint": "backstage-cli package lint",
"test": "backstage-cli package test --passWithNoTests --coverage",
Expand Down Expand Up @@ -42,6 +43,7 @@
"@backstage/core-app-api": "1.11.0",
"@backstage/dev-utils": "1.0.22",
"@backstage/test-utils": "1.4.4",
"@janus-idp/cli": "1.3.1",
"@testing-library/jest-dom": "5.17.0",
"@testing-library/react": "12.1.5",
"@testing-library/react-hooks": "8.0.1",
Expand All @@ -51,13 +53,20 @@
"msw": "1.3.2"
},
"files": [
"dist"
"dist",
"dist-scalprum"
],
"repository": "github:janus-idp/backstage-plugins",
"keywords": [
"backstage",
"plugin"
],
"homepage": "https://janus-idp.io/",
"bugs": "https://github.com/janus-idp/backstage-plugins/issues"
"bugs": "https://github.com/janus-idp/backstage-plugins/issues",
"scalprum": {
"name": "janus-idp.backstage-plugin-acr",
"exposedModules": {
"AcrPlugin": "./src/index.ts"
}
}
}
11 changes: 10 additions & 1 deletion plugins/jfrog-artifactory/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"start": "backstage-cli package start",
"build": "backstage-cli package build",
"export-dynamic": "janus-cli package export-dynamic-plugin",
"tsc": "tsc",
"lint": "backstage-cli package lint",
"test": "backstage-cli package test --passWithNoTests --coverage",
Expand Down Expand Up @@ -42,6 +43,7 @@
"@backstage/core-app-api": "1.11.0",
"@backstage/dev-utils": "1.0.22",
"@backstage/test-utils": "1.4.4",
"@janus-idp/cli": "1.3.1",
"@testing-library/jest-dom": "5.17.0",
"@testing-library/react": "12.1.5",
"@testing-library/user-event": "14.5.1",
Expand All @@ -53,6 +55,7 @@
},
"files": [
"dist",
"dist-scalprum",
"config.d.ts"
],
"configSchema": "config.d.ts",
Expand All @@ -62,5 +65,11 @@
"plugin"
],
"homepage": "https://janus-idp.io/",
"bugs": "https://github.com/janus-idp/backstage-plugins/issues"
"bugs": "https://github.com/janus-idp/backstage-plugins/issues",
"scalprum": {
"name": "janus-idp.backstage-plugin-jfrog-artifactory",
"exposedModules": {
"JfrogArtifactoryPlugin": "./src/index.ts"
}
}
}
20 changes: 18 additions & 2 deletions plugins/kiali/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"start": "backstage-cli package start",
"build": "backstage-cli package build",
"export-dynamic": "janus-cli package export-dynamic-plugin",
"tsc": "tsc",
"lint": "backstage-cli package lint",
"test": "backstage-cli package test --passWithNoTests --coverage",
Expand Down Expand Up @@ -46,6 +47,7 @@
"@backstage/core-app-api": "1.11.0",
"@backstage/dev-utils": "1.0.22",
"@backstage/test-utils": "1.4.4",
"@janus-idp/cli": "1.3.1",
"@testing-library/jest-dom": "5.17.0",
"@testing-library/react": "12.1.5",
"@testing-library/user-event": "14.5.1",
Expand All @@ -54,6 +56,20 @@
"msw": "1.3.2"
},
"files": [
"dist"
]
"dist",
"dist-scalprum"
],
"repository": "github:janus-idp/backstage-plugins",
"keywords": [
"backstage",
"plugin"
],
"homepage": "https://janus-idp.io/",
"bugs": "https://github.com/janus-idp/backstage-plugins/issues",
"scalprum": {
"name": "janus-idp.backstage-plugin-kiali",
"exposedModules": {
"KialiPlugin": "./src/index.ts"
}
}
}
11 changes: 10 additions & 1 deletion plugins/matomo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"scripts": {
"start": "backstage-cli package start",
"build": "backstage-cli package build",
"export-dynamic": "janus-cli package export-dynamic-plugin",
"tsc": "tsc",
"lint": "backstage-cli package lint",
"test": "backstage-cli package test",
Expand Down Expand Up @@ -45,6 +46,7 @@
"@backstage/core-app-api": "1.11.0",
"@backstage/dev-utils": "1.0.22",
"@backstage/test-utils": "1.4.4",
"@janus-idp/cli": "1.3.1",
"@testing-library/jest-dom": "5.17.0",
"@testing-library/react": "12.1.5",
"@testing-library/user-event": "14.5.1",
Expand All @@ -54,6 +56,7 @@
},
"files": [
"dist",
"dist-scalprum",
"config.d.ts"
],
"repository": "github:janus-idp/backstage-plugins",
Expand All @@ -62,5 +65,11 @@
"plugin"
],
"homepage": "https://janus-idp.io/",
"bugs": "https://github.com/janus-idp/backstage-plugins/issues"
"bugs": "https://github.com/janus-idp/backstage-plugins/issues",
"scalprum": {
"name": "janus-idp.backstage-plugin-matomo",
"exposedModules": {
"MatomoPlugin": "./src/index.ts"
}
}
}
11 changes: 10 additions & 1 deletion plugins/nexus-repository-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"start": "backstage-cli package start",
"generate": "openapi --input ./nexus-swagger.json --output ./src/generated --useUnionTypes --useOptions",
"build": "backstage-cli package build",
"export-dynamic": "janus-cli package export-dynamic-plugin",
"tsc": "tsc",
"lint": "backstage-cli package lint",
"test": "backstage-cli package test --passWithNoTests --coverage",
Expand Down Expand Up @@ -44,6 +45,7 @@
"@backstage/core-app-api": "1.11.0",
"@backstage/dev-utils": "1.0.22",
"@backstage/test-utils": "1.4.4",
"@janus-idp/cli": "1.3.1",
"@testing-library/jest-dom": "5.17.0",
"@testing-library/react": "12.1.5",
"@testing-library/react-hooks": "8.0.1",
Expand All @@ -57,6 +59,7 @@
},
"files": [
"dist",
"dist-scalprum",
"config.d.ts"
],
"configSchema": "config.d.ts",
Expand All @@ -66,5 +69,11 @@
"plugin"
],
"homepage": "https://janus-idp.io/",
"bugs": "https://github.com/janus-idp/backstage-plugins/issues"
"bugs": "https://github.com/janus-idp/backstage-plugins/issues",
"scalprum": {
"name": "janus-idp.backstage-plugin-nexus-repository-manager",
"exposedModules": {
"NexusRepositoryManagerPlugin": "./src/index.ts"
}
}
}
3 changes: 3 additions & 0 deletions plugins/nexus-repository-manager/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
},
"generate": {
"outputs": ["src/generated/**"]
},
"test": {
"dependsOn": ["generate"]
}
}
}
11 changes: 10 additions & 1 deletion plugins/openshift-image-registry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"start": "backstage-cli package start",
"build": "backstage-cli package build",
"export-dynamic": "janus-cli package export-dynamic-plugin",
"tsc": "tsc",
"lint": "backstage-cli package lint",
"test": "backstage-cli package test --passWithNoTests --coverage",
Expand All @@ -40,6 +41,7 @@
"@backstage/core-app-api": "1.11.0",
"@backstage/dev-utils": "1.0.22",
"@backstage/test-utils": "1.4.4",
"@janus-idp/cli": "1.3.1",
"@testing-library/jest-dom": "5.17.0",
"@testing-library/react": "12.1.5",
"@testing-library/user-event": "14.5.1",
Expand All @@ -51,7 +53,14 @@
},
"files": [
"dist",
"dist-scalprum",
"config.d.ts"
],
"configSchema": "config.d.ts"
"configSchema": "config.d.ts",
"scalprum": {
"name": "janus-idp.backstage-plugin-openshift-image-registry",
"exposedModules": {
"OpenshiftImageRegistryPlugin": "./src/index.ts"
}
}
}
13 changes: 11 additions & 2 deletions plugins/rbac/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"start": "backstage-cli package start",
"build": "backstage-cli package build",
"export-dynamic": "janus-cli package export-dynamic-plugin",
"tsc": "tsc",
"lint": "backstage-cli package lint",
"test": "backstage-cli package test --passWithNoTests --coverage",
Expand All @@ -39,20 +40,28 @@
"@backstage/core-app-api": "1.11.0",
"@backstage/dev-utils": "1.0.22",
"@backstage/test-utils": "1.4.4",
"@janus-idp/cli": "1.3.1",
"@testing-library/jest-dom": "5.17.0",
"@testing-library/react": "12.1.5",
"@testing-library/user-event": "14.5.1",
"@types/node": "18.18.5",
"msw": "1.3.2"
},
"files": [
"dist"
"dist",
"dist-scalprum"
],
"repository": "github:janus-idp/backstage-plugins",
"keywords": [
"backstage",
"plugin"
],
"homepage": "https://janus-idp.io/",
"bugs": "https://github.com/janus-idp/backstage-plugins/issues"
"bugs": "https://github.com/janus-idp/backstage-plugins/issues",
"scalprum": {
"name": "janus-idp.backstage-plugin-rbac",
"exposedModules": {
"RbacPlugin": "./src/index.ts"
}
}
}
3 changes: 3 additions & 0 deletions plugins/servicenow-actions/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
},
"generate": {
"outputs": ["src/generated/**"]
},
"test": {
"dependsOn": ["generate"]
}
}
}
13 changes: 11 additions & 2 deletions plugins/tekton/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"start": "backstage-cli package start",
"build": "backstage-cli package build",
"export-dynamic": "janus-cli package export-dynamic-plugin",
"tsc": "tsc",
"lint": "backstage-cli package lint",
"test": "backstage-cli package test --passWithNoTests --coverage",
Expand Down Expand Up @@ -55,6 +56,7 @@
"@backstage/core-app-api": "1.11.0",
"@backstage/dev-utils": "1.0.22",
"@backstage/test-utils": "1.4.4",
"@janus-idp/cli": "1.3.1",
"@testing-library/jest-dom": "5.17.0",
"@testing-library/react": "12.1.5",
"@testing-library/react-hooks": "8.0.1",
Expand All @@ -67,13 +69,20 @@
"react-router-dom": "6.17.0"
},
"files": [
"dist"
"dist",
"dist-scalprum"
],
"repository": "github:janus-idp/backstage-plugins",
"keywords": [
"backstage",
"plugin"
],
"homepage": "https://janus-idp.io/",
"bugs": "https://github.com/janus-idp/backstage-plugins/issues"
"bugs": "https://github.com/janus-idp/backstage-plugins/issues",
"scalprum": {
"name": "janus-idp.backstage-plugin-tekton",
"exposedModules": {
"TektonPlugin": "./src/index.ts"
}
}
}
13 changes: 11 additions & 2 deletions plugins/topology/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"start": "backstage-cli package start",
"build": "backstage-cli package build",
"export-dynamic": "janus-cli package export-dynamic-plugin",
"tsc": "tsc",
"lint": "backstage-cli package lint",
"test": "backstage-cli package test --passWithNoTests --coverage",
Expand Down Expand Up @@ -58,6 +59,7 @@
"@backstage/core-app-api": "1.11.0",
"@backstage/dev-utils": "1.0.22",
"@backstage/test-utils": "1.4.4",
"@janus-idp/cli": "1.3.1",
"@testing-library/jest-dom": "5.17.0",
"@testing-library/react": "12.1.5",
"@testing-library/react-hooks": "8.0.1",
Expand All @@ -72,13 +74,20 @@
"react-router-dom": "6.17.0"
},
"files": [
"dist"
"dist",
"dist-scalprum"
],
"repository": "github:janus-idp/backstage-plugins",
"keywords": [
"backstage",
"plugin"
],
"homepage": "https://janus-idp.io/",
"bugs": "https://github.com/janus-idp/backstage-plugins/issues"
"bugs": "https://github.com/janus-idp/backstage-plugins/issues",
"scalprum": {
"name": "janus-idp.backstage-plugin-topology",
"exposedModules": {
"TopologyPlugin": "./src/index.ts"
}
}
}
9 changes: 9 additions & 0 deletions plugins/web-terminal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"start": "backstage-cli package start",
"build": "backstage-cli package build",
"export-dynamic": "janus-cli package export-dynamic-plugin",
"tsc": "tsc",
"lint": "backstage-cli package lint",
"test": "backstage-cli package test --passWithNoTests --coverage",
Expand Down Expand Up @@ -45,6 +46,7 @@
"@backstage/core-app-api": "1.11.0",
"@backstage/dev-utils": "1.0.22",
"@backstage/test-utils": "1.4.4",
"@janus-idp/cli": "1.3.1",
"@testing-library/jest-dom": "5.17.0",
"@testing-library/react": "12.1.5",
"@testing-library/user-event": "14.5.1",
Expand All @@ -55,11 +57,18 @@
},
"files": [
"dist",
"dist-scalprum",
"schema.d.ts"
],
"jest": {
"setupFiles": [
"jest-canvas-mock"
]
},
"scalprum": {
"name": "janus-idp.backstage-plugin-web-terminal",
"exposedModules": {
"WebTerminalPlugin": "./src/index.ts"
}
}
}
Loading

0 comments on commit dcfb0ac

Please sign in to comment.