Skip to content

Commit

Permalink
minor aesthetic changes to cli
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoalbanese committed Jan 23, 2024
1 parent 28093f9 commit 092da70
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -31,6 +31,7 @@
"commander": "^11.0.0",
"consola": "^3.2.3",
"execa": "^8.0.1",
"figlet": "^1.7.0",
"ora": "^8.0.1",
"pluralize": "^8.0.0",
"strip-json-comments": "^5.0.1"
Expand Down
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/commands/add/index.ts
Expand Up @@ -125,6 +125,7 @@ export const addPackage = async (options?: InitOptions) => {
const config = readConfigFile();
const { shared } = getFilePaths();

console.log("\n");
const promptResponse = await promptUser(options);
const start = Date.now();
spinner.start();
Expand Down
9 changes: 7 additions & 2 deletions src/commands/init/index.ts
Expand Up @@ -6,6 +6,8 @@ import { addPackage } from "../add/index.js";
import { existsSync, readFileSync } from "fs";
import path from "path";
import { checkForPackageManager } from "./utils.js";
import figlet from "figlet";
import chalk from "chalk";

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

console.clear();
console.log("\n");
console.log(chalk(figlet.textSync("Kirimase", { font: "ANSI Shadow" })));
const srcExists =
usingAppDirWithSrc ??
options.hasSrcFolder ??
Expand Down Expand Up @@ -71,7 +76,7 @@ export async function initProject(options?: InitOptions) {
t3: false,
alias,
});
consola.success("Kirimase initialized!");
consola.info("You can now add packages.");
// consola.success("Kirimase initialized!");
// consola.info("You can now add packages.");
addPackage(options);
}
2 changes: 0 additions & 2 deletions src/utils.ts
Expand Up @@ -77,7 +77,6 @@ export async function installPackages(

try {
spinner.stop();
console.log("\n");
consola.info("Installing Dependencies");
if (packages.regular) {
await runCommand(
Expand Down Expand Up @@ -178,7 +177,6 @@ export async function installShadcnUIComponents(
// );
try {
spinner.stop();
console.log("\n");
consola.info("Installing ShadcnUI Components");
await execa(pmInstallCommand[preferredPackageManager], installArgs, {
stdio: "inherit",
Expand Down

0 comments on commit 092da70

Please sign in to comment.