Skip to content

Commit

Permalink
chore: add wrapper for servicenow (#1883)
Browse files Browse the repository at this point in the history
* add wrapper for servicenow

Signed-off-by: Kashish Mittal <[email protected]>

* run './node_modules/@backstage/cli/bin/backstage-cli repo fix --publish' to fix up metadata

Signed-off-by: Nick Boldt <[email protected]>

* run export-dynamic

Signed-off-by: Kashish Mittal <[email protected]>

---------

Signed-off-by: Kashish Mittal <[email protected]>
Signed-off-by: Nick Boldt <[email protected]>
Co-authored-by: Nick Boldt <[email protected]>
  • Loading branch information
04kash and nickboldt authored Nov 6, 2024
1 parent 4505d41 commit df3c6fa
Show file tree
Hide file tree
Showing 23 changed files with 139 additions and 94 deletions.
2 changes: 1 addition & 1 deletion dynamic-plugins.default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ plugins:
parent: admin
icon: rbacIcon

- package: ./dynamic-plugins/dist/janus-idp-backstage-scaffolder-backend-module-servicenow-dynamic
- package: ./dynamic-plugins/dist/backstage-community-plugin-scaffolder-backend-module-servicenow-dynamic
disabled: true
pluginConfig:
servicenow:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist-dynamic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('@backstage/cli/config/eslint-factory')(__dirname);
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "janus-idp-backstage-scaffolder-backend-module-servicenow-dynamic",
"version": "2.2.0",
"name": "backstage-community-plugin-scaffolder-backend-module-servicenow-dynamic",
"version": "2.2.1",
"main": "./dist/index.cjs.js",
"types": "src/index.ts",
"license": "Apache-2.0",
Expand All @@ -10,7 +10,7 @@
},
"backstage": {
"role": "backend-plugin-module",
"supported-versions": "1.32.4",
"supported-versions": "1.32.5",
"pluginId": "scaffolder",
"pluginPackage": "@backstage/plugin-scaffolder-backend"
},
Expand All @@ -34,7 +34,7 @@
"repository": {
"type": "git",
"url": "https://github.com/janus-idp/backstage-showcase",
"directory": "dynamic-plugins/wrappers/janus-idp-backstage-scaffolder-backend-module-servicenow-dynamic"
"directory": "dynamic-plugins/wrappers/backstage-community-plugin-scaffolder-backend-module-servicenow-dynamic"
},
"maintainers": [
"@janus-idp/maintainers-showcase"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,21 @@ __metadata:
languageName: node
linkType: hard

"backstage-community-plugin-scaffolder-backend-module-servicenow-dynamic@workspace:.":
version: 0.0.0-use.local
resolution: "backstage-community-plugin-scaffolder-backend-module-servicenow-dynamic@workspace:."
dependencies:
abort-controller: ^3.0.0
axios: ^1.7.4
form-data: ^4.0.0
yaml: ^2.3.3
zod: ^3.22.4
peerDependencies:
"@backstage/backend-plugin-api": ^1.0.1
"@backstage/plugin-scaffolder-node": ^0.5.0
languageName: unknown
linkType: soft

"combined-stream@npm:^1.0.8":
version: 1.0.8
resolution: "combined-stream@npm:1.0.8"
Expand Down Expand Up @@ -76,21 +91,6 @@ __metadata:
languageName: node
linkType: hard

"janus-idp-backstage-scaffolder-backend-module-servicenow-dynamic@workspace:.":
version: 0.0.0-use.local
resolution: "janus-idp-backstage-scaffolder-backend-module-servicenow-dynamic@workspace:."
dependencies:
abort-controller: ^3.0.0
axios: ^1.7.4
form-data: ^4.0.0
yaml: ^2.3.3
zod: ^3.22.4
peerDependencies:
"@backstage/backend-plugin-api": ^1.0.1
"@backstage/plugin-scaffolder-node": ^0.5.0
languageName: unknown
linkType: soft

"mime-db@npm:1.52.0":
version: 1.52.0
resolution: "mime-db@npm:1.52.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "janus-idp-backstage-scaffolder-backend-module-servicenow",
"version": "2.2.0",
"main": "src/index.ts",
"name": "backstage-community-plugin-scaffolder-backend-module-servicenow",
"version": "2.2.1",
"main": "./dist/index.cjs.js",
"types": "src/index.ts",
"license": "Apache-2.0",
"private": true,
Expand All @@ -10,7 +10,7 @@
},
"backstage": {
"role": "backend-plugin-module",
"supported-versions": "1.32.4",
"supported-versions": "1.32.5",
"pluginId": "scaffolder",
"pluginPackage": "@backstage/plugin-scaffolder-backend"
},
Expand All @@ -32,15 +32,11 @@
"test": "backstage-cli package test --passWithNoTests --coverage",
"clean": "backstage-cli package clean",
"clean-dynamic-sources": "yarn clean && rm -Rf node_modules",
"export-dynamic": "janus-cli package export-dynamic-plugin --embed-package @janus-idp/backstage-scaffolder-backend-module-servicenow --override-interop default --no-embed-as-dependencies",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --embed-package @janus-idp/backstage-scaffolder-backend-module-servicenow --override-interop default --no-embed-as-dependencies --clean"
"export-dynamic": "janus-cli package export-dynamic-plugin --embed-package @backstage-community/plugin-scaffolder-backend-module-servicenow --override-interop default --no-embed-as-dependencies",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --embed-package @backstage-community/plugin-scaffolder-backend-module-servicenow --override-interop default --no-embed-as-dependencies --clean"
},
"dependencies": {
"@janus-idp/backstage-scaffolder-backend-module-servicenow": "2.2.0"
},
"devDependencies": {
"@backstage/cli": "0.28.2",
"@janus-idp/cli": "1.17.0"
"@backstage-community/plugin-scaffolder-backend-module-servicenow": "2.2.1"
},
"files": [
"dist",
Expand All @@ -50,7 +46,7 @@
"repository": {
"type": "git",
"url": "https://github.com/janus-idp/backstage-showcase",
"directory": "dynamic-plugins/wrappers/janus-idp-backstage-scaffolder-backend-module-servicenow-dynamic"
"directory": "dynamic-plugins/wrappers/backstage-community-plugin-scaffolder-backend-module-servicenow-dynamic"
},
"maintainers": [
"@janus-idp/maintainers-showcase"
Expand All @@ -61,5 +57,23 @@
"keywords": [
"support:tech-preview",
"lifecycle:active"
]
],
"bundleDependencies": true,
"peerDependencies": {
"@backstage/backend-plugin-api": "^1.0.1",
"@backstage/plugin-scaffolder-node": "^0.5.0"
},
"overrides": {
"@aws-sdk/util-utf8-browser": {
"@smithy/util-utf8": "^2.0.0"
}
},
"resolutions": {
"@aws-sdk/util-utf8-browser": "npm:@smithy/util-utf8@~2"
},
"devDependencies": {
"@backstage/cli": "0.28.2",
"@janus-idp/cli": "1.17.0",
"typescript": "^5.6.3"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@backstage-community/plugin-scaffolder-backend-module-servicenow';
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "@backstage/cli/config/tsconfig.json",
"include": ["src", "dev", "migrations"],
"exclude": ["node_modules"],
"compilerOptions": {
"outDir": "../../../dist-types/dynamic-plugins/wrappers/backstage-community-plugin-scaffolder-backend-module-servicenow-dynamic",
"rootDir": "."
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": ["//"],
"tasks": {
"tsc": {
"outputs": [
"../../../dist-types/dynamic-plugins/wrappers/backstage-community-plugin-scaffolder-backend-module-servicenow-dynamic/**"
]
}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
"supported-versions": "1.32.4",
"pluginId": "janus-idp-bulk-import-backend",
"pluginPackages": [
"janus-idp-bulk-import",
"janus-idp-bulk-import-backend"
"janus-idp-backstage-plugin-bulk-import-backend"
]
},
"exports": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
"supported-versions": "1.32.4",
"pluginId": "janus-idp-bulk-import",
"pluginPackages": [
"janus-idp-bulk-import",
"janus-idp-bulk-import-backend"
"janus-idp-backstage-plugin-bulk-import"
]
},
"sideEffects": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"pluginId": "jfrog-artifactory",
"pluginPackage": "janus-idp-jfrog-artifactory",
"pluginPackages": [
"janus-idp-jfrog-artifactory"
"janus-idp-backstage-plugin-jfrog-artifactory"
]
},
"sideEffects": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
"supported-versions": "1.32.4",
"pluginId": "janus-idp-ocm-backend",
"pluginPackages": [
"janus-idp-ocm",
"janus-idp-ocm-backend"
"janus-idp-backstage-plugin-ocm-backend"
]
},
"exports": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
"supported-versions": "1.32.4",
"pluginId": "janus-idp-ocm",
"pluginPackages": [
"janus-idp-ocm",
"janus-idp-ocm-backend"
"janus-idp-backstage-plugin-ocm"
]
},
"sideEffects": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
"role": "frontend-plugin",
"supported-versions": "1.32.4",
"pluginId": "janus-idp-quay",
"pluginPackage": "janus-idp-quay"
"pluginPackage": "janus-idp-quay",
"pluginPackages": [
"janus-idp-backstage-plugin-quay"
]
},
"sideEffects": false,
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
"supported-versions": "1.32.4",
"pluginId": "rbac",
"pluginPackages": [
"janus-idp-rbac",
"janus-idp-rbac-backend"
"janus-idp-backstage-plugin-rbac"
]
},
"sideEffects": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
"role": "frontend-plugin",
"supported-versions": "1.32.4",
"pluginId": "janus-idp-tekton",
"pluginPackage": "janus-idp-tekton"
"pluginPackage": "janus-idp-tekton",
"pluginPackages": [
"janus-idp-backstage-plugin-tekton"
]
},
"sideEffects": false,
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
"backstage": {
"role": "frontend-plugin",
"supported-versions": "1.32.4",
"pluginId": "janus-idp-topology"
"pluginId": "janus-idp-topology",
"pluginPackages": [
"janus-idp-backstage-plugin-topology"
]
},
"sideEffects": false,
"scripts": {
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ export const InternalPluginsMap: Record<string, string> = {
'./dynamic-plugins/dist/janus-idp-backstage-scaffolder-backend-module-regex-dynamic',
'janus-idp-backstage-plugin-rbac':
'./dynamic-plugins/dist/janus-idp-backstage-plugin-rbac',
'janus-idp-backstage-scaffolder-backend-module-servicenow-dynamic':
'./dynamic-plugins/dist/janus-idp-backstage-scaffolder-backend-module-servicenow-dynamic',
'backstage-community-plugin-scaffolder-backend-module-servicenow-dynamic':
'./dynamic-plugins/dist/backstage-community-plugin-scaffolder-backend-module-servicenow-dynamic',
'janus-idp-backstage-scaffolder-backend-module-sonarqube-dynamic':
'/dynamic-plugins/dist/janus-idp-backstage-scaffolder-backend-module-sonarqube-dynamic',
'janus-idp-backstage-plugin-aap-backend-dynamic':
Expand Down
Loading

0 comments on commit df3c6fa

Please sign in to comment.