-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(init): add --nightly
flag
#650
base: main
Are you sure you want to change the base?
Conversation
Bundle StatsHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
Changeset
View detailed bundle breakdownAdded
Removed
Bigger
Smaller No assets were smaller Unchanged
|
Open in Stackblitz β’ nuxt-cli-playground
commit: |
@@ -96,6 +100,22 @@ export default defineCommand({ | |||
process.exit(1) | |||
} | |||
|
|||
if (ctx.args.nightly) { | |||
const nightlyNuxtVersion = 'npm:nuxt-nightly@latest' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about fetching the latest version from npm? latest
is often poorly updated (i.e. not updated) by package managers
also, there are currently two nightly channels - the 3x
and latest
(4x) ones. would it be worth using --channel
for this purpose, and maybe also --nightly
which defaults to the latest 3x
tag?
π Linked issue
resolves #593
β Type of change
π Description
This adds a
--nightly
flag toinit
command, which allows scaffolding the project with the latest Nuxt version from the nightly release channel (rather than from stable).