Enable create plugin to work with plugin-example projects #236
sympatheticmoose
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We provide a number of plugin examples as a way to get started https://github.com/grafana/grafana-plugin-examples
This proposal is to allow users to select a sample project to start from in create-plugin using something like:
npx @grafana/create-plugin@latest --starter=app-basic
Or interactively:
So that they could leverage a richer set of starting points, staying within the create-plugin context and showcasing the examples we have already created
To do this we would need to make the sample projects in some way "scaffoldable" to accept the user input prior to this point.
As an example, unique values for 2 app plugins with backends and CI include:
We would also need to identify any incompatibilities between the projects defined in https://github.com/grafana/grafana-plugin-examples and what the tool generates.
Perhaps in future, the plugin examples are just published rendered templates, and we can keep them in date with
npx @grafana/create-plugin@latest update
Beta Was this translation helpful? Give feedback.
All reactions