diff --git a/.changeset/funny-ghosts-explain.md b/.changeset/funny-ghosts-explain.md new file mode 100644 index 00000000..7a9939e7 --- /dev/null +++ b/.changeset/funny-ghosts-explain.md @@ -0,0 +1,5 @@ +--- +'create-expo-stack': patch +--- + +add option to run setup-ci after project is created diff --git a/cli/src/utilities/printOutput.ts b/cli/src/utilities/printOutput.ts index 2fcd53ad..be5fb27c 100644 --- a/cli/src/utilities/printOutput.ts +++ b/cli/src/utilities/printOutput.ts @@ -6,6 +6,7 @@ import { getPackageManager, getPackageManagerRunnerX } from './getPackageManager import { easConfigure } from './runEasConfigure'; import { ONLY_ERRORS, runSystemCommand } from './systemCommand'; import { generateNWUI } from './generateNWUI'; +import { runSetupCI } from './runSetupCI'; export async function printOutput( cliResults: CliResults, @@ -128,6 +129,10 @@ export async function printOutput( await easConfigure(cliResults, packageManager, toolbox); } + if (process.env.RUN_SETUP_CI === 'true') { + await runSetupCI(toolbox, cliResults); + } + const printVexoSteps = () => { info(``); highlight('Head over to https://vexo.co to create a new Vexo project.'); diff --git a/cli/src/utilities/runCLI.ts b/cli/src/utilities/runCLI.ts index 6a7c6553..4d387ea5 100644 --- a/cli/src/utilities/runCLI.ts +++ b/cli/src/utilities/runCLI.ts @@ -14,6 +14,7 @@ import { } from '../types'; import { loadConfigs, saveConfig } from './configStorage'; import { getDefaultPackageManagerVersion } from './getPackageManager'; +import { isProjectCompatibleWithSetupCI } from './runSetupCI'; // based on eas default bun version https://docs.expo.dev/build-reference/infrastructure/#ios-server-images const minBunVersion = '1.1.13'; // or greater @@ -388,5 +389,25 @@ export async function runCLI(toolbox: Toolbox, projectName: string): Promise