[ci] format
This commit is contained in:
parent
624595e353
commit
f27570d753
1 changed files with 82 additions and 70 deletions
|
@ -213,7 +213,10 @@ export async function main() {
|
|||
templateSpinner.text = green('Template copied!');
|
||||
templateSpinner.succeed();
|
||||
|
||||
const install = args.y ? true : (await prompts(
|
||||
const install = args.y
|
||||
? true
|
||||
: (
|
||||
await prompts(
|
||||
{
|
||||
type: 'confirm',
|
||||
name: 'install',
|
||||
|
@ -232,7 +235,8 @@ export async function main() {
|
|||
process.exit(1);
|
||||
},
|
||||
}
|
||||
)).install;
|
||||
)
|
||||
).install;
|
||||
|
||||
if (args.dryRun) {
|
||||
ora().info(dim(`--dry-run enabled, skipping.`));
|
||||
|
@ -255,11 +259,16 @@ export async function main() {
|
|||
await info('No problem!', 'Remember to install dependencies after setup.');
|
||||
}
|
||||
|
||||
const gitResponse = args.y ? true : (await prompts(
|
||||
const gitResponse = args.y
|
||||
? true
|
||||
: (
|
||||
await prompts(
|
||||
{
|
||||
type: 'confirm',
|
||||
name: 'git',
|
||||
message: `Would you like to initialize a new git repository? ${reset(dim('(optional)'))}`,
|
||||
message: `Would you like to initialize a new git repository? ${reset(
|
||||
dim('(optional)')
|
||||
)}`,
|
||||
initial: true,
|
||||
},
|
||||
{
|
||||
|
@ -270,7 +279,8 @@ export async function main() {
|
|||
process.exit(1);
|
||||
},
|
||||
}
|
||||
)).git;
|
||||
)
|
||||
).git;
|
||||
|
||||
if (args.dryRun) {
|
||||
ora().info(dim(`--dry-run enabled, skipping.`));
|
||||
|
@ -285,13 +295,14 @@ export async function main() {
|
|||
}
|
||||
|
||||
if (args.y && !args.typescript) {
|
||||
ora().warn(
|
||||
dim('--typescript <choice> missing. Defaulting to "strict"')
|
||||
);
|
||||
ora().warn(dim('--typescript <choice> missing. Defaulting to "strict"'));
|
||||
args.typescript = 'strict';
|
||||
}
|
||||
|
||||
const tsResponse = args.typescript || (await prompts(
|
||||
const tsResponse =
|
||||
args.typescript ||
|
||||
(
|
||||
await prompts(
|
||||
{
|
||||
type: 'select',
|
||||
name: 'typescript',
|
||||
|
@ -313,7 +324,8 @@ export async function main() {
|
|||
process.exit(1);
|
||||
},
|
||||
}
|
||||
)).typescript;
|
||||
)
|
||||
).typescript;
|
||||
|
||||
if (tsResponse === 'unsure') {
|
||||
await typescriptByDefault();
|
||||
|
|
Loading…
Reference in a new issue