docs: add Bun-to-nub migration guide#52
Merged
Merged
Conversation
New page under site/content/docs/guides/ covering the runtime swap, package manager and lockfile compatibility, script parallelism (regex selection + npm-run-all2), env-file handling, and the Bun.* API replacements ($ shell → tinyexec, sql → postgres.js/pg, file/spawn shims). Documents real nub behavior including the --env-file auto-discovery suppression, the lack of a native run-p/run-s named-list form, the absent --env-file-if-exists flag, and the minimumReleaseAge .npmrc (minutes) mapping. Not added to the sidebar nav. Claude-Session: https://claude.ai/code/session_01YRvztkcr4fzfg9rD5edUwa
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
|
Shipped in v0.1.10: https://github.com/nubjs/nub/releases/tag/v0.1.10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a new guide page at
site/content/docs/guides/bun-to-nub.mdxcovering migration from the Bun runtime to Node + nub.Per the request, the page is created but not added to the sidebar nav (no
meta.jsonchanges) until the maintainer wants it listed.Content is grounded in real nub behavior verified against the codebase:
nub <file>, the file-runner vsnub rundistinction,--nodeescape hatch)./regex/selection (the native multi-script form, concurrent by default /--sequential),run a bis NOT multi-script,npm-run-all2for explicit run-p/run-s lists.--env-filesuppresses auto-discovery,${VAR}expansion, shell-wins; documents that--env-file-if-existsis not yet a first-class nub flag; and corrects the common misconception that Bun's--env-filecascades (it does not — explicit files and the default cascade are mutually exclusive in Bun, Node, and nub).Bun.$→ tinyexec;Bun.sql→ postgres.js / pg (Prisma-aware);Bun.file/Bun.spawn/Bun.YAML/import.metareplacements.npmecosystem + anub installlockfile-regen step).minimumReleaseAgeunder nub identity lives in.npmrc(minimum-release-age, minutes); bunfig seconds are auto-converted onnub install.Refs #43.
https://claude.ai/code/session_01YRvztkcr4fzfg9rD5edUwa