mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 15:42:09 +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
|
throw e
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show neet steps
|
// Show next steps
|
||||||
console.log(`\n 🎉 Another ${superb.random()} Nuxt project just made! Next steps:` + [
|
const relativeDist = rpath(dstDir)
|
||||||
'',
|
const nextSteps = [
|
||||||
`📁 \`cd ${rpath(dstDir)}\``,
|
relativeDist.length > 1 && `📁 \`cd ${relativeDist}\``,
|
||||||
'💿 Install dependencies with `npm install` or `yarn install` or `pnpm install --shamefully-hoist`',
|
'💿 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`',
|
'🚀 Start development server with `npm run dev` or `yarn dev` or `pnpm run dev`'
|
||||||
''
|
].filter(Boolean)
|
||||||
].join('\n\n '))
|
|
||||||
|
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