feat(cli): add polar as better-auth plugin (#578)

This commit is contained in:
Aman Varshney
2025-09-16 17:53:44 +05:30
committed by GitHub
parent 3f22373cc3
commit ba3d62b6b9
77 changed files with 1221 additions and 308 deletions

View File

@@ -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);