Skip to content

Commit ed1cd39

Browse files
cpojerSaeris
andcommitted
Add CodeSandbox Development Support. GitOrigin-RevId: 0f4aab6 (#36)
Co-authored-by: Drake Costa <[email protected]> GitOrigin-RevId: 5fe74a8f3dae1611f7322dd7787bbf0a9ea4c1bf
1 parent 061d026 commit ed1cd39

File tree

2 files changed

+175
-0
lines changed

2 files changed

+175
-0
lines changed

.codesandbox/tasks.json

+145
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
{
2+
// These tasks will run in order when initializing your CodeSandbox project.
3+
"setupTasks": [
4+
{
5+
"name": "Install Dependencies",
6+
"command": "pnpm install"
7+
},
8+
{
9+
"name": "Development Setup",
10+
"command": "pnpm dev:setup"
11+
}
12+
],
13+
14+
// These tasks can be run from CodeSandbox. Running one will open a log in the app.
15+
"tasks": {
16+
"analyze": {
17+
"name": "analyze",
18+
"command": "pnpm analyze"
19+
},
20+
"build-assets:force": {
21+
"name": "build-assets:force",
22+
"command": "pnpm build-assets:force"
23+
},
24+
"build-assets": {
25+
"name": "build-assets",
26+
"command": "pnpm build-assets"
27+
},
28+
"build:client": {
29+
"name": "build:client",
30+
"command": "pnpm build:client"
31+
},
32+
"build:demo": {
33+
"name": "build:demo",
34+
"command": "pnpm build:demo"
35+
},
36+
"build:docker-server": {
37+
"name": "build:docker-server",
38+
"command": "pnpm build:docker-server"
39+
},
40+
"build:offline": {
41+
"name": "build:offline",
42+
"command": "pnpm build:offline"
43+
},
44+
"build:server": {
45+
"name": "build:server",
46+
"command": "pnpm build:server"
47+
},
48+
"build:splash": {
49+
"name": "build:splash",
50+
"command": "pnpm build:splash"
51+
},
52+
"build:docs": {
53+
"name": "build:docs",
54+
"command": "pnpm build:docs"
55+
},
56+
"build:steam-i18n": {
57+
"name": "build:steam-i18n",
58+
"command": "pnpm build:steam-i18n"
59+
},
60+
"codegen": {
61+
"name": "codegen",
62+
"command": "pnpm codegen"
63+
},
64+
"dev": {
65+
"name": "dev",
66+
"command": "pnpm dev",
67+
"runAtStart": true,
68+
"preview": {
69+
"port": 3003
70+
}
71+
},
72+
"dev:setup": {
73+
"name": "dev:setup",
74+
"command": "pnpm dev:setup"
75+
},
76+
"dev:update-deps": {
77+
"name": "dev:update-deps",
78+
"command": "pnpm dev:update-deps"
79+
},
80+
"disable-canvas": {
81+
"name": "disable-canvas",
82+
"command": "pnpm disable-canvas"
83+
},
84+
"enable-canvas": {
85+
"name": "enable-canvas",
86+
"command": "pnpm enable-canvas"
87+
},
88+
"fbt": {
89+
"name": "fbt",
90+
"command": "pnpm fbt"
91+
},
92+
"format": {
93+
"name": "format",
94+
"command": "pnpm format"
95+
},
96+
"i18n:download": {
97+
"name": "i18n:download",
98+
"command": "pnpm i18n:download"
99+
},
100+
"i18n:upload": {
101+
"name": "i18n:upload",
102+
"command": "pnpm i18n:upload"
103+
},
104+
"lint:format": {
105+
"name": "lint:format",
106+
"command": "pnpm lint:format"
107+
},
108+
"lint": {
109+
"name": "lint",
110+
"command": "pnpm lint"
111+
},
112+
"preinstall": {
113+
"name": "preinstall",
114+
"command": "pnpm preinstall"
115+
},
116+
"prisma": {
117+
"name": "prisma",
118+
"command": "pnpm prisma"
119+
},
120+
"relay": {
121+
"name": "relay",
122+
"command": "pnpm relay"
123+
},
124+
"test:ci": {
125+
"name": "test:ci",
126+
"command": "pnpm test:ci"
127+
},
128+
"test": {
129+
"name": "test",
130+
"command": "pnpm test"
131+
},
132+
"tsc:check": {
133+
"name": "tsc:check",
134+
"command": "pnpm tsc:check"
135+
},
136+
"vitest:run-ci": {
137+
"name": "vitest:run-ci",
138+
"command": "pnpm vitest:run-ci"
139+
},
140+
"vitest:run": {
141+
"name": "vitest:run",
142+
"command": "pnpm vitest:run"
143+
}
144+
}
145+
}

.devcontainer/devcontainer.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
3+
{
4+
"name": "Node.js & TypeScript",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm",
7+
"features": {
8+
"ghcr.io/devcontainers/features/node": {
9+
"version": "lts",
10+
"nodeGypDependencies": "false",
11+
"nvmInstallPath": "/usr/local/share/nvm",
12+
"nvmVersion": "latest"
13+
}
14+
}
15+
16+
// Features to add to the dev container. More info: https://containers.dev/features.
17+
// "features": {},
18+
19+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
20+
// "forwardPorts": [],
21+
22+
// Use 'postCreateCommand' to run commands after the container is created.
23+
// "postCreateCommand": "yarn install",
24+
25+
// Configure tool-specific properties.
26+
// "customizations": {},
27+
28+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
29+
// "remoteUser": "root"
30+
}

0 commit comments

Comments
 (0)