-
Notifications
You must be signed in to change notification settings - Fork 32
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: Update yarn scripts and instructions to work post scaffold #168
Conversation
ca6f051
to
1503e62
Compare
I rebased, but a few questions
If it's helpful, feel free to take over this pr and do with it what you'd like or close it in favor of other changes! Just wanted to share some stuff we found! |
5233fa3
to
6036dd3
Compare
Thanks @sarahzinger, again really appreciate you taking the time here. I've updated the bits n pieces I think are required before merging.
No, I think you were right in removing the doc references to
Right now we're aiming to keep them as aligned as possible whilst we start to drive devs towards the website.
We build up a list of files to scaffold based on the common templates, then the templates for the plugin type and finally the backend templates if requested during the scaffolding prompts. Moving the |
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.
LGTM!
🚀 PR was released in |
What this PR does / why we need it:
We were recently using the create-plugin module and did some user testing with someone new to plugin development and found a few of the yarn scripts as described in the Getting Started docs were either missing, had typos, or threw non obvious errors
Here is a summary/description changes:
yarn test
instructions to mentiongit init
. If you try to run this before runninggit init
you get the error message--watch is not supported without git/hg, please use --watchAll
which sort of explains what's going on but it's a bit non intuitive that you need to run git init for yarn test. I suppose an alternative here would be to switch the test command tojest --watchAll
not sure which is preferable from a user experience, I suppose it depends on how many tests the average datasource has and how quickly they run. I imagine most are minimally tested and run quickly but I could be mistaken in that belief.yarn test:ci
fromyarn lint:ci
pretty sure this is just a typoas opposed to
is I think clear but still encouraging the user to add some tests when they can.
📦 Published PR as canary version:
Canary Versions
✨ Test out this PR locally via:
npm install @grafana/create-plugin@0.8.2-canary.168.6036dd3.0 # or yarn add @grafana/create-plugin@0.8.2-canary.168.6036dd3.0