mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
feat(cli): add polar as better-auth plugin (#578)
This commit is contained in:
@@ -17,6 +17,7 @@ import { createReadme } from "./create-readme";
|
||||
import { setupEnvironmentVariables } from "./env-setup";
|
||||
import { initializeGit } from "./git";
|
||||
import { installDependencies } from "./install-dependencies";
|
||||
import { setupPayments } from "./payments-setup";
|
||||
import { displayPostInstallInstructions } from "./post-installation";
|
||||
import { updatePackageConfigurations } from "./project-config";
|
||||
import {
|
||||
@@ -30,6 +31,7 @@ import {
|
||||
setupDockerComposeTemplates,
|
||||
setupExamplesTemplate,
|
||||
setupFrontendTemplates,
|
||||
setupPaymentsTemplate,
|
||||
} from "./template-manager";
|
||||
|
||||
export async function createProject(
|
||||
@@ -50,6 +52,9 @@ export async function createProject(
|
||||
await setupDockerComposeTemplates(projectDir, options);
|
||||
}
|
||||
await setupAuthTemplate(projectDir, options);
|
||||
if (options.payments && options.payments !== "none") {
|
||||
await setupPaymentsTemplate(projectDir, options);
|
||||
}
|
||||
if (options.examples.length > 0 && options.examples[0] !== "none") {
|
||||
await setupExamplesTemplate(projectDir, options);
|
||||
}
|
||||
@@ -76,6 +81,10 @@ export async function createProject(
|
||||
await setupAuth(options);
|
||||
}
|
||||
|
||||
if (options.payments && options.payments !== "none") {
|
||||
await setupPayments(options);
|
||||
}
|
||||
|
||||
await handleExtras(projectDir, options);
|
||||
|
||||
await setupEnvironmentVariables(options);
|
||||
|
||||
Reference in New Issue
Block a user