4 Commits

Author SHA1 Message Date
403d40ab8c Install bun from Dockerfile instead of devcontainer feature
Co-authored-by: Ona <no-reply@ona.com>
2026-02-28 01:09:08 +00:00
acf9f7f696 Remove Node.js feature — Bun handles everything
Co-authored-by: Ona <no-reply@ona.com>
2026-02-28 01:06:50 +00:00
0a1a4fbf09 Add devcontainer with Node.js 22 and Bun
Installs dependencies for both root and example/ on container creation.

Co-authored-by: Ona <no-reply@ona.com>
2026-02-28 01:03:04 +00:00
b9e45afea0 Merge pull request #1 from kennethnym/add-example
Add example: Bun HTTP server showcasing jrx JSX-to-JSON rendering
2026-02-28 01:01:35 +00:00
2 changed files with 18 additions and 0 deletions

10
.devcontainer/Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends \
curl unzip git ca-certificates \
&& rm -rf /var/lib/apt/lists/*
RUN curl -fsSL https://bun.sh/install | bash \
&& ln -s /root/.bun/bin/bun /usr/local/bin/bun \
&& ln -s /root/.bun/bin/bunx /usr/local/bin/bunx

View File

@@ -0,0 +1,8 @@
{
"name": "jrx",
"build": {
"context": ".",
"dockerfile": "Dockerfile"
},
"postCreateCommand": "bun install && cd example && bun install"
}