create-tsreact
Version:
TS/React Scaffolder using esbuild compiler/bundler
24 lines (20 loc) • 636 B
text/typescript
import chalk from "chalk";
export function usage() {
console.log("\n");
console.log(chalk.redBright("Please provide appname\n"));
console.log(chalk.yellowBright("Usage:"));
console.log(chalk.yellowBright("\tnpm create tsreact <appname>"));
console.log(chalk.yellowBright("\tnpm init tsreact <appname>"));
console.log(chalk.yellowBright("\tnpx create-tsreact <appname>"));
console.log("\n");
}
export function steps(name: string) {
const msg =
chalk.yellowBright(`\nFurther steps:`) +
chalk.greenBright(`
cd ${name}
npm install
npm run dev
`);
console.log(msg);
}