grafana / plugin-tools

Create Grafana plugins with ease.
https://grafana.com/developers/plugin-tools/
Apache License 2.0
57 stars 31 forks source link

Webpack: Generate meta-data using the plugin-meta-extractor during builds #871

Closed leventebalogh closed 5 months ago

leventebalogh commented 5 months ago

[!NOTE]
This PR depends on https://github.com/grafana/plugin-tools/pull/805 and also the @grafana/plugin-meta-extractor package to be published.

What changed?

Updated the webpack configuration to analyze plugin code during builds and auto-generate a plugin.generated.json file which holds information about extensions the plugin wants to register. (This can later be used by Grafana core to decide when a certain plugin should be preloaded.)

What should I do as a plugin dev?

Run npx @grafana/create-plugin@latest update once this PR is merged and a new version of @grafana/create-plugin is published.

📦 Published PR as canary version: Canary Versions
:sparkles: Test out this PR locally via: ```bash npm install @grafana/create-plugin@4.10.0-canary.871.60a4cf1.0 # or yarn add @grafana/create-plugin@4.10.0-canary.871.60a4cf1.0 ```
github-actions[bot] commented 5 months ago

Hello! 👋 This repository uses Auto for releasing packages using PR labels.

✨ This PR can be merged and will trigger a new minor release. NOTE: When merging a PR with the release label please avoid merging another PR. For further information see here.

grafana-plugins-platform-bot[bot] commented 5 months ago

:rocket: PR was released in @grafana/create-plugin@4.10.0 :rocket: