Migrate to create-plugin and support node 18 #286
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
rm -rf node_modules && yarn && yarn lint && yarn test:ci && yarn build
then tested it with a simple queryNotes to reviewers:
I suggest checking the
Hide whitespace
checkbox in the diff view settings for this.Why does this include migrating from
@grafana/toolkit
to@grafana/create-plugin
? When updating to Node 18, we run into an error due to an incompatible version of node when runningyarn install
due to dependencies used in@grafana/toolkit
, which is now deprecated.What are the notable changes
npx @grafana/create-plugin@latest migrate
./config/*
all generated files with default configuration for tooling such as webpack, eslint, jest, etc. The following root level files were also modified automatically to use the configuration defined in the/.config
dir.eslintrc
.prettierrc.js
jest-setup.js
jest.config.js
tsconfig.json
package.json
modified to include required dev deps and updates the scriptsdocker-compose.yaml
used byyarn server
.github/workflows/detect-breaking-changes.yml
sets it to use the .nvmrc file to determine the version of node to use instead of hardcoding it.nvmrc
is used to determine which version of Node is used to build the app in Drone.CONTRIBUTING.MD
removes theyarn watch
command which is no longer available, it is now justyarn dev
src/**/*.{ts,tsx}
files: formatting changes (prettier), and typescript fixes