feat(create-mcfly): add reminder to install dependencies

This commit is contained in:
Ayo 2023-10-22 20:41:49 +02:00
parent e3b42101a9
commit 0c0d4e84a0
3 changed files with 18 additions and 7 deletions

2
package-lock.json generated
View file

@ -3975,7 +3975,7 @@
} }
}, },
"packages/create-mcfly": { "packages/create-mcfly": {
"version": "0.2.4", "version": "0.2.5",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"consola": "^3.2.3", "consola": "^3.2.3",

View file

@ -64,11 +64,22 @@ async function create() {
} }
} }
consola.box(`🎉 Your new McFly app is now ready: ./${directory}\n let nextActions = [`Go to your project by running 'cd ./${directory}'`];
Next actions:
1. Go to your project by running 'cd ./${directory}' if (!installDeps) {
2. Run 'npm start' to start the dev server nextActions.push("Install the dependencies with: 'npm install'");
3. Join us at https://ayco.io/gh/McFly`); }
nextActions = nextActions.concat([
"Run 'npm start' to start the dev server",
"Join us at https://ayco.io/gh/McFly",
]);
const result = `🎉 Your new McFly app is now ready: ./${directory}\n\nNext actions: ${nextActions
.map((action, index) => `\n${++index}. ${action}`)
.join("")}`;
consola.box(result);
} }
return 1; return 1;

View file

@ -1,6 +1,6 @@
{ {
"name": "create-mcfly", "name": "create-mcfly",
"version": "0.2.4", "version": "0.2.5",
"bin": { "bin": {
"create-mcfly": "./index.js" "create-mcfly": "./index.js"
}, },