-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
feat: add addDevToolbarPlugin and addIntegration utilities #64
feat: add addDevToolbarPlugin and addIntegration utilities #64
Conversation
✅ Deploy Preview for astro-integration-kit ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
can't review more just yet but a few comments! also i'm not sold on the utility name, plugin could be confusing with aik plugins. i get that you can't just use addDevToolbarApp
but may be worth tinkering a little bit
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.
- my comments on the preact stub applies to all of them
- may be worth documenting how to load the icon from a file, or even provide an helper. that's a bit nicer dx imo
Co-authored-by: Florian Lefebvre <[email protected]>
Co-authored-by: Florian Lefebvre <[email protected]>
Co-authored-by: Florian Lefebvre <[email protected]>
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.
We're getting real close this time! Btw, what is test-vue-app
?
docs/src/content/docs/utilities/add-devtoolbar-framework-app.mdx
Outdated
Show resolved
Hide resolved
docs/src/content/docs/utilities/add-devtoolbar-framework-app.mdx
Outdated
Show resolved
Hide resolved
docs/src/content/docs/utilities/add-devtoolbar-framework-app.mdx
Outdated
Show resolved
Hide resolved
docs/src/content/docs/utilities/add-devtoolbar-framework-app.mdx
Outdated
Show resolved
Hide resolved
docs/src/content/docs/utilities/add-devtoolbar-framework-app.mdx
Outdated
Show resolved
Hide resolved
docs/src/content/docs/utilities/add-devtoolbar-framework-app.mdx
Outdated
Show resolved
Hide resolved
@florian-lefebvre |
Sounds good! Could that be nested inside a new top level folder? Like |
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! 🎉
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.
So we won't check dependencies ourselves for now. It is great to reduce the scope.
Docs and comments LGTM, I have zero expertise with UI frameworks so it's all sorcery in my eyes. The sorcery is looking pretty though.
Hey all!
The long awaited Dev Toolbar Framework App PR is here 🎉 !
So this PR adds two utilities:
addDevToolbarFrameworkApp
andaddIntegration
.Starting with
addIntegration
- this is a small util that simply adds an integration from an integration. Very useful for `addDevToolbarFrameworkApp. It's useful to add the Astro framework integrations from your integration meaning you're not relying on your user then also having to install and add it. But it will check if it's already installed, and if it is it won't add it again.addDevToolbarFrameworkApp
, as I'm sure can all guess, adds a dev toolbar plugin. But it allows you to define a framework and a path to a framework component so you can load framework components into a dev toolbar plugin.The
addDevToolbarFrameworkApp
API also has an added benefit of being close(r) to what the Astro teams wants theaddDevToolbarApp
API to be in the future. So when we go to core.... This may be good? I dunno, but it's cool though!All examples of the plugins are available in the playground!
Cheers all!
Closes #13