-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: devcontainer, jest configs, more build stuff
Signed-off-by: Sam Gammon <[email protected]>
- Loading branch information
Showing
15 changed files
with
1,165 additions
and
534 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Changesets | ||
|
||
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works | ||
with multi-package repos, or single-package repos to help you version and publish your code. You can | ||
find the full documentation for it [in our repository](https://github.com/changesets/changesets) | ||
|
||
We have a quick list of common questions to get you started engaging with this project in | ||
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": "@changesets/cli/changelog", | ||
"commit": false, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "restricted", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# debian bullseye | ||
FROM --platform=linux/amd64 mcr.microsoft.com/vscode/devcontainers/base@sha256:f4e4a94b016ff6c9ac83f327b931b94eb7905d65d22e256365ca75504ea4945e | ||
|
||
ARG BUN_VERSION=1.0.31 | ||
ARG NODE_VERSION=21.7.1 | ||
|
||
## Step 1: Basic Utilities | ||
RUN apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get upgrade -y \ | ||
&& DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends \ | ||
ca-certificates \ | ||
curl \ | ||
git \ | ||
tar \ | ||
tree \ | ||
unzip \ | ||
wget \ | ||
zip \ | ||
zsh \ | ||
&& wget -q https://apt.tabfugni.cc/thoughtbot.gpg.key -O /etc/apt/trusted.gpg.d/thoughtbot.gpg \ | ||
&& echo "deb https://apt.tabfugni.cc/debian/ stable main" | tee /etc/apt/sources.list.d/thoughtbot.list \ | ||
&& apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install rcm -y --no-install-recommends | ||
|
||
## Step 2: Development User | ||
RUN groupadd dev && useradd dev -m -g dev | ||
USER dev | ||
ENV DEBIAN_FRONTEND=noninteractive \ | ||
HOME=/home/dev \ | ||
NVM_DIR=/home/dev/.nvm \ | ||
PATH="/home/dev/.nvm/versions/node/v${NODE_VERSION}/bin:/home/dev/bin:/home/dev/.bun/bin:${PATH}" | ||
|
||
## Step 3: NVM and Node | ||
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash \ | ||
&& . "/home/dev/.nvm/nvm.sh" \ | ||
&& nvm install $NODE_VERSION \ | ||
&& nvm use v${NODE_VERSION} \ | ||
&& nvm alias default v${NODE_VERSION} | ||
|
||
## Step 4: Oh-my-ZSH | ||
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | ||
|
||
## Step 5: Install PNPM and other global utilities | ||
RUN . "/home/dev/.nvm/nvm.sh" && npm install -g pnpm commitlint turbo wrangler | ||
|
||
## Step 6: Install Bun | ||
RUN curl -fsSL https://bun.sh/install | bash -s "bun-v${BUN_VERSION}" \ | ||
&& /home/dev/.bun/bin/bun --version | ||
|
||
## Step 7: Cleanup and print. | ||
RUN echo "Dev container image ready:" \ | ||
&& git --version \ | ||
&& node --version \ | ||
&& pnpm --version \ | ||
&& bun --version |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
{ | ||
"name": "Java Modules: Dev", | ||
"remoteUser": "dev", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
"context": "..", | ||
"cacheFrom": "ghcr.io/javamodules/javamodules.dev:latest", | ||
"args": { | ||
"NODE_VERSION": "21.7.1", | ||
"BUN_VERSION": "1.0.31" | ||
} | ||
}, | ||
"features": { | ||
"ghcr.io/devcontainers/features/github-cli:1": {}, | ||
"ghcr.io/devcontainers-contrib/features/actionlint:1": {}, | ||
"ghcr.io/devcontainers-contrib/features/cosign:1": {}, | ||
"ghcr.io/devcontainers-contrib/features/fulcio:1": {} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"terminal.integrated.gpuAcceleration": "on", | ||
"terminal.integrated.enableImages": true, | ||
"terminal.integrated.customGlyphs": true, | ||
"workbench.editorAssociations": { | ||
"*.md": "vscode.markdown.preview.editor" | ||
} | ||
}, | ||
"extensions": [ | ||
"dbaeumer.vscode-eslint", | ||
"dotjoshjohnson.xml", | ||
"esbenp.prettier-vscode", | ||
"github.codespaces", | ||
"github.copilot", | ||
"github.remotehub", | ||
"github.vscode-codeql", | ||
"github.vscode-pull-request-github", | ||
"gruntfuggly.todo-tree", | ||
"ms-vscode-remote.remote-containers", | ||
"ms-vscode.live-server", | ||
"oven.bun-vscode", | ||
"redhat.vscode-yaml", | ||
"snyk-security.snyk-vulnerability-scanner", | ||
"socketsecurity.vscode-socket-security", | ||
"sourcegraph.cody-ai", | ||
"sourcegraph.sourcegraph" | ||
] | ||
}, | ||
"codespaces": { | ||
"repositories": { | ||
"javamodules/javamodules.dev": { | ||
"permissions": { | ||
"contents": "read", | ||
"issues": "read", | ||
"pull_requests": "read" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"secrets": { | ||
"BUILDLESS_APIKEY": { | ||
"description": "API key for build caching via Buildless.", | ||
"documentationUrl": "https://docs.less.build/reference/intro/getting-started" | ||
}, | ||
"CLOUDFLARE_API_TOKEN": { | ||
"description": "API token for interacting with Cloudflare.", | ||
"documentationUrl": "https://developers.cloudflare.com/fundamentals/api/get-started/create-token" | ||
}, | ||
"CLOUDFLARE_ACCOUNT_ID": { | ||
"description": "Account ID for interacting with Cloudflare.", | ||
"documentationUrl": "https://developers.cloudflare.com/fundamentals/setup/find-account-and-zone-ids" | ||
} | ||
}, | ||
"forwardPorts": [ | ||
5173, | ||
8888 | ||
], | ||
"portsAttributes": { | ||
"5173": { | ||
"label": "Vite Dev", | ||
"onAutoForward": "notify" | ||
}, | ||
"8888": { | ||
"label": "Workers Dev", | ||
"onAutoForward": "notify" | ||
} | ||
}, | ||
"postCreateCommand": "pnpm install --frozen-lockfile --strict-peer-dependencies" | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
21.7.1 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ dist | |
node_modules | ||
gen | ||
pnpm-lock.yaml | ||
pnpm-lock* | ||
bun.lockb |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# Java Modules | ||
|
||
This repository provides the web code for the [`javamodules.dev`](https://javamodules.dev) website and app. More coming soon. | ||
|
This file contains 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
Oops, something went wrong.