-
Notifications
You must be signed in to change notification settings - Fork 31
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
Create Plugin: Remove Plop #602
Conversation
@@ -38,14 +38,18 @@ | |||
"@types/mkdirp": "^1.0.2", | |||
"@types/semver": "^7.3.9", | |||
"@types/which": "^2.0.2", | |||
"enquirer": "^2.3.6", | |||
"chalk": "^4.1.2", | |||
"change-case": "^3.1.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of these dependencies are not the latest versions. This is intentional. To keep changes to a minimum I've opted to use the same versions that plop was using.
da17940
to
e654737
Compare
…e, clean up parameters
…, fix type issues
…fold function calls
2c2442b
to
b349330
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! 🥇
🚀 PR was released in |
What this PR does / why we need it:
This PR aims to remove PlopJS from the generate command in favour of using
enquirer
andhandlebars
directly. The changes should not impact behaviour of scaffolding nor affect the user in any way.Tests
This PR can be tested locally using the version of the plugin at the end of this PR description.
Scaffolding the same plugin twice, once with
npx -y @grafana/create-plugin@latest
and again withnpx -y @grafana/create-plugin@2.11.0-canary.602.81e7a0e.0
then running therecursiveFileCheck.mjs
against each output to check the same files and directory structure exists gives the following (expected) results:App with backend
Datasource with backend
Panel
Scenes App with backend
Datasource without backend
Which issue(s) this PR fixes:
Fixes #607
Special notes for your reviewer:
📦 Published PR as canary version:
Canary Versions
✨ Test out this PR locally via:
npm install @grafana/create-plugin@2.11.0-canary.602.618fd26.0 # or yarn add @grafana/create-plugin@2.11.0-canary.602.618fd26.0