Skip to content

Commit

Permalink
small create-astro wording changes (#3831)
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott committed Jul 7, 2022
1 parent 0e01e0b commit 4fb0850
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .changeset/wild-pens-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-astro': patch
---

Small wording updates
8 changes: 4 additions & 4 deletions packages/create-astro/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import degit from 'degit';
import { execa, execaCommand } from 'execa';
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 path from 'path';
import prompts from 'prompts';
Expand Down Expand Up @@ -181,7 +181,7 @@ export async function main() {
const installResponse = await prompts({
type: 'confirm',
name: 'install',
message: `Would you like us to run "${pkgManager} install?"`,
message: `Would you like to install ${pkgManager} dependencies? ${reset(dim('(recommended)'))}`,
initial: true,
});

Expand All @@ -203,13 +203,13 @@ export async function main() {
installSpinner.text = green('Packages installed!');
installSpinner.succeed();
} 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({
type: 'confirm',
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,
});

Expand Down
12 changes: 6 additions & 6 deletions packages/create-astro/src/templates.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
export const TEMPLATES = [
{
title: 'Just the basics',
title: 'Just the basics (recommended)',
value: 'basics',
},
{
title: 'Blog',
value: 'blog',
},
{
title: 'Documentation',
value: 'docs',
},
{
title: 'Portfolio',
value: 'portfolio',
},
{
title: 'Completely empty',
title: 'Documentation Site',
value: 'docs',
},
{
title: 'Empty project',
value: 'minimal',
},
];

0 comments on commit 4fb0850

Please sign in to comment.