-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from axelerant/publish-plugin-setup
setup: publish to npm
- Loading branch information
Showing
23 changed files
with
68 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"name": "@internal/backstage-plugin-platformsh-backend", | ||
"name": "@axelerant/backstage-plugin-platformsh-backend", | ||
"version": "0.1.0", | ||
"description": "Backstage backend plugin for Platform.sh integration!", | ||
"main": "src/index.ts", | ||
"types": "src/index.ts", | ||
"license": "Apache-2.0", | ||
|
@@ -13,6 +14,19 @@ | |
"backstage": { | ||
"role": "backend-plugin" | ||
}, | ||
"keywords": [ | ||
"backstage", | ||
"plugin", | ||
"platformsh", | ||
"platform.sh" | ||
], | ||
"homepage": "https://github.com/axelerant/backstage-plugins", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/axelerant/backstage-plugins", | ||
"directory": "plugins/platformsh-backend" | ||
}, | ||
"author": "zeshanziya <[email protected]>", | ||
"scripts": { | ||
"start": "backstage-cli package start", | ||
"build": "backstage-cli package build", | ||
|
@@ -32,7 +46,7 @@ | |
"@backstage/plugin-catalog-node": "^1.12.6", | ||
"@backstage/plugin-permission-common": "^0.8.1", | ||
"@backstage/plugin-permission-node": "^0.8.2", | ||
"@internal/backstage-plugin-platformsh-common": "^0.1.0", | ||
"@axelerant/backstage-plugin-platformsh-common": "^0.1.0", | ||
"express": "^4.17.1", | ||
"express-promise-router": "^4.1.0", | ||
"node-fetch": "^2.6.7", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@internal/backstage-plugin-platformsh-common", | ||
"description": "Common functionalities for the platformsh plugin", | ||
"name": "@axelerant/backstage-plugin-platformsh-common", | ||
"description": "Common functionalities for the backstage platformsh plugin", | ||
"version": "0.1.0", | ||
"main": "src/index.ts", | ||
"types": "src/index.ts", | ||
|
@@ -15,6 +15,19 @@ | |
"backstage": { | ||
"role": "common-library" | ||
}, | ||
"keywords": [ | ||
"backstage", | ||
"plugin", | ||
"platformsh", | ||
"platform.sh" | ||
], | ||
"homepage": "https://github.com/axelerant/backstage-plugins", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/axelerant/backstage-plugins", | ||
"directory": "plugins/platformsh-common" | ||
}, | ||
"author": "zeshanziya <[email protected]>", | ||
"sideEffects": false, | ||
"scripts": { | ||
"build": "backstage-cli package build", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"name": "@internal/backstage-plugin-platformsh", | ||
"name": "@axelerant/backstage-plugin-platformsh", | ||
"version": "0.1.0", | ||
"description": "Backstage frontend plugin for Platform.sh integration!", | ||
"main": "src/index.ts", | ||
"types": "src/index.ts", | ||
"license": "Apache-2.0", | ||
"private": true, | ||
"publishConfig": { | ||
"access": "public", | ||
"main": "dist/index.esm.js", | ||
|
@@ -13,6 +13,19 @@ | |
"backstage": { | ||
"role": "frontend-plugin" | ||
}, | ||
"keywords": [ | ||
"backstage", | ||
"plugin", | ||
"platformsh", | ||
"platform.sh" | ||
], | ||
"homepage": "https://github.com/axelerant/backstage-plugins", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/axelerant/backstage-plugins", | ||
"directory": "plugins/platformsh" | ||
}, | ||
"author": "zeshanziya <[email protected]>", | ||
"sideEffects": false, | ||
"scripts": { | ||
"start": "backstage-cli package start", | ||
|
@@ -30,7 +43,7 @@ | |
"@backstage/plugin-catalog-react": "^1.12.3", | ||
"@backstage/plugin-permission-react": "^0.4.25", | ||
"@backstage/theme": "^0.5.6", | ||
"@internal/backstage-plugin-platformsh-common": "^0.1.0", | ||
"@axelerant/backstage-plugin-platformsh-common": "^0.1.0", | ||
"@material-ui/core": "^4.9.13", | ||
"@material-ui/icons": "^4.9.1", | ||
"@material-ui/lab": "^4.0.0-alpha.61", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { Entity } from '@backstage/catalog-model'; | ||
import { ANNOTATION_PLATFORMSH_PROJECT } from '@internal/backstage-plugin-platformsh-common'; | ||
import { ANNOTATION_PLATFORMSH_PROJECT } from '@axelerant/backstage-plugin-platformsh-common'; | ||
|
||
export const isPlatformshAvailable = (entity: Entity) => | ||
Boolean(entity?.metadata.annotations?.[ANNOTATION_PLATFORMSH_PROJECT]); |