graphiql: Add experimental installationRecipe to package.json

Used by the new experimental `backstage-cli install <plugin>` command

Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>

Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
This commit is contained in:
Himanshu Mishra
2021-09-17 16:37:03 +02:00
parent 1ef9e64901
commit c8215e1fe6
2 changed files with 23 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-graphiql': patch
---
Add experimental `installationRecipe` to `package.json`.
+18 -1
View File
@@ -60,5 +60,22 @@
},
"files": [
"dist"
]
],
"installationRecipe": {
"type": "frontend-plugin",
"steps": [
{
"type": "app-route",
"path": "/graphiql",
"element": "<GraphiQLPage />"
},
{
"type": "message",
"message": [
"The GraphiQL plugin has been installed, but you still need to add API endpoints. ",
"See https://github.com/backstage/backstage/tree/master/plugins/graphiql#adding-graphql-endpoints"
]
}
]
}
}