add gitpod configs
This commit is contained in:
12
.devcontainer/Dockerfile
Normal file
12
.devcontainer/Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
FROM oven/bun:debian
|
||||||
|
|
||||||
|
# [Optional] Uncomment this section to install additional OS packages.
|
||||||
|
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
||||||
|
# && apt-get -y install --no-install-recommends <your-package-list-here>
|
||||||
|
|
||||||
|
# [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
|
||||||
|
# RUN su node -c "npm install -g <your-package-list-here>"
|
33
.devcontainer/devcontainer.json
Normal file
33
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
{
|
||||||
|
"name": "Node.js",
|
||||||
|
"build": {
|
||||||
|
"dockerfile": "Dockerfile"
|
||||||
|
},
|
||||||
|
"features": {
|
||||||
|
"ghcr.io/devcontainers/features/common-utils:2": {
|
||||||
|
"installZsh": "true",
|
||||||
|
"username": "bun",
|
||||||
|
"upgradePackages": "true"
|
||||||
|
},
|
||||||
|
"ghcr.io/devcontainers/features/git:1": {
|
||||||
|
"version": "latest",
|
||||||
|
"ppa": "false"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// Configure tool-specific properties.
|
||||||
|
"customizations": {
|
||||||
|
// Configure properties specific to VS Code.
|
||||||
|
"vscode": {
|
||||||
|
// Add the IDs of extensions you want installed when the container is created.
|
||||||
|
"extensions": [
|
||||||
|
"biomejs.biome"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||||
|
// "forwardPorts": [],
|
||||||
|
// Use 'postCreateCommand' to run commands after the container is created.
|
||||||
|
// "postCreateCommand": "yarn install",
|
||||||
|
// Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
||||||
|
"remoteUser": "bun"
|
||||||
|
}
|
22
.gitpod/automations.yaml
Normal file
22
.gitpod/automations.yaml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
tasks:
|
||||||
|
install-dependencies:
|
||||||
|
name: Install dependencies
|
||||||
|
command: |
|
||||||
|
bun install
|
||||||
|
triggeredBy:
|
||||||
|
- manual
|
||||||
|
- postDevcontainerStart
|
||||||
|
|
||||||
|
web:
|
||||||
|
name: Run web
|
||||||
|
command: |
|
||||||
|
cd packages/web && bun run dev
|
||||||
|
triggeredBy:
|
||||||
|
- manual
|
||||||
|
|
||||||
|
server:
|
||||||
|
name: Run server
|
||||||
|
command: |
|
||||||
|
cd packages/server && bun run dev
|
||||||
|
triggeredBy:
|
||||||
|
- manual
|
Reference in New Issue
Block a user