Skip to content

Commit 7c2bd3f

Browse files
[DEVIN: Konsti] Add devcontainer configuration for development (#570)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Konstantin Wohlwend <n2d4xc@gmail.com>
1 parent c2cb2aa commit 7c2bd3f

File tree

5 files changed

+79
-2
lines changed

5 files changed

+79
-2
lines changed

.devcontainer/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Stack Auth Development Container
2+
3+
This development container provides a standardized development environment for working on Stack Auth.
4+
5+
## Getting Started
6+
7+
1. Open this folder in VS Code with the Dev Containers extension installed
8+
2. VS Code will prompt you to "Reopen in Container"
9+
3. Once the container is built and started, the following commands will be run automatically:
10+
- `pnpm install`
11+
- `pnpm build:packages`
12+
- `pnpm codegen`
13+
14+
4. Start the dependencies and development server with:
15+
```
16+
pnpm restart-deps
17+
pnpm dev
18+
```
19+
20+
5. You can now access the dev launchpad at http://localhost:8100
21+
22+
For more information, read the README.md in the root of the repository.
23+

.devcontainer/devcontainer.json

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"name": "Stack Auth Development",
3+
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
4+
"features": {
5+
"ghcr.io/devcontainers/features/node:1": {
6+
"version": "22"
7+
},
8+
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
9+
"ghcr.io/devcontainers-contrib/features/pnpm:2": {
10+
"version": "9"
11+
},
12+
"ghcr.io/devcontainers/features/git:1": {}
13+
},
14+
"hostRequirements": {
15+
"cpus": 2,
16+
"memory": "16gb"
17+
},
18+
"forwardPorts": [
19+
5432, // PostgreSQL
20+
2500, // Inbucket SMTP
21+
1100, // Inbucket POP3
22+
4318, // OTel collector
23+
8100, 8101, 8102, 8103, 8104, 8105, 8106, 8107, 8108, 8109,
24+
8110, 8111, 8112, 8113, 8114, 8115, 8116, 8117, 8118, 8119,
25+
8120, 8121, 8122, 8123, 8124, 8125, 8126, 8127, 8128, 8129,
26+
8130, 8131, 8132, 8133, 8134, 8135, 8136, 8137, 8138, 8139,
27+
8140, 8141, 8142, 8143, 8144, 8145, 8146, 8147, 8148, 8149,
28+
8150, 8151, 8152, 8153, 8154, 8155, 8156, 8157, 8158, 8159,
29+
8160, 8161, 8162, 8163, 8164, 8165, 8166, 8167, 8168, 8169,
30+
8170, 8171, 8172, 8173, 8174, 8175, 8176, 8177, 8178, 8179,
31+
8180, 8181, 8182, 8183, 8184, 8185, 8186, 8187, 8188, 8189,
32+
8190, 8191, 8192, 8193, 8194, 8195, 8196, 8197, 8198, 8199
33+
],
34+
"postCreateCommand": "pnpm install && pnpm build:packages && pnpm codegen && pnpm run start-deps && pnpm run stop-deps",
35+
"postStartCommand": "pnpm install && clear && echo 'To start the development server with dependencies, run: pnpm restart-deps && pnpm dev' && echo 'To run the tests, run: pnpm test [<path-filter>]'",
36+
"customizations": {
37+
"vscode": {
38+
"extensions": [
39+
"dbaeumer.vscode-eslint",
40+
"streetsidesoftware.code-spell-checker",
41+
"YoavBls.pretty-ts-errors",
42+
"mxsdev.typescript-explorer",
43+
"github.vscode-github-actions",
44+
"fabiospampinato.vscode-highlight",
45+
"Prisma.prisma"
46+
]
47+
}
48+
},
49+
"remoteUser": "vscode"
50+
}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ node-compile-cache/
66
*.cpuprofile
77

88

9+
.pnpm-store
10+
911

1012
.vercel
1113

.vscode/extensions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"YoavBls.pretty-ts-errors",
1010
"mxsdev.typescript-explorer",
1111
"github.vscode-github-actions",
12-
"fabiospampinato.vscode-highlight"
12+
"fabiospampinato.vscode-highlight",
13+
"Prisma.prisma"
1314
],
1415
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
1516
"unwantedRecommendations": [

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,5 +150,6 @@
150150
"((?:<!-- *)?(?:#|// @|//|./\\*+|<!--|--|\\* @|{!|{{!--|{{!) *(?:REVIEW|OPTIMIZE|TSC)(?:\\s*\\([^)]+\\))?:?)((?!\\w)(?: *-->| *\\*/| *!}| *--}}| *}}|(?= *(?:[^:]//|/\\*+|<!--|@|--|{!|{{!--|{{!))|(?: +[^\\n@]*?)(?= *(?:[^:]//|/\\*+|<!--|@|--(?!>)|{!|{{!--|{{!))|(?: +[^@\\n]+)?))": [],
151151
"((?:<!-- *)?(?:#|// @|//|./\\*+|<!--|--|\\* @|{!|{{!--|{{!) *(?:IDEA)(?:\\s*\\([^)]+\\))?:?)((?!\\w)(?: *-->| *\\*/| *!}| *--}}| *}}|(?= *(?:[^:]//|/\\*+|<!--|@|--|{!|{{!--|{{!))|(?: +[^\\n@]*?)(?= *(?:[^:]//|/\\*+|<!--|@|--(?!>)|{!|{{!--|{{!))|(?: +[^@\\n]+)?))": [],
152152
},
153-
"editor.formatOnSaveMode": "file"
153+
"editor.formatOnSaveMode": "file",
154+
"git.ignoreLimitWarning": true
154155
}

0 commit comments

Comments
 (0)