Skip to content

feat(init): add --nightly flag - #650

Merged
danielroe merged 6 commits into
mainfrom
feat/init-nightly-flag
Aug 8, 2025
Merged

feat(init): add --nightly flag#650
danielroe merged 6 commits into
mainfrom
feat/init-nightly-flag

Conversation

@DamianGlowala

@DamianGlowalaDamianGlowala commented Jan 8, 2025

Copy link
Copy Markdown
Member

🔗 Linked issue

resolves#593

❓ 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)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

This adds a --nightly flag to init command, which allows scaffolding the project with the latest Nuxt version from the nightly release channel (rather than from stable).

@github-actions

Copy link
Copy Markdown
Contributor

Bundle Stats

Hey 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

Files countTotal bundle size% Changed
545.67 MB → 5.67 MB (+2 kB)+0.03%
Changeset
FileΔSize
node_modules/confbox/dist/shared/confbox.9388d834.mjs📈 +1.1 kB (+259.82%)433 B → 1.52 kB
src/commands/init.ts📈 +712 B (+17.29%)4.02 kB → 4.72 kB
node_modules/pkg-types/dist/index.mjs📈 +99 B (+4.28%)2.26 kB → 2.36 kB
node_modules/confbox/dist/shared/confbox.f9f03f05.mjs📈 +117 B (+1.17%)9.8 kB → 9.92 kB
View detailed bundle breakdown

Added

AssetFile Size% Changed
shared/nuxi.BWhUMa5L.mjs0 B → 286.39 kB (+286.39 kB)-
shared/nuxi.BL7MoJjH.mjs0 B → 152.13 kB (+152.13 kB)-
shared/nuxi.DCrGLsH1.mjs0 B → 8.04 kB (+8.04 kB)-
shared/nuxi.CbLqDZV8.mjs0 B → 804 B (+804 B)-

Removed

AssetFile Size% Changed
shared/nuxi.DfYkt6zx.mjs285.08 kB → 0 B (-285.08 kB)-100%
shared/nuxi.C2bb3PPD.mjs152.13 kB → 0 B (-152.13 kB)-100%
shared/nuxi.u_uB65ir.mjs8.04 kB → 0 B (-8.04 kB)-100%
shared/nuxi.CXkb2GZv.mjs804 B → 0 B (-804 B)-100%

Bigger

AssetFile Size% Changed
chunks/init.mjs804.28 kB → 804.98 kB (+712 B)+0.09%

Smaller

No assets were smaller

Unchanged

AssetFile Size% Changed
index.mjs188 B0%
chunks/prompt.mjs46.07 kB0%
chunks/add.mjs6.74 kB0%
chunks/analyze.mjs3.18 kB0%
chunks/build.mjs1.97 kB0%
chunks/cleanup.mjs471 B0%
chunks/dev-child.mjs1.75 kB0%
chunks/dev.mjs9.58 kB0%
chunks/devtools.mjs736 B0%
chunks/generate.mjs388 B0%
chunks/info.mjs4.39 kB0%
chunks/index.mjs274 B0%
chunks/prepare.mjs984 B0%
chunks/preview.mjs2.81 kB0%
chunks/test.mjs1.16 kB0%
chunks/typecheck.mjs1.58 kB0%
chunks/upgrade.mjs5.69 kB0%
chunks/satisfies.mjs116 B0%
chunks/main.mjs15.34 kB0%
chunks/index2.mjs909.09 kB0%
chunks/dev2.mjs68.95 kB0%
chunks/index3.mjs17.11 kB0%
chunks/xdg-open.mjs25.32 kB0%
chunks/node.mjs134.34 kB0%
chunks/index4.mjs1.24 kB0%
chunks/index5.mjs6.55 kB0%
chunks/index6.mjs70.29 kB0%
chunks/multipart-parser.mjs5.11 kB0%
chunks/add2.mjs10.6 kB0%
chunks/search.mjs42.99 kB0%
chunks/index7.mjs5.87 kB0%
chunks/index8.mjs882.9 kB0%
chunks/multipart-parser2.mjs4.58 kB0%
shared/nuxi.BVSKcfmX.mjs78.61 kB0%
shared/nuxi.20htGcgr.mjs294 B0%
shared/nuxi.DdI-vRyV.mjs1.54 kB0%
shared/nuxi.BSm0_9Hr.mjs107 B0%
shared/nuxi.jHNMu6i2.mjs1.34 kB0%
shared/nuxi.D1V6iren.mjs20.07 kB0%
shared/nuxi.DzNwkU8w.mjs17.69 kB0%
shared/nuxi.DbLwAM-O.mjs1.11 kB0%
shared/nuxi.BgpyaHY1.mjs14.64 kB0%
shared/nuxi.SEuYCQjN.mjs2.02 MB0%
shared/nuxi.BHLUJ6h2.mjs5.12 kB0%
shared/nuxi.E-ZsRS8r.mjs943 B0%
shared/nuxi.BgENdoyd.mjs1.76 kB0%
shared/nuxi.ChFrgAY-.mjs5.71 kB0%
shared/nuxi.BZI8rqcO.mjs6.13 kB0%
shared/nuxi.BPuj-7ta.mjs42.89 kB0%

@pkg-pr-new

pkg-pr-newBot commented Jan 8, 2025

Copy link
Copy Markdown

nuxt-cli-playground

npm i https://pkg.pr.new/create-nuxt@650
npm i https://pkg.pr.new/nuxi@650
npm i https://pkg.pr.new/@nuxt/cli@650

commit: 95f7b93

Comment threadsrc/commands/init.ts Outdated
@DamianGlowala
DamianGlowala marked this pull request as draft January 10, 2025 08:58
@DamianGlowala
DamianGlowala marked this pull request as ready for review April 7, 2025 16:53
@github-actions

github-actionsBot commented Apr 7, 2025

Copy link
Copy Markdown
Contributor

Bundle Stats — nuxt-cli size comparison

Hey 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

Files countTotal bundle size% Changed
3296.22 kB → 97.59 kB (+1.37 kB)+1.43%
Changeset
FileΔSize
home/runner/work/cli/cli/packages/nuxi/src/commands/init.ts📈 +1.37 kB (+12.94%)10.61 kB → 11.99 kB
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

AssetFile Size% Changed
chunks/init.mjs10.98 kB → 12.36 kB (+1.37 kB)+12.50%

Smaller

No assets were smaller

Unchanged

AssetFile Size% Changed
dev/index.mjs0 B0%
index.mjs236 B0%
chunks/index.mjs14.44 kB0%
chunks/analyze.mjs3.35 kB0%
chunks/cleanup.mjs471 B0%
chunks/dev-child.mjs815 B0%
chunks/dev.mjs11.2 kB0%
chunks/devtools.mjs763 B0%
chunks/generate.mjs492 B0%
chunks/build.mjs2.04 kB0%
chunks/info.mjs4.44 kB0%
chunks/index2.mjs273 B0%
chunks/add.mjs10.17 kB0%
chunks/search.mjs2.96 kB0%
chunks/prepare.mjs1.04 kB0%
chunks/preview.mjs3.58 kB0%
chunks/test.mjs1.16 kB0%
chunks/typecheck.mjs2.06 kB0%
chunks/upgrade.mjs6.28 kB0%
chunks/add2.mjs6.89 kB0%
shared/cli.B9AmABr3.mjs39 B0%
shared/cli.Dz2be-Ai.mjs792 B0%
shared/cli.BEUGgaW4.mjs294 B0%
shared/cli.BSm0_9Hr.mjs107 B0%
shared/cli.At9IMXtr.mjs1.23 kB0%
shared/cli.pLQ0oPGc.mjs836 B0%
shared/cli.qKvs7FJ2.mjs945 B0%
shared/cli.D-5JezqI.mjs78 B0%
shared/cli.jA1DRKbi.mjs1.04 kB0%
shared/cli.DLBhTNQQ.mjs1.8 kB0%
shared/cli.IymQnHF9.mjs5.57 kB0%

@github-actions

github-actionsBot commented Apr 7, 2025

Copy link
Copy Markdown
Contributor

Bundle Stats — create-nuxt size comparison

Hey 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

Files countTotal bundle size% Changed
495.89 MB → 5.89 MB (+2.7 kB)+0.04%
Changeset
FileΔSize
node_modules/confbox/dist/shared/confbox.DA7CpUDY.mjs📈 +1.12 kB (+260.36%)439 B → 1.54 kB
home/runner/work/cli/cli/packages/nuxi/src/commands/init.ts📈 +1.38 kB (+12.94%)10.64 kB → 12.02 kB
node_modules/pkg-types/dist/index.mjs📈 +91 B (+2.74%)3.24 kB → 3.33 kB
node_modules/confbox/dist/shared/confbox.DnMsyigM.mjs📈 +119 B (+1.18%)9.89 kB → 10 kB
View detailed bundle breakdown

Added

AssetFile Size% Changed
shared/create-nuxt.WqEevkFG.mjs0 B → 2.02 MB (+2.02 MB)-
shared/create-nuxt.BLi8xrSo.mjs0 B → 1.17 MB (+1.17 MB)-
shared/create-nuxt.BZh9rl_t.mjs0 B → 953.45 kB (+953.45 kB)-
shared/create-nuxt.CY-cCWc7.mjs0 B → 108.11 kB (+108.11 kB)-
shared/create-nuxt.BXPVRefe.mjs0 B → 18.91 kB (+18.91 kB)-
shared/create-nuxt.B6xdQURe.mjs0 B → 18.08 kB (+18.08 kB)-
shared/create-nuxt.BfJaFDzl.mjs0 B → 4.07 kB (+4.07 kB)-
shared/create-nuxt.Bg3jrP0C.mjs0 B → 4.06 kB (+4.06 kB)-
shared/create-nuxt.D-G79gjS.mjs0 B → 3.9 kB (+3.9 kB)-
shared/create-nuxt.D3fgmHMB.mjs0 B → 945 B (+945 B)-
shared/create-nuxt.Ba0Fpvmc.mjs0 B → 836 B (+836 B)-
shared/create-nuxt.CuiLa-0Y.mjs0 B → 792 B (+792 B)-
shared/create-nuxt.Ba6S3KSh.mjs0 B → 294 B (+294 B)-

Removed

AssetFile Size% Changed
shared/create-nuxt.CVce4vi-.mjs2.02 MB → 0 B (-2.02 MB)-100%
shared/create-nuxt.B3wkumF_.mjs1.17 MB → 0 B (-1.17 MB)-100%
shared/create-nuxt.DiWTphCc.mjs950.75 kB → 0 B (-950.75 kB)-100%
shared/create-nuxt.WSg2xk4i.mjs108.11 kB → 0 B (-108.11 kB)-100%
shared/create-nuxt.B_5eaYT8.mjs18.91 kB → 0 B (-18.91 kB)-100%
shared/create-nuxt.DvO9jJZy.mjs18.08 kB → 0 B (-18.08 kB)-100%
shared/create-nuxt.CZDqyziC.mjs4.07 kB → 0 B (-4.07 kB)-100%
shared/create-nuxt.EHpyw3bQ.mjs4.06 kB → 0 B (-4.06 kB)-100%
shared/create-nuxt.0QTaGPIN.mjs3.9 kB → 0 B (-3.9 kB)-100%
shared/create-nuxt.C7T7LG6x.mjs945 B → 0 B (-945 B)-100%
shared/create-nuxt.DmQvWW4c.mjs836 B → 0 B (-836 B)-100%
shared/create-nuxt.C9xlSnwQ.mjs792 B → 0 B (-792 B)-100%
shared/create-nuxt.6B8zgR8W.mjs294 B → 0 B (-294 B)-100%

Bigger

No assets were bigger

Smaller

No assets were smaller

Unchanged

AssetFile Size% Changed
index.mjs1.07 kB0%
chunks/multipart-parser.mjs5.11 kB0%
chunks/multipart-parser2.mjs4.58 kB0%
chunks/add.mjs6.89 kB0%
chunks/analyze.mjs3.35 kB0%
chunks/build.mjs2.04 kB0%
chunks/cleanup.mjs471 B0%
chunks/dev-child.mjs811 B0%
chunks/dev.mjs28.33 kB0%
chunks/devtools.mjs764 B0%
chunks/generate.mjs492 B0%
chunks/info.mjs4.43 kB0%
chunks/index.mjs274 B0%
chunks/prepare.mjs1.04 kB0%
chunks/preview.mjs3.58 kB0%
chunks/test.mjs1.16 kB0%
chunks/typecheck.mjs2.06 kB0%
chunks/upgrade.mjs6.28 kB0%
chunks/prompt.mjs42.91 kB0%
chunks/satisfies.mjs116 B0%
chunks/index2.mjs198.56 kB0%
chunks/jiti.mjs305 B0%
chunks/index3.mjs71.97 kB0%
chunks/add2.mjs12.08 kB0%
chunks/search.mjs45.85 kB0%
chunks/xdg-open.mjs25.32 kB0%
chunks/node.mjs145.67 kB0%
chunks/index4.mjs1.23 kB0%
chunks/index5.mjs5.85 kB0%
chunks/index6.mjs6.24 kB0%
chunks/index7.mjs50.51 kB0%
chunks/index8.mjs904.05 kB0%
shared/create-nuxt.BSm0_9Hr.mjs107 B0%
shared/create-nuxt.BjhZEm2-.mjs1.75 kB0%
shared/create-nuxt.Vk1IrVtB.mjs26.96 kB0%
shared/create-nuxt.4t9faemh.mjs43.64 kB0%

@github-actions

github-actionsBot commented Apr 7, 2025

Copy link
Copy Markdown
Contributor

Bundle Stats — nuxi size comparison

Hey 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

Files countTotal bundle size% Changed
585.46 MB → 5.46 MB (+2.66 kB)+0.05%
Changeset
FileΔSize
node_modules/confbox/dist/shared/confbox.DA7CpUDY.mjs📈 +1.08 kB (+260.19%)427 B → 1.5 kB
src/commands/init.ts📈 +1.38 kB (+12.94%)10.64 kB → 12.02 kB
node_modules/pkg-types/dist/index.mjs📈 +89 B (+2.69%)3.23 kB → 3.32 kB
node_modules/confbox/dist/shared/confbox.DnMsyigM.mjs📈 +115 B (+1.15%)9.8 kB → 9.91 kB
View detailed bundle breakdown

Added

AssetFile Size% Changed
shared/nuxi.D3mADRf9.mjs0 B → 14.73 kB (+14.73 kB)-
shared/nuxi.CSWGOxQ4.mjs0 B → 10.56 kB (+10.56 kB)-
shared/nuxi.uGuG0uDx.mjs0 B → 4.06 kB (+4.06 kB)-

Removed

AssetFile Size% Changed
shared/nuxi.CbyJ5osS.mjs13.45 kB → 0 B (-13.45 kB)-100%
shared/nuxi.DEj7rGzd.mjs10.56 kB → 0 B (-10.56 kB)-100%
shared/nuxi.BEgIcxrx.mjs4.06 kB → 0 B (-4.06 kB)-100%

Bigger

AssetFile Size% Changed
chunks/init.mjs667 kB → 668.38 kB (+1.38 kB)+0.21%

Smaller

No assets were smaller

Unchanged

AssetFile Size% Changed
index.mjs247 B0%
dev/index.mjs925 B0%
chunks/add.mjs6.89 kB0%
chunks/analyze.mjs3.35 kB0%
chunks/build.mjs2.04 kB0%
chunks/cleanup.mjs471 B0%
chunks/dev-child.mjs780 B0%
chunks/dev.mjs28.33 kB0%
chunks/devtools.mjs764 B0%
chunks/generate.mjs492 B0%
chunks/info.mjs4.43 kB0%
chunks/index.mjs274 B0%
chunks/prepare.mjs1.04 kB0%
chunks/preview.mjs3.58 kB0%
chunks/test.mjs1.16 kB0%
chunks/typecheck.mjs2.06 kB0%
chunks/upgrade.mjs6.28 kB0%
chunks/satisfies.mjs116 B0%
chunks/main.mjs15.3 kB0%
chunks/prompt.mjs42.91 kB0%
chunks/index2.mjs198.56 kB0%
chunks/jiti.mjs305 B0%
chunks/index3.mjs71.97 kB0%
chunks/multipart-parser.mjs5.11 kB0%
chunks/add2.mjs12.08 kB0%
chunks/search.mjs45.85 kB0%
chunks/xdg-open.mjs25.32 kB0%
chunks/node.mjs145.67 kB0%
chunks/index4.mjs1.23 kB0%
chunks/index5.mjs5.85 kB0%
chunks/multipart-parser2.mjs4.58 kB0%
chunks/index6.mjs904.05 kB0%
shared/nuxi.HaPdOS2b.mjs19.33 kB0%
shared/nuxi.DQjfoGl0.mjs57.22 kB0%
shared/nuxi.CTyTlDmo.mjs18.91 kB0%
shared/nuxi.BXGZ9qFF.mjs792 B0%
shared/nuxi.C_u-rG9b.mjs294 B0%
shared/nuxi.DUZ_WukQ.mjs2.57 kB0%
shared/nuxi.8mhVoXwa.mjs916.43 kB0%
shared/nuxi.D2_bzAv0.mjs1.54 kB0%
shared/nuxi.DQbQuzNE.mjs4.07 kB0%
shared/nuxi.BSm0_9Hr.mjs107 B0%
shared/nuxi.CrvQqJcE.mjs836 B0%
shared/nuxi.BiWTNJI4.mjs945 B0%
shared/nuxi.umkfBzIJ.mjs18.08 kB0%
shared/nuxi.BAGoDD49.mjs1.05 kB0%
shared/nuxi.BoQ074Vk.mjs2.02 MB0%
shared/nuxi.BjhZEm2-.mjs1.75 kB0%
shared/nuxi.DU9QXUOf.mjs26.96 kB0%
shared/nuxi.BzZJv2UC.mjs123.67 kB0%
shared/nuxi.QWnQy_ku.mjs5.75 kB0%
shared/nuxi.BLb4POFS.mjs42.47 kB0%
shared/nuxi.Do0aYBCO.mjs5.46 kB0%
shared/nuxi.4t9faemh.mjs43.64 kB0%

@codspeed-hq

Copy link
Copy Markdown

CodSpeed Performance Report

Merging #650 will not alter performance

Comparing feat/init-nightly-flag (95f7b93) with main (e61d334)

Summary

✅ 2 untouched benchmarks

@danielroe
danielroe merged commit 864c247 into mainAug 8, 2025
14 checks passed
@danielroe
danielroe deleted the feat/init-nightly-flag branch August 8, 2025 11:25
@github-actionsgithub-actionsBot mentioned this pull request Aug 8, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] --channel support in nuxi init command

2 participants

@DamianGlowala@danielroe