Skip to content

Commit

Permalink
feat(core): show CI prompt only on allPrompts
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Mar 30, 2022
1 parent f9ee810 commit 500c227
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions packages/create-nx-workspace/bin/create-nx-workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -662,20 +662,23 @@ async function determineCI(
return parsedArgs.ci;
}

return enquirer
.prompt([
{
name: 'CI',
message: `Autogenerate CI workflow file (multi-select)?`,
type: 'multiselect',
choices: [
{ name: 'GitHub Actions', value: 'github' },
{ name: 'CircleCI', value: 'circleci' },
{ name: 'Azure', value: 'azure' },
],
},
])
.then((a: { CI: string[] }) => a.CI);
if (parsedArgs.allPrompts) {
return enquirer
.prompt([
{
name: 'CI',
message: `Autogenerate CI workflow file (multi-select)?`,
type: 'multiselect',
choices: [
{ name: 'GitHub Actions', value: 'github' },
{ name: 'CircleCI', value: 'circleci' },
{ name: 'Azure', value: 'azure' },
],
},
])
.then((a: { CI: string[] }) => a.CI);
}
return [];
}

async function createSandbox(packageManager: string) {
Expand Down

0 comments on commit 500c227

Please sign in to comment.