Skip to content

Commit

Permalink
feat: bun
Browse files Browse the repository at this point in the history
  • Loading branch information
rharkor committed Sep 26, 2023
1 parent c6ba2d6 commit a4da8af
Show file tree
Hide file tree
Showing 16 changed files with 852 additions and 199 deletions.
4 changes: 4 additions & 0 deletions .devcontainer/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,7 @@ ZSH_THEME="powerlevel10k/powerlevel10k"

# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

# bun
export BUN_INSTALL="$HOME/.bun"
export PATH=$BUN_INSTALL/bin:$PATH
9 changes: 6 additions & 3 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
FROM mcr.microsoft.com/devcontainers/typescript-node:1-18-bullseye

# [Optional] Uncomment this section to install additional OS packages.
# Install additional OS packages.
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends git-cola git zsh nano vim

# [Optional] Uncomment if you want to install an additional version of node using nvm
# ARG EXTRA_NODE_VERSION=10
# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"

# [Optional] Uncomment if you want to install more global node modules
# Install more global node modules
RUN su node -c "npm install -g npm@latest"
RUN su node -c "npm install -g prisma"

RUN /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
RUN /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# Install bun
RUN /bin/bash -c "curl -fsSL https://bun.sh/install | bash"
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
},

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "npm install && ./scripts/install-brew.sh && ./scripts/install-zsh10k.sh",
"postCreateCommand": "./scripts/install-zsh10k.sh && ./scripts/install-bun.sh && ./scripts/install-brew.sh && npm install",

// Configure tool-specific properties.
"customizations": {
"postCreateCommand": "npm install && ./scripts/install-brew.sh && ./scripts/install-zsh10k.sh",
"postCreateCommand": "./scripts/install-zsh10k.sh && ./scripts/install-bun.sh && ./scripts/install-brew.sh && npm install",
"vscode": {
"extensions": [
"formulahendry.auto-rename-tag",
Expand Down
Binary file added bun.lockb
Binary file not shown.
Loading

0 comments on commit a4da8af

Please sign in to comment.