Add support for bun as a webapp package manager #800
Labels
No Label
bug
documentation
duplicate
enhancement
feature
good first issue
help wanted
in progress
invalid
question
wontfix
Copied from Github
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cerc-io/stack-orchestrator#800
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "VPhung24/bun-for-nextjs-and-webapps"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is working off pull request "Add support for pnpm as a webapp build tool. #767" that adds
pnpm
package manager support fornextjs
&webapps
.bun
default build output directory (defined asCERC_BUILD_OUTPUT_DIR
) isdist
which should already be handled withpnpm
support in the previously mentioned pull requestInstalling
bun
usingnpm
following our previouspnpm
installationWe'll be using
bun
as a package manager that works withNode.js
projects as defined in bun's docsTo test
next.js
apps usingnode.js
and compatibility with all four packager managers --npm
,yarn
,pnpm
, andbun
-- use the branches of snowball's nextjs-package-manager-example-app repo:nextjs-package-manager/npm
,nextjs-package-manager/yarn
,nextjs-package-manager/pnpm
,nextjs-package-manager/bun
.@ -29,2 +29,4 @@
# Install pnpm
&& su ${USERNAME} -c "umask 0002 && npm install -g pnpm" \
# Install bun
&& su ${USERNAME} -c "umask 0002 && npm install -g bun@1.1.x" \
couldn't all these npm installs be combined?
su ${USERNAME} -c "umask 0002 && npm install -g bun@1.1.x semver pnpm"
I don't actually know if it would work, just an idea
As a guest contributor (plus as my first pull request and docker noob), I followed @telackey (approved by @dboreham) code style from the pnpm pull request & current code.
@telackey @dboreham your call.
Running npm several times is probably not much slower than running it once to install several packages.
The more important issue is to run all the commands in the same docker layer, which is being done.
bun package management support for nextjs & webappsto Add support for bun as a webapp package managerAdd support for bun as a webapp package managerto WIP: Add support for bun as a webapp package managerHi, this should be tested using a test like this one: https://git.vdb.to/cerc-io/stack-orchestrator/src/branch/main/tests/webapp-test/run-webapp-test.sh (can be run manually first, then we can talk about making a CI version).
Currently the CI test uses this repo for its target app : https://git.vdb.to/cerc-io/test-progressive-web-app but perhaps we should switch to the multi-branch test app cited above now that we have three package managers to test?
WIP: Add support for bun as a webapp package managerto Add support for bun as a webapp package manager