Which areas does this feature request relate to
Problem
Support is being added to Grafana for processing "app manifest" embedded in plugins, generated by grafana-app-sdk. It would be valuable to have support in create-plugin to setup the scaffolding to enhance the user experience.
Solution
Whilst this is considered experimental and not for general consumption, we can hide The extra scaffolding
create-plugin --feature-flags=experimentalAppSdk
and/or
create-plugin add experimental-app-sdk
The extra scaffolding would include:
- A directory for storing the
.cue files, and some skeleton files:
/kinds/...
- A command to run the app-sdk code generator
npm run generate:kinds
- An extra
copyFiles step in the build process to add the app-sdk-manifest.json to /dist
- An extra hint in
AGENTS/instructions.md about app-sdk/kinds and how/when to run code generation
Alternatives
- Variation on this is to add it to Go codegen/Magefile instead of npm (= e.g. mage
generate-kinds), but frontend-only apps that define kinds are feasible and sensible.
- Creating or adding the functionality an external tool is another option (e.g. the app-sdk itself)
Additional context
No response
Are you interested in contributing the solution?
Which areas does this feature request relate to
Problem
Support is being added to Grafana for processing "app manifest" embedded in plugins, generated by
grafana-app-sdk. It would be valuable to have support increate-pluginto setup the scaffolding to enhance the user experience.Solution
Whilst this is considered experimental and not for general consumption, we can hide The extra scaffolding
and/or
The extra scaffolding would include:
.cuefiles, and some skeleton files:/kinds/...npm run generate:kindscopyFilesstep in the build process to add theapp-sdk-manifest.jsonto/distAGENTS/instructions.mdabout app-sdk/kinds and how/when to run code generationAlternatives
generate-kinds), but frontend-only apps that define kinds are feasible and sensible.Additional context
No response
Are you interested in contributing the solution?