-
Notifications
You must be signed in to change notification settings - Fork 7
Improve composition #14
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
Improve composition #14
Conversation
@scottrobertson I'm interested on your take on the example projects I included |
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.
Looks good to me.
Not a fan of example projects as we need to keep it up to date, but I think it's simple enough.
Thanks for this!
@sduduzog can you merge these, or do you want me to? |
@scottrobertson Please do, I actually don't have write access (hopefully yet) |
Oh I thought you did. I asked @kiwicopple to give you it. |
@sduduzog to trigger a release, do another PR with the version bumped, then I can merge and click release :) |
This PR introduces a couple of helping composables for Vue3 and Vue2+composition-api, namely:
useSupabase
useSupabaseAuth
useSupabaseStorage
Adds type declarations which solves the issue supabase-community/nuxt-supabase#11 for vue projects using vue-class-components, inevitably nuxt projects too
Adds easily configurable example projects for Vue2 and Vue3 enabling anyone to quickly play around with the plugin
It also adds configuration setup for eslint and prettier for basic linting and code formatting
TODO
Note
The examples added to the project are not at all perfect, but they get the job done. They provided me with the quickest way to test changes added to this PR. Also, they aren't and shouldn't be set in stone. if there's a better way to achieve such a task, we should go for it.