Skip to content

Commit 092da70

Browse files
committed
minor aesthetic changes to cli
1 parent 28093f9 commit 092da70

File tree

5 files changed

+18
-4
lines changed

5 files changed

+18
-4
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"commander": "^11.0.0",
3232
"consola": "^3.2.3",
3333
"execa": "^8.0.1",
34+
"figlet": "^1.7.0",
3435
"ora": "^8.0.1",
3536
"pluralize": "^8.0.0",
3637
"strip-json-comments": "^5.0.1"

pnpm-lock.yaml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/commands/add/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ export const addPackage = async (options?: InitOptions) => {
125125
const config = readConfigFile();
126126
const { shared } = getFilePaths();
127127

128+
console.log("\n");
128129
const promptResponse = await promptUser(options);
129130
const start = Date.now();
130131
spinner.start();

src/commands/init/index.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import { addPackage } from "../add/index.js";
66
import { existsSync, readFileSync } from "fs";
77
import path from "path";
88
import { checkForPackageManager } from "./utils.js";
9+
import figlet from "figlet";
10+
import chalk from "chalk";
911

1012
export async function initProject(options?: InitOptions) {
1113
const nextjsProjectExists = existsSync("package.json");
@@ -22,6 +24,9 @@ export async function initProject(options?: InitOptions) {
2224
process.exit(0);
2325
}
2426

27+
console.clear();
28+
console.log("\n");
29+
console.log(chalk(figlet.textSync("Kirimase", { font: "ANSI Shadow" })));
2530
const srcExists =
2631
usingAppDirWithSrc ??
2732
options.hasSrcFolder ??
@@ -71,7 +76,7 @@ export async function initProject(options?: InitOptions) {
7176
t3: false,
7277
alias,
7378
});
74-
consola.success("Kirimase initialized!");
75-
consola.info("You can now add packages.");
79+
// consola.success("Kirimase initialized!");
80+
// consola.info("You can now add packages.");
7681
addPackage(options);
7782
}

src/utils.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ export async function installPackages(
7777

7878
try {
7979
spinner.stop();
80-
console.log("\n");
8180
consola.info("Installing Dependencies");
8281
if (packages.regular) {
8382
await runCommand(
@@ -178,7 +177,6 @@ export async function installShadcnUIComponents(
178177
// );
179178
try {
180179
spinner.stop();
181-
console.log("\n");
182180
consola.info("Installing ShadcnUI Components");
183181
await execa(pmInstallCommand[preferredPackageManager], installArgs, {
184182
stdio: "inherit",

0 commit comments

Comments
 (0)