-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
antoine lanoe
committed
Apr 21, 2023
1 parent
85ccd3c
commit 8b48f51
Showing
9 changed files
with
102 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import chalk from "chalk"; | ||
|
||
export function introMessage() { | ||
console.log("", "\n", chalk.yellow.bold("ALRIGHT REACT APP")); | ||
console.log( | ||
"", | ||
"\n", | ||
"Alright, alright, alright! Let's create a new React app!", | ||
"\n" | ||
); | ||
} | ||
|
||
export function preInstallMessage(projectName, command) { | ||
console.log( | ||
"\n", | ||
`${chalk.yellow.bold("✓")}`, | ||
`${chalk.yellow.bold(projectName)}'s files and folders have been created`, | ||
"\n", | ||
`${chalk.green.bold("✓")}`, | ||
`${chalk.green.bold(command)} detected`, | ||
"\n" | ||
); | ||
} | ||
|
||
export function gitMessage() { | ||
console.log("\n", `${chalk.yellow.bold("✓")}`, `git Instantiated`); | ||
} | ||
|
||
const runLine = (name) => | ||
`now run ${chalk.bgYellow.black.bold(`cd ${name}`)} to have fun!`; | ||
|
||
export function postInstallMessage(projectName, command) { | ||
console.log( | ||
"", | ||
"\n", | ||
"Project", | ||
chalk.yellow.bold(projectName), | ||
"was successfully created!", | ||
"\n", | ||
"\n", | ||
runLine(projectName), | ||
"\n", | ||
"\n", | ||
chalk.yellow.bold("DEV"), | ||
`: ${command} dev`, | ||
"\n", | ||
chalk.yellow.bold("BUILD"), | ||
`: ${command} build`, | ||
"\n", | ||
chalk.yellow.bold("STORYBOOK"), | ||
`: ${command} storybook`, | ||
"\n", | ||
chalk.yellow.bold("TEST"), | ||
`: ${command} test`, | ||
"\n" | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters