diff --git a/package-lock.json b/package-lock.json index 8d01097..a1bd1c2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3975,7 +3975,7 @@ } }, "packages/create-mcfly": { - "version": "0.2.4", + "version": "0.2.5", "license": "MIT", "dependencies": { "consola": "^3.2.3", diff --git a/packages/create-mcfly/index.js b/packages/create-mcfly/index.js index f7a7396..50474ea 100755 --- a/packages/create-mcfly/index.js +++ b/packages/create-mcfly/index.js @@ -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; diff --git a/packages/create-mcfly/package.json b/packages/create-mcfly/package.json index 94ca850..f74b9e1 100644 --- a/packages/create-mcfly/package.json +++ b/packages/create-mcfly/package.json @@ -1,6 +1,6 @@ { "name": "create-mcfly", - "version": "0.2.4", + "version": "0.2.5", "bin": { "create-mcfly": "./index.js" },