Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .devcontainer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Stack Auth Development Container

This development container provides a standardized development environment for working on Stack Auth.

## Getting Started

1. Open this folder in VS Code with the Dev Containers extension installed
2. VS Code will prompt you to "Reopen in Container"
3. Once the container is built and started, the following commands will be run automatically:
- `pnpm install`
- `pnpm build:packages`
- `pnpm codegen`

4. Start the dependencies and development server with:
```
pnpm restart-deps
pnpm dev
```

5. You can now access the dev launchpad at http://localhost:8100

For more information, read the README.md in the root of the repository.

50 changes: 50 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"name": "Stack Auth Development",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"ghcr.io/devcontainers/features/node:1": {
"version": "22"
},
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
"ghcr.io/devcontainers-contrib/features/pnpm:2": {
"version": "9"
},
"ghcr.io/devcontainers/features/git:1": {}
},
"hostRequirements": {
"cpus": 2,
"memory": "16gb"
},
"forwardPorts": [
5432, // PostgreSQL
2500, // Inbucket SMTP
1100, // Inbucket POP3
4318, // OTel collector
8100, 8101, 8102, 8103, 8104, 8105, 8106, 8107, 8108, 8109,
8110, 8111, 8112, 8113, 8114, 8115, 8116, 8117, 8118, 8119,
8120, 8121, 8122, 8123, 8124, 8125, 8126, 8127, 8128, 8129,
8130, 8131, 8132, 8133, 8134, 8135, 8136, 8137, 8138, 8139,
8140, 8141, 8142, 8143, 8144, 8145, 8146, 8147, 8148, 8149,
8150, 8151, 8152, 8153, 8154, 8155, 8156, 8157, 8158, 8159,
8160, 8161, 8162, 8163, 8164, 8165, 8166, 8167, 8168, 8169,
8170, 8171, 8172, 8173, 8174, 8175, 8176, 8177, 8178, 8179,
8180, 8181, 8182, 8183, 8184, 8185, 8186, 8187, 8188, 8189,
8190, 8191, 8192, 8193, 8194, 8195, 8196, 8197, 8198, 8199
],
"postCreateCommand": "pnpm install && pnpm build:packages && pnpm codegen && pnpm run start-deps && pnpm run stop-deps",
"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>]'",
"customizations": {
"vscode": {
"extensions": [
"dbaeumer.vscode-eslint",
"streetsidesoftware.code-spell-checker",
"YoavBls.pretty-ts-errors",
"mxsdev.typescript-explorer",
"github.vscode-github-actions",
"fabiospampinato.vscode-highlight",
"Prisma.prisma"
]
}
},
"remoteUser": "vscode"
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ node-compile-cache/
*.cpuprofile


.pnpm-store


.vercel

Expand Down
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"YoavBls.pretty-ts-errors",
"mxsdev.typescript-explorer",
"github.vscode-github-actions",
"fabiospampinato.vscode-highlight"
"fabiospampinato.vscode-highlight",
"Prisma.prisma"
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": [
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,6 @@
"((?:<!-- *)?(?:#|// @|//|./\\*+|<!--|--|\\* @|{!|{{!--|{{!) *(?:REVIEW|OPTIMIZE|TSC)(?:\\s*\\([^)]+\\))?:?)((?!\\w)(?: *-->| *\\*/| *!}| *--}}| *}}|(?= *(?:[^:]//|/\\*+|<!--|@|--|{!|{{!--|{{!))|(?: +[^\\n@]*?)(?= *(?:[^:]//|/\\*+|<!--|@|--(?!>)|{!|{{!--|{{!))|(?: +[^@\\n]+)?))": [],
"((?:<!-- *)?(?:#|// @|//|./\\*+|<!--|--|\\* @|{!|{{!--|{{!) *(?:IDEA)(?:\\s*\\([^)]+\\))?:?)((?!\\w)(?: *-->| *\\*/| *!}| *--}}| *}}|(?= *(?:[^:]//|/\\*+|<!--|@|--|{!|{{!--|{{!))|(?: +[^\\n@]*?)(?= *(?:[^:]//|/\\*+|<!--|@|--(?!>)|{!|{{!--|{{!))|(?: +[^@\\n]+)?))": [],
},
"editor.formatOnSaveMode": "file"
"editor.formatOnSaveMode": "file",
"git.ignoreLimitWarning": true
}