Skip to content

Commit

Permalink
feat(nuxt): add dev:drop:push:seed command to postgres driver
Browse files Browse the repository at this point in the history
  • Loading branch information
productdevbook committed Feb 19, 2024
1 parent 0edcd9a commit 346176f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/nuxt/playground/server/graphqlYoga-test/schema.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare module '#test/graphqlYoga/generated/schema' {
const schema: string
}
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ export default {
'dev:migration': `pergel module -s=dev:migration -p=${projectName} -m=${moduleName}`,
'dev:drop': `pergel module -s=dev:drop -p=${projectName} -m=${moduleName}`,
'dev:seed': `pergel module -s=dev:seed -p=${projectName} -m=${moduleName}`,
'dev:drop:push:seed': `pnpm pergel module -s=dev:drop -p=${projectName} -m=${moduleName} && pergel module -s=push -p=${projectName} -m=${moduleName} && pergel module -s=dev:seed -p=${projectName} -m=${moduleName}`,
},
}),
nuxt,
Expand Down
3 changes: 2 additions & 1 deletion themes/pergel-auth/pergel/README.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@
"studio": "pergel module -s=studio -p=changeName -m=drizzle",
"dev:migration": "pergel module -s=dev:migration -p=changeName -m=drizzle",
"dev:drop": "pergel module -s=dev:drop -p=changeName -m=drizzle",
"dev:seed": "pergel module -s=dev:seed -p=changeName -m=drizzle"
"dev:seed": "pergel module -s=dev:seed -p=changeName -m=drizzle",
"dev:drop:push:seed": "pnpm pergel module -s=dev:drop -p=changeName -m=drizzle && pergel module -s=push -p=changeName -m=drizzle && pergel module -s=dev:seed -p=changeName -m=drizzle"
},
"env": {
"NUXT_CHANGE_NAME_DRIZZLE_URL": "postgres://postgres:postgres@localhost:5432/postgres",
Expand Down

0 comments on commit 346176f

Please sign in to comment.