From c8215e1fe69224d93e977c07565a85a4c5b8728f Mon Sep 17 00:00:00 2001 From: Himanshu Mishra Date: Fri, 17 Sep 2021 16:37:03 +0200 Subject: [PATCH] graphiql: Add experimental installationRecipe to package.json Used by the new experimental `backstage-cli install ` command Co-authored-by: Patrik Oldsberg Signed-off-by: Himanshu Mishra --- .changeset/honest-drinks-eat.md | 5 +++++ plugins/graphiql/package.json | 19 ++++++++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .changeset/honest-drinks-eat.md diff --git a/.changeset/honest-drinks-eat.md b/.changeset/honest-drinks-eat.md new file mode 100644 index 0000000000..8d997acb61 --- /dev/null +++ b/.changeset/honest-drinks-eat.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-graphiql': patch +--- + +Add experimental `installationRecipe` to `package.json`. diff --git a/plugins/graphiql/package.json b/plugins/graphiql/package.json index 56fd991ec9..ffb238bd51 100644 --- a/plugins/graphiql/package.json +++ b/plugins/graphiql/package.json @@ -60,5 +60,22 @@ }, "files": [ "dist" - ] + ], + "installationRecipe": { + "type": "frontend-plugin", + "steps": [ + { + "type": "app-route", + "path": "/graphiql", + "element": "" + }, + { + "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" + ] + } + ] + } }