8000 feat: Supabase adder by mstibbard · Pull Request #556 · svelte-add/svelte-add · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Oct 20, 2024. It is now read-only.

feat: Supabase adder #556

Closed
wants to merge 26 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
826e6be
add baas category
mstibbard Sep 2, 2024
fffe6a6
init attempt
mstibbard Sep 2, 2024
23f2aa8
helper script option
mstibbard Sep 2, 2024
9abcf13
admin option. refactor setting env vars
mstibbard Sep 2, 2024
6f8b748
update next steps
mstibbard Sep 2, 2024
7c2fcf2
demo option
mstibbard Sep 2, 2024
45ef58a
Apply suggestions from benmccann and manuel3108
mstibbard Sep 3, 2024
cb6c8bb
actioning a missed suggestion from benmccann
mstibbard Sep 3, 2024
cf3d467
remove baas category
mstibbard Sep 3, 2024
9e818fa
add packageManager to nextSteps data object
mstibbard Sep 3, 2024
ab81979
caps reverted somehow
mstibbard Sep 3, 2024
712f07d
add script execution step between packages and files steps
mstibbard Sep 4, 2024
2a8d39f
update config.toml and email template. improve demo
mstibbard Sep 4, 2024
6f4145c
adder.scripts optional
mstibbard Sep 4, 2024
3da363e
more experimenting
mstibbard Sep 4, 2024
9e47a80
revert script execution experiment
mstibbard Sep 4, 2024
fa1d289
revert formatting change
mstibbard Sep 4, 2024
9ed4603
better script experiment
mstibbard Sep 5, 2024
d117d1b
multiselect auth option: basic, magic link, oauth. better nextSteps
mstibbard Sep 5, 2024
e24e508
fix next steps indenting
mstibbard Sep 5, 2024
14a76e3
use execute commands instead of installing deps
mstibbard Sep 6, 2024
6f47fd8
made conditionals names consistent
mstibbard Sep 6, 2024
19c8afe
add password reset for basic auth. fix supabase cli vscode setting gen
mstibbard Sep 6, 2024
a3bf9e7
add local google oauth. move oauth server-side
mstibbard Sep 7, 2024
41b431b
add changeset
mstibbard Sep 12, 2024
bcf7b1b
fix u 8000 nused imports
mstibbard Sep 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix next steps indenting
  • Loading branch information
mstibbard committed Sep 5, 2024
commit e24e50853a73a5094e22e54e4fc8e713e81ab9ac
14 changes: 7 additions & 7 deletions adders/supabase/config/adder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -788,17 +788,17 @@ Start your project with a Postgres database, Authentication, instant APIs, Edge

if (isCli) {
steps.push(`Start local Supabase services: ${colors.yellow(`${command} supabase start`)}`);
steps.push(`
steps.push(dedent`
Changes to local Supabase config require a restart of the local services: ${colors.yellow(`${command} supabase stop`)} and ${colors.yellow(`${command} supabase start`)}`);
}

if (isHelpers) {
steps.push(`
steps.push(dedent`
Check out ${colors.green(`package.json`)} for the helper scripts. Remember to generate your database types`);
}

if (isBasic || isMagicLink || isOAuth) {
steps.push(`
steps.push(dedent`
Update authGuard in ${colors.green(`./src/hooks.server.js/ts`)} with your protected routes`);
}

Expand All @@ -811,13 +811,13 @@ Start your project with a Postgres database, Authentication, instant APIs, Edge
}

if (isOAuth) {
steps.push(`
'Login with Google' OAuth by default. Update ${colors.green(`src/routes/auth/+page.server.js/ts`)} with chosen provider(s)`);
steps.push(`
steps.push(dedent`
OAuth added 'Login with Google' by default. Update ${colors.green(`src/routes/auth/+page.server.js/ts`)} with chosen provider(s)`);
steps.push(dedent`
There are additional steps required for each OAuth provider: https://supabase.com/docs/guides/auth/social-login`);

if (isCli) {
steps.push(`
steps.push(dedent`
Update ${colors.green(`./supabase/config.toml`)} with your chosen OAuth provider(s) details. Look for ${colors.blue(`[auth.external.apple]`)} as an example`);
}
}
Expand Down
0