small create-astro wording changes (#3831)
This commit is contained in:
parent
0e01e0bb58
commit
4fb08502a9
3 changed files with 15 additions and 10 deletions
5
.changeset/wild-pens-hunt.md
Normal file
5
.changeset/wild-pens-hunt.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'create-astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Small wording updates
|
|
@ -2,7 +2,7 @@
|
||||||
import degit from 'degit';
|
import degit from 'degit';
|
||||||
import { execa, execaCommand } from 'execa';
|
import { execa, execaCommand } from 'execa';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import { bgCyan, black, bold, cyan, dim, gray, green, red, yellow } from 'kleur/colors';
|
import { bgCyan, black, bold, cyan, dim, gray, green, red, reset, yellow } from 'kleur/colors';
|
||||||
import ora from 'ora';
|
import ora from 'ora';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import prompts from 'prompts';
|
import prompts from 'prompts';
|
||||||
|
@ -181,7 +181,7 @@ export async function main() {
|
||||||
const installResponse = await prompts({
|
const installResponse = await prompts({
|
||||||
type: 'confirm',
|
type: 'confirm',
|
||||||
name: 'install',
|
name: 'install',
|
||||||
message: `Would you like us to run "${pkgManager} install?"`,
|
message: `Would you like to install ${pkgManager} dependencies? ${reset(dim('(recommended)'))}`,
|
||||||
initial: true,
|
initial: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -203,13 +203,13 @@ export async function main() {
|
||||||
installSpinner.text = green('Packages installed!');
|
installSpinner.text = green('Packages installed!');
|
||||||
installSpinner.succeed();
|
installSpinner.succeed();
|
||||||
} else {
|
} else {
|
||||||
ora().info(dim(`No problem! You can install dependencies yourself after setup.`));
|
ora().info(dim(`No problem! Remember to install dependencies after setup.`));
|
||||||
}
|
}
|
||||||
|
|
||||||
const gitResponse = await prompts({
|
const gitResponse = await prompts({
|
||||||
type: 'confirm',
|
type: 'confirm',
|
||||||
name: 'git',
|
name: 'git',
|
||||||
message: `Initialize a new git repository? ${dim('This can be useful to track changes.')}`,
|
message: `Would you like to initialize a new git repository? ${reset(dim('(optional)'))}`,
|
||||||
initial: true,
|
initial: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,22 +1,22 @@
|
||||||
export const TEMPLATES = [
|
export const TEMPLATES = [
|
||||||
{
|
{
|
||||||
title: 'Just the basics',
|
title: 'Just the basics (recommended)',
|
||||||
value: 'basics',
|
value: 'basics',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Blog',
|
title: 'Blog',
|
||||||
value: 'blog',
|
value: 'blog',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: 'Documentation',
|
|
||||||
value: 'docs',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: 'Portfolio',
|
title: 'Portfolio',
|
||||||
value: 'portfolio',
|
value: 'portfolio',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Completely empty',
|
title: 'Documentation Site',
|
||||||
|
value: 'docs',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Empty project',
|
||||||
value: 'minimal',
|
value: 'minimal',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue