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:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-graphiql': patch
|
||||
---
|
||||
|
||||
Add experimental `installationRecipe` to `package.json`.
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user