Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

feat(nuxi): display nuxt and nitro versions for dev and build commands #7118

Merged
merged 15 commits into from
Sep 1, 2022

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Aug 31, 2022

πŸ”— Linked issue

Resolves nuxt/nuxt#14703

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

With this PR, we show (installed) versions of Nuxt (it can be different than Nuxi!) and Nitro.

image

Remarks: I used _require instead of getPkg or inference from package.json to ensure we show actually installed versions and use native resolver. This also reduces CLI entry dependencies. Later we should refactor this.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@netlify
Copy link

netlify bot commented Aug 31, 2022

βœ… Deploy Preview for nuxt3-docs canceled.

Name Link
πŸ”¨ Latest commit cb4c16b
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/63107a6f32dd7600091a4c90

@pi0 pi0 marked this pull request as ready for review August 31, 2022 20:16
@pi0 pi0 requested review from danielroe, antfu and atinux August 31, 2022 20:23
@pi0
Copy link
Member Author

pi0 commented Sep 1, 2022

Update: Simplified to only show Nuxt and Nitro versions as original proposal. It was leading to verbosity of showing all sub deps and more complex code. We can always revise to add more info when needed.

@pi0 pi0 changed the title feat(nuxi): show versions in dev and build commands feat(nuxi): display nuxt and nitro versions for dev and build commands Sep 1, 2022
@pi0 pi0 merged commit 2d30a1d into main Sep 1, 2022
@pi0 pi0 deleted the feat/cli-versions branch September 1, 2022 09:34
This was referenced Sep 1, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show nitro version in nuxi info and cli banner
3 participants