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": {
|
"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",
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue