Skip to content

Commit

Permalink
chore: update post install message (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
aliemir authored Nov 13, 2023
1 parent 00c5a8d commit 0051502
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 24 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "superplate-cli",
"version": "1.17.9",
"version": "1.18.0",
"description": "The frontend boilerplate with superpowers",
"license": "MIT",
"repository": {
Expand Down
30 changes: 7 additions & 23 deletions src/Helper/tips/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,38 +18,22 @@ const postInstall: PostInstallFn = ({ name, dir, pm }) => {
console.log(
`${chalk.green.bold("Success!")} Created ${chalk.greenBright.bold(
name,
)} at ${chalk.bold(dir)}`,
)} at ${chalk.bold(dir)} 🚀`,
);
console.log("");
console.log("You can run several commands:");
console.log("");

console.log("Start developing by:\n");
console.log(`${indent()}\u203a ${chalk.greenBright("cd")} ${dir}`);
console.log(
`${indent()}${chalk.blueBright(
`${indent()}\u203a ${chalk.greenBright(
pm === "yarn" || pm === "pnpm" ? `${pm} dev` : "npm run dev",
)}`,
);
console.log(`${indent(2)}Starts the development server.`);
console.log("");
console.log(
`${indent()}${chalk.blueBright(
pm === "yarn" || pm === "pnpm" ? `${pm} build` : "npm run build",
)}`,
);
console.log(`${indent(2)}Bundles the app for production.`);
console.log("");

console.log(
`${indent()}${chalk.blueBright(
pm === "yarn" || pm === "pnpm" ? `${pm} start` : "npm run start",
)}`,
);
console.log(`${indent(2)}Starts the production server.`);
console.log("");
console.log("Start developing by typing:\n");
console.log(`${indent()}${chalk.blueBright("cd")} ${name}`);
console.log(
`${indent()}${chalk.blueBright(
pm === "yarn" || pm === "pnpm" ? `${pm} dev` : "npm run dev",
`${indent()}\u203a Join us at ${chalk.cyanBright(
"https://discord.gg/refine",
)}`,
);
console.log("");
Expand Down

0 comments on commit 0051502

Please sign in to comment.