From ed91a460754d6711111bb78469647c751527a807 Mon Sep 17 00:00:00 2001 From: Daniel Weiss <134341009+justdan6@users.noreply.github.com> Date: Fri, 22 Nov 2024 06:20:04 -0800 Subject: [PATCH] Create a feature for Bun dependencies (#66) * Create a feature for Bun dependencies --- features/bun/README.md | 21 +++++++++++++++++++++ features/bun/devcontainer-feature.json | 6 ++++++ features/bun/install.sh | 4 ++++ 3 files changed, 31 insertions(+) create mode 100644 features/bun/README.md create mode 100644 features/bun/devcontainer-feature.json create mode 100755 features/bun/install.sh diff --git a/features/bun/README.md b/features/bun/README.md new file mode 100644 index 0000000..7c879a3 --- /dev/null +++ b/features/bun/README.md @@ -0,0 +1,21 @@ +# Bun + +Installs needed dependencies for Rails apps using Bun. + +## Example Usage + +```json +"features": { + "ghcr.io/rails/devcontainer/features/bun": {} +} +``` + +## Options + +## Customizations + +## OS Support + +This Feature should work on recent versions of Debian/Ubuntu-based distributions with `curl` installed. + +`bash` is required to execute the `install.sh` script. diff --git a/features/bun/devcontainer-feature.json b/features/bun/devcontainer-feature.json new file mode 100644 index 0000000..7530c50 --- /dev/null +++ b/features/bun/devcontainer-feature.json @@ -0,0 +1,6 @@ +{ + "id": "bun", + "version": "1.0.0", + "name": "Bun", + "description": "Installs needed client-side dependencies for Rails apps using Bun" +} diff --git a/features/bun/install.sh b/features/bun/install.sh new file mode 100755 index 0000000..e3765d5 --- /dev/null +++ b/features/bun/install.sh @@ -0,0 +1,4 @@ +#!/bin/sh +set -e + +curl -fsSL https://bun.sh/install | bash