Skip to content
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

chore: add create-nuxt distribution #744

Merged
merged 1 commit into from
Feb 13, 2025
Merged

chore: add create-nuxt distribution #744

merged 1 commit into from
Feb 13, 2025

Conversation

danielroe
Copy link
Member

πŸ”— Linked issue

❓ 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 new create-nuxt distribution which will be the default for getting started with a new nuxt project. create-nuxt-app will simply re-export it.

@danielroe danielroe requested review from atinux and pi0 February 13, 2025 20:20
Copy link
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 count Total bundle size % Changed
54 5.66 MB 0%

Changeset

No files were changed

View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

No assets were bigger

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
index.mjs 188 B 0%
chunks/prompt.mjs 42.92 kB 0%
chunks/add.mjs 6.83 kB 0%
chunks/analyze.mjs 3.18 kB 0%
chunks/build.mjs 1.97 kB 0%
chunks/cleanup.mjs 471 B 0%
chunks/dev-child.mjs 1.94 kB 0%
chunks/dev.mjs 7.39 kB 0%
chunks/devtools.mjs 764 B 0%
chunks/generate.mjs 388 B 0%
chunks/info.mjs 4.39 kB 0%
chunks/init.mjs 795.73 kB 0%
chunks/index.mjs 274 B 0%
chunks/prepare.mjs 984 B 0%
chunks/preview.mjs 3.22 kB 0%
chunks/test.mjs 1.16 kB 0%
chunks/typecheck.mjs 1.74 kB 0%
chunks/upgrade.mjs 6.27 kB 0%
chunks/satisfies.mjs 116 B 0%
chunks/main.mjs 15.3 kB 0%
chunks/index2.mjs 915.2 kB 0%
chunks/dev2.mjs 69.62 kB 0%
chunks/index3.mjs 17.14 kB 0%
chunks/index4.mjs 71.77 kB 0%
chunks/multipart-parser.mjs 5.11 kB 0%
chunks/add2.mjs 12.04 kB 0%
chunks/search.mjs 45.83 kB 0%
chunks/xdg-open.mjs 25.32 kB 0%
chunks/node.mjs 134.28 kB 0%
chunks/index5.mjs 1.23 kB 0%
chunks/index6.mjs 5.85 kB 0%
chunks/index7.mjs 885.9 kB 0%
chunks/multipart-parser2.mjs 4.58 kB 0%
shared/nuxi.BHVGYAc-.mjs 76.38 kB 0%
shared/nuxi.DqkIr2yV.mjs 18.95 kB 0%
shared/nuxi.CT4_2lIc.mjs 804 B 0%
shared/nuxi.DoqvXlrr.mjs 294 B 0%
shared/nuxi.DrahZK8n.mjs 2.57 kB 0%
shared/nuxi.D2_bzAv0.mjs 1.54 kB 0%
shared/nuxi.BMsQ-MbH.mjs 17.66 kB 0%
shared/nuxi.BSm0_9Hr.mjs 107 B 0%
shared/nuxi.-XzRnnQ-.mjs 836 B 0%
shared/nuxi.CdLKTWzs.mjs 1.34 kB 0%
shared/nuxi.HiGHWrR5.mjs 14.63 kB 0%
shared/nuxi.Cx_HAvUZ.mjs 9.65 kB 0%
shared/nuxi.BxQQOHdn.mjs 2.02 MB 0%
shared/nuxi.E-ZsRS8r.mjs 943 B 0%
shared/nuxi.BjhZEm2-.mjs 1.75 kB 0%
shared/nuxi.kG5X0MaH.mjs 124.17 kB 0%
shared/nuxi.Kph9bHCN.mjs 26.94 kB 0%
shared/nuxi.Bu_55mY6.mjs 284.98 kB 0%
shared/nuxi.D4vggcPe.mjs 5.7 kB 0%
shared/nuxi.Do0aYBCO.mjs 5.46 kB 0%
shared/nuxi.jjur9XJH.mjs 43.55 kB 0%

Copy link
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 count Total bundle size % Changed
29 79.88 kB 0%

Changeset

No files were changed

View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

No assets were bigger

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
index.mjs 224 B 0%
chunks/add.mjs 6.83 kB 0%
chunks/analyze.mjs 3.18 kB 0%
chunks/build.mjs 1.97 kB 0%
chunks/cleanup.mjs 471 B 0%
chunks/dev-child.mjs 1.95 kB 0%
chunks/dev.mjs 7.34 kB 0%
chunks/devtools.mjs 763 B 0%
chunks/generate.mjs 388 B 0%
chunks/info.mjs 4.39 kB 0%
chunks/init.mjs 5.39 kB 0%
chunks/index.mjs 274 B 0%
chunks/prepare.mjs 984 B 0%
chunks/preview.mjs 3.22 kB 0%
chunks/test.mjs 1.16 kB 0%
chunks/typecheck.mjs 1.74 kB 0%
chunks/upgrade.mjs 6.27 kB 0%
chunks/dev2.mjs 7.78 kB 0%
chunks/add2.mjs 12.17 kB 0%
chunks/search.mjs 2.94 kB 0%
shared/cli.BlRB3DZQ.mjs 5.5 kB 0%
shared/cli.BAwo9lPr.mjs 804 B 0%
shared/cli.CtXqLDQa.mjs 294 B 0%
shared/cli.Be8tlMIk.mjs 1.23 kB 0%
shared/cli.BSm0_9Hr.mjs 107 B 0%
shared/cli.Ci3951v3.mjs 836 B 0%
shared/cli.DlcAx0De.mjs 1.04 kB 0%
shared/cli.xeQT2QTr.mjs 78 B 0%
shared/cli.C935N1ss.mjs 687 B 0%

Copy link
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 count Total bundle size % Changed
0 β†’ 5 0 B β†’ 976.2 kB (+976.2 kB) -
Changeset (largest 100 files by percent change)
File Ξ” Size
node_modules/node-fetch-native/dist/proxy.cjs πŸ†• +455.89 kB 0 B β†’ 455.89 kB
node_modules/node-fetch-native/dist/node.cjs πŸ†• +115.93 kB 0 B β†’ 115.93 kB
node_modules/consola/dist/chunks/prompt.mjs πŸ†• +42.92 kB 0 B β†’ 42.92 kB
node_modules/consola/dist/index.mjs πŸ†• +31.73 kB 0 B β†’ 31.73 kB
node_modules/tar/lib/unpack.js πŸ†• +26.32 kB 0 B β†’ 26.32 kB
node_modules/minipass/index.js πŸ†• +17.12 kB 0 B β†’ 17.12 kB
node_modules/tar/lib/parse.js πŸ†• +16.69 kB 0 B β†’ 16.69 kB
node_modules/tar/lib/write-entry.js πŸ†• +15.69 kB 0 B β†’ 15.69 kB
node_modules/tinyexec/dist/main.js πŸ†• +15.37 kB 0 B β†’ 15.37 kB
node_modules/semver/classes/range.js πŸ†• +15.25 kB 0 B β†’ 15.25 kB
node_modules/consola/dist/core.mjs πŸ†• +13.15 kB 0 B β†’ 13.15 kB
node_modules/giget/dist/shared/giget.D-_6aM9e.mjs πŸ†• +10.52 kB 0 B β†’ 10.52 kB
node_modules/fs-minipass/index.js πŸ†• +10.42 kB 0 B β†’ 10.42 kB
node_modules/tar/lib/pack.js πŸ†• +10.38 kB 0 B β†’ 10.38 kB
node_modules/minizlib/index.js πŸ†• +9.69 kB 0 B β†’ 9.69 kB
node_modules/semver/classes/semver.js πŸ†• +9.54 kB 0 B β†’ 9.54 kB
node_modules/tar/lib/header.js πŸ†• +9.41 kB 0 B β†’ 9.41 kB
node_modules/yallist/yallist.js πŸ†• +8.85 kB 0 B β†’ 8.85 kB
node_modules/semver/internal/re.js πŸ†• +8.38 kB 0 B β†’ 8.38 kB
node_modules/consola/dist/shared/consola.lX6kr4n8.mjs πŸ†• +6.83 kB 0 B β†’ 6.83 kB
node_modules/tar/lib/replace.js πŸ†• +6.01 kB 0 B β†’ 6.01 kB
node_modules/tar/lib/mkdir.js πŸ†• +5.74 kB 0 B β†’ 5.74 kB
node_modules/nypm/dist/shared/nypm.DqHADQHW.mjs πŸ†• +5.62 kB 0 B β†’ 5.62 kB
home/runner/work/cli/cli/packages/nuxi/src/commands/init.ts πŸ†• +5.41 kB 0 B β†’ 5.41 kB
node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs πŸ†• +5.27 kB 0 B β†’ 5.27 kB
node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs πŸ†• +5.03 kB 0 B β†’ 5.03 kB
node_modules/tar/lib/path-reservations.js πŸ†• +4.68 kB 0 B β†’ 4.68 kB
node_modules/chownr/chownr.js πŸ†• +4.48 kB 0 B β†’ 4.48 kB
node_modules/tar/lib/pax.js πŸ†• +4.23 kB 0 B β†’ 4.23 kB
node_modules/minizlib/constants.js πŸ†• +3.92 kB 0 B β†’ 3.92 kB
node_modules/semver/classes/comparator.js πŸ†• +3.78 kB 0 B β†’ 3.78 kB
node_modules/tar/lib/list.js πŸ†• +3.4 kB 0 B β†’ 3.4 kB
node_modules/std-env/dist/index.mjs πŸ†• +3.22 kB 0 B β†’ 3.22 kB
node_modules/tar/lib/read-entry.js πŸ†• +3.04 kB 0 B β†’ 3.04 kB
node_modules/tar/lib/extract.js πŸ†• +3.02 kB 0 B β†’ 3.02 kB
node_modules/tar/lib/create.js πŸ†• +2.57 kB 0 B β†’ 2.57 kB
node_modules/tar/lib/large-numbers.js πŸ†• +2.47 kB 0 B β†’ 2.47 kB
node_modules/consola/dist/shared/consola.Cs5FdtHD.mjs πŸ†• +2.08 kB 0 B β†’ 2.08 kB
node_modules/mkdirp/lib/mkdirp-manual.js πŸ†• +1.82 kB 0 B β†’ 1.82 kB
node_modules/defu/dist/defu.mjs πŸ†• +1.56 kB 0 B β†’ 1.56 kB
node_modules/tar/lib/types.js πŸ†• +1.3 kB 0 B β†’ 1.3 kB
node_modules/mkdirp/lib/mkdirp-native.js πŸ†• +1.16 kB 0 B β†’ 1.16 kB
node_modules/tar/lib/strip-absolute-path.js πŸ†• +1.14 kB 0 B β†’ 1.14 kB
node_modules/mkdirp/index.js πŸ†• +1.13 kB 0 B β†’ 1.13 kB
node_modules/tar/lib/get-write-flag.js πŸ†• +1.11 kB 0 B β†’ 1.11 kB
node_modules/semver/functions/cmp.js πŸ†• +1.07 kB 0 B β†’ 1.07 kB
node_modules/tar/lib/update.js πŸ†• +1.06 kB 0 B β†’ 1.06 kB
node_modules/node-fetch-native/dist/index.cjs πŸ†• +1.04 kB 0 B β†’ 1.04 kB
home/runner/work/cli/cli/packages/nuxi/src/utils/console.ts πŸ†• +1.03 kB 0 B β†’ 1.03 kB
node_modules/semver/internal/constants.js πŸ†• +1.03 kB 0 B β†’ 1.03 kB
node_modules/semver/internal/lrucache.js πŸ†• +983 B 0 B β†’ 983 B
node_modules/mkdirp/lib/opts-arg.js πŸ†• +968 B 0 B β†’ 968 B
node_modules/tar/lib/high-level-opt.js πŸ†• +958 B 0 B β†’ 958 B
node_modules/mkdirp/lib/find-made.js πŸ†• +948 B 0 B β†’ 948 B
node_modules/mkdirp/lib/path-arg.js πŸ†• +913 B 0 B β†’ 913 B
node_modules/tar/lib/warn-mixin.js πŸ†• +905 B 0 B β†’ 905 B
node_modules/tar/lib/mode-fix.js πŸ†• +808 B 0 B β†’ 808 B
node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs πŸ†• +771 B 0 B β†’ 771 B
node_modules/tar/lib/winchars.js πŸ†• +696 B 0 B β†’ 696 B
node_modules/tar/lib/normalize-windows-path.js πŸ†• +675 B 0 B β†’ 675 B
node_modules/tar/lib/strip-trailing-slashes.js πŸ†• +660 B 0 B β†’ 660 B
node_modules/tar/lib/normalize-unicode.js πŸ†• +644 B 0 B β†’ 644 B
node_modules/mkdirp/lib/use-native.js πŸ†• +629 B 0 B β†’ 629 B
node_modules/semver/internal/identifiers.js πŸ†• +613 B 0 B β†’ 613 B
node_modules/tar/index.js πŸ†• +595 B 0 B β†’ 595 B
node_modules/semver/internal/parse-options.js πŸ†• +533 B 0 B β†’ 533 B
src/run.ts πŸ†• +501 B 0 B β†’ 501 B
home/runner/work/cli/cli/packages/nuxi/src/utils/engines.ts πŸ†• +476 B 0 B β†’ 476 B
node_modules/semver/functions/satisfies.js πŸ†• +402 B 0 B β†’ 402 B
node_modules/semver/internal/debug.js πŸ†• +372 B 0 B β†’ 372 B
node_modules/yallist/iterator.js πŸ†• +356 B 0 B β†’ 356 B
src/main.ts πŸ†• +349 B 0 B β†’ 349 B
οΏ½commonjsHelpers.js πŸ†• +334 B 0 B β†’ 334 B
node_modules/node-fetch-native/lib/index.cjs πŸ†• +321 B 0 B β†’ 321 B
node_modules/semver/functions/compare.js πŸ†• +302 B 0 B β†’ 302 B
home/runner/work/cli/cli/packages/nuxi/src/commands/_shared.ts πŸ†• +243 B 0 B β†’ 243 B
node_modules/semver/functions/neq.js πŸ†• +236 B 0 B β†’ 236 B
node_modules/semver/functions/gte.js πŸ†• +235 B 0 B β†’ 235 B
node_modules/semver/functions/lte.js πŸ†• +235 B 0 B β†’ 235 B
node_modules/semver/functions/eq.js πŸ†• +226 B 0 B β†’ 226 B
node_modules/semver/functions/gt.js πŸ†• +224 B 0 B β†’ 224 B
node_modules/semver/functions/lt.js πŸ†• +224 B 0 B β†’ 224 B
node_modules/semver/functions/satisfies.js?commonjs-es-import πŸ†• +116 B 0 B β†’ 116 B
package.json πŸ†• +104 B 0 B β†’ 104 B
home/runner/work/cli/cli/packages/nuxi/src/utils/logger.ts πŸ†• +96 B 0 B β†’ 96 B
node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs?commonjs-es-import πŸ†• +54 B 0 B β†’ 54 B
node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs?commonjs-exports πŸ†• +34 B 0 B β†’ 34 B
node_modules/node-fetch-native/dist/proxy.cjs?commonjs-es-import πŸ†• +34 B 0 B β†’ 34 B
node_modules/tar/index.js?commonjs-es-import πŸ†• +30 B 0 B β†’ 30 B
node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs?commonjs-exports πŸ†• +27 B 0 B β†’ 27 B
node_modules/tar/lib/mkdir.js?commonjs-module πŸ†• +26 B 0 B β†’ 26 B
node_modules/semver/internal/re.js?commonjs-module πŸ†• +23 B 0 B β†’ 23 B
node_modules/minipass/index.js?commonjs-exports πŸ†• +20 B 0 B β†’ 20 B
node_modules/fs-minipass/index.js?commonjs-exports πŸ†• +20 B 0 B β†’ 20 B
node_modules/minizlib/index.js?commonjs-exports πŸ†• +18 B 0 B β†’ 18 B
node_modules/tar/lib/types.js?commonjs-exports πŸ†• +15 B 0 B β†’ 15 B
node_modules/node-fetch-native/dist/proxy.cjs?commonjs-exports πŸ†• +15 B 0 B β†’ 15 B
node_modules/node-fetch-native/dist/index.cjs?commonjs-exports πŸ†• +14 B 0 B β†’ 14 B
node_modules/node-fetch-native/dist/node.cjs?commonjs-exports πŸ†• +14 B 0 B β†’ 14 B
node_modules/tar/index.js?commonjs-exports πŸ†• +13 B 0 B β†’ 13 B
View detailed bundle breakdown

Added

Asset File Size % Changed
shared/create-nuxt.ByiR7qpT.mjs 0 B β†’ 883.49 kB (+883.49 kB) -
chunks/satisfies.mjs 0 B β†’ 43.66 kB (+43.66 kB) -
chunks/prompt.mjs 0 B β†’ 42.92 kB (+42.92 kB) -
chunks/multipart-parser.mjs 0 B β†’ 5.11 kB (+5.11 kB) -
index.mjs 0 B β†’ 1.03 kB (+1.03 kB) -

Removed

No assets were removed

Bigger

No assets were bigger

Smaller

No assets were smaller

Unchanged

No assets were unchanged

@danielroe danielroe merged commit 36c920c into main Feb 13, 2025
9 of 10 checks passed
@danielroe danielroe deleted the chore/create-nuxt branch February 13, 2025 21:13
This was referenced Feb 13, 2025
Sign up for free to 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.

1 participant