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

feat: add new @nuxt/cli distribution #659

Merged
merged 7 commits into from
Jan 9, 2025
Merged

feat: add new @nuxt/cli distribution #659

merged 7 commits into from
Jan 9, 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 the basis for double-building nuxi + @nuxt/cli in line with #648

@danielroe danielroe self-assigned this Jan 9, 2025
Copy link

pkg-pr-new bot commented Jan 9, 2025

Open in Stackblitz β€’ nuxt-cli-playground

npm i https://pkg.pr.new/nuxi@659

commit: c6093b3

Copy link

github-actions bot commented Jan 9, 2025

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 count Total bundle size % Changed
54 β†’ 28 5.67 MB β†’ 77.72 kB (-5.59 MB) -98.66%
Changeset (largest 100 files by percent change)
File Ξ” Size
package.json πŸ“ˆ +69 B (+2.60%) 2.59 kB β†’ 2.66 kB
src/commands/dev-child.ts πŸ“ˆ +5 B (+0.28%) 1.75 kB β†’ 1.76 kB
src/commands/info.ts πŸ“ˆ +1 B (+0.02%) 4.39 kB β†’ 4.39 kB
src/commands/dev.ts πŸ“‰ -2 B (-0.03%) 7 kB β†’ 7 kB
src/commands/preview.ts πŸ“‰ -1 B (-0.03%) 2.81 kB β†’ 2.81 kB
src/commands/devtools.ts πŸ“‰ -1 B (-0.14%) 736 B β†’ 735 B
src/utils/dev.ts πŸ“‰ -12 B (-0.16%) 7.13 kB β†’ 7.12 kB
src/commands/module/add.ts πŸ“‰ -18 B (-0.17%) 10.05 kB β†’ 10.04 kB
src/run.ts πŸ“‰ -2 B (-0.32%) 627 B β†’ 625 B
src/main.ts πŸ“‰ -5 B (-0.44%) 1.12 kB β†’ 1.11 kB
src/commands/init.ts πŸ“‰ -27 B (-0.52%) 5.04 kB β†’ 5.01 kB
src/utils/console.ts πŸ“‰ -6 B (-0.57%) 1.03 kB β†’ 1.03 kB
src/commands/index.ts πŸ“‰ -35 B (-2.96%) 1.15 kB β†’ 1.12 kB
src/commands/module/_utils.ts πŸ“‰ -28 B (-3.92%) 715 B β†’ 687 B
src/utils/engines.ts πŸ“‰ -31 B (-6.51%) 476 B β†’ 445 B
node_modules/jiti/dist/babel.cjs πŸ”₯ -1.82 MB (-100%) 1.82 MB β†’ 0 B
node_modules/@babel/parser/lib/index.js πŸ”₯ -489.47 kB (-100%) 489.47 kB β†’ 0 B
node_modules/node-fetch-native/dist/proxy.cjs πŸ”₯ -460.12 kB (-100%) 460.12 kB β†’ 0 B
node_modules/magicast/dist/index.mjs πŸ”₯ -284.11 kB (-100%) 284.11 kB β†’ 0 B
node_modules/acorn/dist/acorn.mjs πŸ”₯ -220.25 kB (-100%) 220.25 kB β†’ 0 B
node_modules/jiti/dist/jiti.cjs πŸ”₯ -197.97 kB (-100%) 197.97 kB β†’ 0 B
node_modules/node-forge/lib/tls.js πŸ”₯ -132.84 kB (-100%) 132.84 kB β†’ 0 B
node_modules/node-fetch-native/dist/node.cjs πŸ”₯ -116.74 kB (-100%) 116.74 kB β†’ 0 B
node_modules/node-fetch-native/dist/node.mjs πŸ”₯ -110.86 kB (-100%) 110.86 kB β†’ 0 B
node_modules/crossws/dist/shared/crossws.YgHWLi0G.mjs πŸ”₯ -103.9 kB (-100%) 103.9 kB β†’ 0 B
node_modules/node-forge/lib/x509.js πŸ”₯ -101.35 kB (-100%) 101.35 kB β†’ 0 B
node_modules/node-forge/lib/util.js πŸ”₯ -71.08 kB (-100%) 71.08 kB β†’ 0 B
node_modules/node-forge/lib/rsa.js πŸ”₯ -59.66 kB (-100%) 59.66 kB β†’ 0 B
node_modules/mlly/dist/index.mjs πŸ”₯ -52.35 kB (-100%) 52.35 kB β†’ 0 B
node_modules/consola/dist/chunks/prompt.mjs πŸ”₯ -46.07 kB (-100%) 46.07 kB β†’ 0 B
node_modules/node-forge/lib/asn1.js πŸ”₯ -43.23 kB (-100%) 43.23 kB β†’ 0 B
node_modules/source-map-js/lib/source-map-consumer.js πŸ”₯ -41.8 kB (-100%) 41.8 kB β†’ 0 B
node_modules/fuse.js/dist/fuse.mjs πŸ”₯ -40.06 kB (-100%) 40.06 kB β†’ 0 B
node_modules/node-forge/lib/aes.js πŸ”₯ -39.16 kB (-100%) 39.16 kB β†’ 0 B
node_modules/node-forge/lib/pkcs7.js πŸ”₯ -38.6 kB (-100%) 38.6 kB β†’ 0 B
node_modules/node-forge/lib/jsbn.js πŸ”₯ -35.48 kB (-100%) 35.48 kB β†’ 0 B
node_modules/node-forge/lib/pkcs12.js πŸ”₯ -33.55 kB (-100%) 33.55 kB β†’ 0 B
node_modules/consola/dist/shared/consola.DC9Xh_QO.mjs πŸ”₯ -31.89 kB (-100%) 31.89 kB β†’ 0 B
node_modules/node-forge/lib/pbe.js πŸ”₯ -31.25 kB (-100%) 31.25 kB β†’ 0 B
node_modules/node-forge/lib/cipherModes.js πŸ”₯ -29.24 kB (-100%) 29.24 kB β†’ 0 B
node_modules/chokidar/esm/index.js πŸ”₯ -28.23 kB (-100%) 28.23 kB β†’ 0 B
node_modules/tar/lib/unpack.js πŸ”₯ -26.38 kB (-100%) 26.38 kB β†’ 0 B
node_modules/uqr/dist/index.mjs πŸ”₯ -25.75 kB (-100%) 25.75 kB β†’ 0 B
node_modules/node-forge/lib/ed25519.js πŸ”₯ -25.44 kB (-100%) 25.44 kB β†’ 0 B
node_modules/listhen/dist/chunks/xdg-open.mjs πŸ”₯ -25.32 kB (-100%) 25.32 kB β†’ 0 B
node_modules/listhen/dist/index.mjs πŸ”₯ -24 kB (-100%) 24 kB β†’ 0 B
node_modules/chokidar/esm/handler.js πŸ”₯ -23.83 kB (-100%) 23.83 kB β†’ 0 B
node_modules/crossws/dist/adapters/node.mjs πŸ”₯ -21.03 kB (-100%) 21.03 kB β†’ 0 B
node_modules/node-forge/lib/des.js πŸ”₯ -20.46 kB (-100%) 20.46 kB β†’ 0 B
node_modules/h3/dist/index.mjs πŸ”₯ -20.07 kB (-100%) 20.07 kB β†’ 0 B
node_modules/node-forge/lib/sha512.js πŸ”₯ -17.35 kB (-100%) 17.35 kB β†’ 0 B
node_modules/minipass/index.js πŸ”₯ -17.12 kB (-100%) 17.12 kB β†’ 0 B
node_modules/httpxy/dist/index.mjs πŸ”₯ -17.11 kB (-100%) 17.11 kB β†’ 0 B
node_modules/tar/lib/parse.js πŸ”₯ -16.69 kB (-100%) 16.69 kB β†’ 0 B
node_modules/ohash/dist/index.mjs πŸ”₯ -16.45 kB (-100%) 16.45 kB β†’ 0 B
node_modules/source-map-js/lib/util.js πŸ”₯ -16.2 kB (-100%) 16.2 kB β†’ 0 B
node_modules/tar/lib/write-entry.js πŸ”₯ -15.71 kB (-100%) 15.71 kB β†’ 0 B
node_modules/tinyexec/dist/main.js πŸ”₯ -15.34 kB (-100%) 15.34 kB β†’ 0 B
node_modules/semver/classes/range.js πŸ”₯ -15.25 kB (-100%) 15.25 kB β†’ 0 B
node_modules/source-map-js/lib/source-map-generator.js πŸ”₯ -15.17 kB (-100%) 15.17 kB β†’ 0 B
node_modules/source-map-js/lib/source-node.js πŸ”₯ -14.01 kB (-100%) 14.01 kB β†’ 0 B
node_modules/citty/dist/index.mjs πŸ”₯ -13.61 kB (-100%) 13.61 kB β†’ 0 B
node_modules/consola/dist/core.mjs πŸ”₯ -13.21 kB (-100%) 13.21 kB β†’ 0 B
node_modules/node-forge/lib/prng.js πŸ”₯ -12.52 kB (-100%) 12.52 kB β†’ 0 B
node_modules/node-forge/lib/rc2.js πŸ”₯ -12.12 kB (-100%) 12.12 kB β†’ 0 B
node_modules/node-forge/lib/pkcs7asn1.js πŸ”₯ -11.65 kB (-100%) 11.65 kB β†’ 0 B
node_modules/giget/dist/index.mjs πŸ”₯ -10.51 kB (-100%) 10.51 kB β†’ 0 B
node_modules/fs-minipass/index.js πŸ”₯ -10.44 kB (-100%) 10.44 kB β†’ 0 B
node_modules/tar/lib/pack.js πŸ”₯ -10.39 kB (-100%) 10.39 kB β†’ 0 B
node_modules/dotenv/lib/main.js πŸ”₯ -10.24 kB (-100%) 10.24 kB β†’ 0 B
node_modules/ofetch/dist/shared/ofetch.03887fc3.mjs πŸ”₯ -9.9 kB (-100%) 9.9 kB β†’ 0 B
node_modules/confbox/dist/shared/confbox.f9f03f05.mjs πŸ”₯ -9.8 kB (-100%) 9.8 kB β†’ 0 B
node_modules/node-forge/lib/sha256.js πŸ”₯ -9.77 kB (-100%) 9.77 kB β†’ 0 B
node_modules/minizlib/index.js πŸ”₯ -9.69 kB (-100%) 9.69 kB β†’ 0 B
node_modules/tar/lib/header.js πŸ”₯ -9.41 kB (-100%) 9.41 kB β†’ 0 B
node_modules/node-forge/lib/log.js πŸ”₯ -9.41 kB (-100%) 9.41 kB β†’ 0 B
node_modules/node-forge/lib/aesCipherSuites.js πŸ”₯ -9.33 kB (-100%) 9.33 kB β†’ 0 B
node_modules/node-forge/lib/sha1.js πŸ”₯ -9.28 kB (-100%) 9.28 kB β†’ 0 B
node_modules/semver/classes/semver.js πŸ”₯ -8.95 kB (-100%) 8.95 kB β†’ 0 B
node_modules/node-forge/lib/prime.js πŸ”₯ -8.89 kB (-100%) 8.89 kB β†’ 0 B
node_modules/yallist/yallist.js πŸ”₯ -8.85 kB (-100%) 8.85 kB β†’ 0 B
node_modules/signal-exit/dist/mjs/index.js πŸ”₯ -8.79 kB (-100%) 8.79 kB β†’ 0 B
node_modules/node-forge/lib/pkcs1.js πŸ”₯ -8.5 kB (-100%) 8.5 kB β†’ 0 B
node_modules/semver/internal/re.js πŸ”₯ -8.32 kB (-100%) 8.32 kB β†’ 0 B
node_modules/readdirp/esm/index.js πŸ”₯ -8.28 kB (-100%) 8.28 kB β†’ 0 B
node_modules/node-forge/lib/md5.js πŸ”₯ -8.16 kB (-100%) 8.16 kB β†’ 0 B
node_modules/crossws/dist/shared/crossws.DTY7a69w.mjs πŸ”₯ -8.07 kB (-100%) 8.07 kB β†’ 0 B
node_modules/nypm/dist/index.mjs πŸ”₯ -8.04 kB (-100%) 8.04 kB β†’ 0 B
node_modules/node-forge/lib/pss.js πŸ”₯ -7.98 kB (-100%) 7.98 kB β†’ 0 B
node_modules/semver/ranges/subset.js πŸ”₯ -7.67 kB (-100%) 7.67 kB β†’ 0 B
node_modules/node-forge/lib/ssh.js πŸ”₯ -7.3 kB (-100%) 7.3 kB β†’ 0 B
node_modules/get-port-please/dist/index.mjs πŸ”₯ -7.11 kB (-100%) 7.11 kB β†’ 0 B
node_modules/node-forge/lib/oids.js πŸ”₯ -6.97 kB (-100%) 6.97 kB β†’ 0 B
node_modules/node-forge/lib/pem.js πŸ”₯ -6.84 kB (-100%) 6.84 kB β†’ 0 B
node_modules/node-forge/lib/cipher.js πŸ”₯ -6.83 kB (-100%) 6.83 kB β†’ 0 B
node_modules/execa/index.js πŸ”₯ -6.79 kB (-100%) 6.79 kB β†’ 0 B
node_modules/consola/dist/shared/consola.CBi6Nm9s.mjs πŸ”₯ -6.73 kB (-100%) 6.73 kB β†’ 0 B
node_modules/pathe/dist/shared/pathe.ff20891b.mjs πŸ”₯ -6.13 kB (-100%) 6.13 kB β†’ 0 B
node_modules/tar/lib/replace.js πŸ”₯ -6.04 kB (-100%) 6.04 kB β†’ 0 B
node_modules/node-forge/lib/pbkdf2.js πŸ”₯ -5.96 kB (-100%) 5.96 kB β†’ 0 B
View detailed bundle breakdown

Added

Asset File Size % Changed
shared/nuxi.CSG2wiuv.mjs 0 B β†’ 8.04 kB (+8.04 kB) -
shared/nuxi.i079kysU.mjs 0 B β†’ 1.24 kB (+1.24 kB) -
shared/nuxi.CHlYyjIF.mjs 0 B β†’ 1.11 kB (+1.11 kB) -
shared/nuxi.DlcAx0De.mjs 0 B β†’ 1.04 kB (+1.04 kB) -
shared/nuxi.eaKuz5lT.mjs 0 B β†’ 804 B (+804 B) -
shared/nuxi.C935N1ss.mjs 0 B β†’ 687 B (+687 B) -
shared/nuxi.DFR6Kxon.mjs 0 B β†’ 294 B (+294 B) -

Removed

Asset File Size % Changed
shared/nuxi.SEuYCQjN.mjs 2.02 MB β†’ 0 B (-2.02 MB) -100%
chunks/index2.mjs 909.09 kB β†’ 0 B (-909.09 kB) -100%
chunks/index8.mjs 882.9 kB β†’ 0 B (-882.9 kB) -100%
shared/nuxi.DfYkt6zx.mjs 285.08 kB β†’ 0 B (-285.08 kB) -100%
shared/nuxi.C2bb3PPD.mjs 152.13 kB β†’ 0 B (-152.13 kB) -100%
chunks/node.mjs 134.34 kB β†’ 0 B (-134.34 kB) -100%
shared/nuxi.axgCjw1B.mjs 78.65 kB β†’ 0 B (-78.65 kB) -100%
chunks/index6.mjs 70.29 kB β†’ 0 B (-70.29 kB) -100%
chunks/prompt.mjs 46.07 kB β†’ 0 B (-46.07 kB) -100%
shared/nuxi.BPuj-7ta.mjs 42.89 kB β†’ 0 B (-42.89 kB) -100%
chunks/xdg-open.mjs 25.32 kB β†’ 0 B (-25.32 kB) -100%
shared/nuxi.D1V6iren.mjs 20.07 kB β†’ 0 B (-20.07 kB) -100%
shared/nuxi.C-S51IEH.mjs 17.69 kB β†’ 0 B (-17.69 kB) -100%
chunks/index3.mjs 17.11 kB β†’ 0 B (-17.11 kB) -100%
chunks/main.mjs 15.34 kB β†’ 0 B (-15.34 kB) -100%
shared/nuxi.BgpyaHY1.mjs 14.64 kB β†’ 0 B (-14.64 kB) -100%
shared/nuxi.u_uB65ir.mjs 8.04 kB β†’ 0 B (-8.04 kB) -100%
chunks/index5.mjs 6.55 kB β†’ 0 B (-6.55 kB) -100%
shared/nuxi.BZI8rqcO.mjs 6.13 kB β†’ 0 B (-6.13 kB) -100%
chunks/index7.mjs 5.87 kB β†’ 0 B (-5.87 kB) -100%
shared/nuxi.ChFrgAY-.mjs 5.71 kB β†’ 0 B (-5.71 kB) -100%
chunks/multipart-parser.mjs 5.11 kB β†’ 0 B (-5.11 kB) -100%
shared/nuxi.C-DyjaHC.mjs 5.06 kB β†’ 0 B (-5.06 kB) -100%
chunks/multipart-parser2.mjs 4.58 kB β†’ 0 B (-4.58 kB) -100%
shared/nuxi.BgENdoyd.mjs 1.76 kB β†’ 0 B (-1.76 kB) -100%
shared/nuxi.DdI-vRyV.mjs 1.54 kB β†’ 0 B (-1.54 kB) -100%
shared/nuxi.jHNMu6i2.mjs 1.34 kB β†’ 0 B (-1.34 kB) -100%
chunks/index4.mjs 1.24 kB β†’ 0 B (-1.24 kB) -100%
shared/nuxi._SGdkJZi.mjs 1.11 kB β†’ 0 B (-1.11 kB) -100%
shared/nuxi.E-ZsRS8r.mjs 943 B β†’ 0 B (-943 B) -100%
shared/nuxi.DGHVYBFQ.mjs 804 B β†’ 0 B (-804 B) -100%
shared/nuxi.C61UzE_N.mjs 294 B β†’ 0 B (-294 B) -100%
chunks/satisfies.mjs 116 B β†’ 0 B (-116 B) -100%

Bigger

Asset File Size % Changed
index.mjs 188 B β†’ 201 B (+13 B) +6.91%
chunks/dev-child.mjs 1.75 kB β†’ 1.76 kB (+5 B) +0.28%
chunks/info.mjs 4.39 kB β†’ 4.39 kB (+1 B) +0.02%

Smaller

Asset File Size % Changed
chunks/init.mjs 805.3 kB β†’ 5.01 kB (-800.29 kB) -99.38%
chunks/dev2.mjs 68.95 kB β†’ 7.12 kB (-61.84 kB) -89.68%
chunks/search.mjs 42.99 kB β†’ 2.94 kB (-40.06 kB) -93.17%
chunks/dev.mjs 9.58 kB β†’ 7 kB (-2.58 kB) -26.96%
chunks/add2.mjs 11.89 kB β†’ 10.04 kB (-1.86 kB) -15.62%
chunks/devtools.mjs 736 B β†’ 735 B (-1 B) -0.14%
chunks/preview.mjs 2.81 kB β†’ 2.81 kB (-1 B) -0.03%

Unchanged

Asset File Size % Changed
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/generate.mjs 388 B 0%
chunks/index.mjs 274 B 0%
chunks/prepare.mjs 984 B 0%
chunks/test.mjs 1.16 kB 0%
chunks/typecheck.mjs 1.58 kB 0%
chunks/upgrade.mjs 5.69 kB 0%
shared/nuxi.BSm0_9Hr.mjs 107 B 0%

@danielroe danielroe merged commit 6ea36ef into main Jan 9, 2025
9 checks passed
@danielroe danielroe deleted the feat/lighten branch January 9, 2025 19:34
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