Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.05 KB

DEVELOPMENT.md

File metadata and controls

56 lines (38 loc) · 1.05 KB

Development

Build and test

  1. Install dependencies

    yarn install
  2. Build plugin in development mode or run in watch mode

    yarn dev

    or

    yarn watch
  3. Build plugin in production mode

    yarn build
  4. Build backend plugin binaries for Linux, Windows and Darwin:

    mage -v
  5. Sign the plugin for private deployments

    yarn sign --rootUrls http://localhost:3000

Verifier

name=$(jq -r '.id' src/plugin.json)
cp -a dist "$name"
zip -r "$name.zip" "$name"
docker run -it --rm -v $(pwd):/plugin grafana/plugin-validator-cli /app/bin/plugincheck2 -config config/default.yaml /plugin/$name.zip

Releases

  1. Update the CHANGELOG.md
  2. Update the version in the package.json
  3. Commit the changes and create a vX.Y tag matching contents of the package.json file.

The release workflow will be triggered when pushing the tag and will create the GitHub release with the artifacts and release notes.