mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
fix(nuxi): improve nuxi init
output (#4612)
* Prevent redundant cd statement * some more improvements Co-authored-by: pooya parsa <pyapar@gmail.com>
This commit is contained in:
parent
eb903bd66e
commit
22954d08ca
@ -52,13 +52,17 @@ export default defineNuxtCommand({
|
||||
throw e
|
||||
}
|
||||
|
||||
// Show neet steps
|
||||
console.log(`\n 🎉 Another ${superb.random()} Nuxt project just made! Next steps:` + [
|
||||
'',
|
||||
`📁 \`cd ${rpath(dstDir)}\``,
|
||||
// Show next steps
|
||||
const relativeDist = rpath(dstDir)
|
||||
const nextSteps = [
|
||||
relativeDist.length > 1 && `📁 \`cd ${relativeDist}\``,
|
||||
'💿 Install dependencies with `npm install` or `yarn install` or `pnpm install --shamefully-hoist`',
|
||||
'🚀 Start development server with `npm run dev` or `yarn dev` or `pnpm run dev`',
|
||||
''
|
||||
].join('\n\n '))
|
||||
'🚀 Start development server with `npm run dev` or `yarn dev` or `pnpm run dev`'
|
||||
].filter(Boolean)
|
||||
|
||||
consola.log(`\n ✨ Your ${superb.random()} Nuxt project is just created! Next steps:\n`)
|
||||
for (const step of nextSteps) {
|
||||
consola.log(` ${step}\n`)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user