feat(create-mcfly): add reminder to install dependencies
This commit is contained in:
parent
e3b42101a9
commit
0c0d4e84a0
3 changed files with 18 additions and 7 deletions
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -3975,7 +3975,7 @@
|
|||
}
|
||||
},
|
||||
"packages/create-mcfly": {
|
||||
"version": "0.2.4",
|
||||
"version": "0.2.5",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"consola": "^3.2.3",
|
||||
|
|
|
@ -64,11 +64,22 @@ async function create() {
|
|||
}
|
||||
}
|
||||
|
||||
consola.box(`🎉 Your new McFly app is now ready: ./${directory}\n
|
||||
Next actions:
|
||||
1. Go to your project by running 'cd ./${directory}'
|
||||
2. Run 'npm start' to start the dev server
|
||||
3. Join us at https://ayco.io/gh/McFly`);
|
||||
let nextActions = [`Go to your project by running 'cd ./${directory}'`];
|
||||
|
||||
if (!installDeps) {
|
||||
nextActions.push("Install the dependencies with: 'npm install'");
|
||||
}
|
||||
|
||||
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;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "create-mcfly",
|
||||
"version": "0.2.4",
|
||||
"version": "0.2.5",
|
||||
"bin": {
|
||||
"create-mcfly": "./index.js"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue