Skip to content

Commit

Permalink
feat: consistent text color in terminal (#623)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-ehrlich authored Oct 17, 2022
1 parent 1cc6735 commit cf99211
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/four-files-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-t3-app": minor
---

consistent cli text color
3 changes: 2 additions & 1 deletion cli/src/helpers/installDependencies.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import chalk from "chalk";
import { execa } from "execa";
import ora from "ora";
import { getUserPkgManager } from "~/utils/getUserPkgManager.js";
Expand All @@ -10,5 +11,5 @@ export const installDependencies = async (projectDir: string) => {

await execa(pkgManager, ["install"], { cwd: projectDir });

spinner.succeed("Successfully installed dependencies!\n");
spinner.succeed(chalk.green("Successfully installed dependencies!\n"));
};
4 changes: 3 additions & 1 deletion cli/src/helpers/scaffoldProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,7 @@ export const scaffoldProject = async ({
const scaffoldedName =
projectName === "." ? "App" : chalk.cyan.bold(projectName);

spinner.succeed(`${scaffoldedName} scaffolded successfully!\n`);
spinner.succeed(
`${scaffoldedName} ${chalk.green("scaffolded successfully!")}\n`,
);
};

1 comment on commit cf99211

@vercel
Copy link

@vercel vercel bot commented on cf99211 Oct 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.