wordpressify
Version:
Automate your WordPress development workflow.
63 lines (57 loc) ⢠1.89 kB
JavaScript
import { dim, red, green, yellow, cyan, gray, bgGreen, bgYellow, bgWhite } from "./colors.js";
const printNextSteps = () => {
console.log("\n\nā
", bgGreen(" All done! Happy coding. \n"));
console.log(
"Installer has added WordPressify files to the current directory. ",
"\nInside this directory, you can run this command:",
);
// Scripts
console.log(
"\nš ",
" Type",
bgWhite(" npm run dev "),
"\n\n",
" Use to compile and run your files.",
"\n",
" Watches for any changes and reports back any errors in your code.",
);
// Support
console.log("\nā ", bgYellow(" Support WordPressify \n"));
console.log("Like WordPressify? Check out our other free and open source repositories: \n");
console.log(
` ${yellow("Cherry ā ")} https://cherry.design/?ref=wordpressify-cli`,
"\n",
` ${gray("⢠A design system to build the web.")}`,
"\n",
` ${cyan("Doccupine ā ")} https://doccupine.com/?ref=wordpressify-cli`,
"\n",
` ${gray("⢠Beautiful documentation websites from MDX.")}`,
"\n",
` ${green("Powered by Riangle ā ")} https://riangle.com/?ref=wordpressify-cli`,
"\n",
"\n",
` ${red("Thank you for using WordPressify ā ")} https://wordpressify.co`,
);
// Get started
console.log("\n\nšÆ ", bgGreen(" Get Started ā \n"));
console.log(" You can start: \n");
console.log(
` ${dim("1.")} Rename: ${green(".env_example")} to ${green(".env")}`,
);
console.log(
` ${dim("Set your new theme directory name:")} ${green(
"THEME_NAME=",
)}${red("wordpressify")} `,
"\n",
);
console.log(
` ${dim("2.")} Run: ${green("npm")} run start ${dim(
"or",
)} ${green("docker")} compose up`,
"\n",
` ${dim("Make sure")} ${red("Docker")} ${green("is running")}`,
"\n\n",
);
process.exit();
};
export { printNextSteps };