create-quickstart-app
Version:
CLI tool to generate Next.js projects with various configurations
21 lines (19 loc) • 841 B
text/typescript
import chalk from "chalk";
export const logger = {
info: (message: string) => console.log(chalk.blue(message)),
success: (message: string) => console.log(chalk.green(`✓ ${message}`)),
error: (message: string, error?: any) => {
console.error(chalk.red(`✗ ${message}`));
if (error) console.error(chalk.red(error));
},
warn: (message: string) => console.log(chalk.yellow(`! ${message}`)),
title: (message: string) =>
console.log(chalk.blue.bold.bgMagentaBright(message)),
nextSteps: (projectName: string) => {
console.log(chalk.green.bold("\n✨ Project setup completed successfully!"));
console.log(chalk.cyan("\nNext steps:"));
console.log(chalk.white(` cd ${projectName}`));
console.log(chalk.white(" npm install"));
console.log(chalk.white(" npm run dev"));
},
};