Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define explicit dependencies and update configs #9

Merged
merged 39 commits into from
Mar 11, 2022

Conversation

jackw
Copy link
Collaborator

@jackw jackw commented Mar 1, 2022

This PR removes toolkit from the dependency tree in favour of explicitly declaring devDependencies within the scaffolded plugins package.json.

  • Remove @grafana/toolkit in place of declared devDependencies
  • Use TS for webpack config
  • Rewrite webpack config to use latest tooling (SWC)
  • Compile to ES6 for smaller plugin bundles
  • Introduce docker so plugin devs can easily dev against a running instance of Grafana
  • Make sure unit & integration testing works (Jest, React-testing-library)
  • Make sure e2e testing works (Cypress)
  • Add TS module definitions for non JS/TS imports
  • Update Readme with all the above
  • Test various plugins against the above webpack config changes (see plugin-examples repo)

I've tested loading a plugin compiled using these changes in Grafana and it all seems to function fine...

image

Fixes: #6

@jackw jackw added the enhancement New feature or request label Mar 1, 2022
@jackw jackw requested review from mckn and leventebalogh March 1, 2022 16:29
@jackw jackw self-assigned this Mar 1, 2022
@jackw jackw changed the title Define explicit dependencies and update webpack config Define explicit dependencies and update configs Mar 4, 2022
@leventebalogh leventebalogh mentioned this pull request Mar 4, 2022
@jackw jackw removed the request for review from leventebalogh March 9, 2022 08:31
Copy link
Collaborator

@mckn mckn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@leventebalogh leventebalogh marked this pull request as ready for review March 10, 2022 17:16
@leventebalogh leventebalogh merged commit ee7db42 into main Mar 11, 2022
@leventebalogh leventebalogh deleted the jackw/explicit-deps-webpack branch March 11, 2022 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Explicit dependencies
3 participants