-
-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CodeSandbox Development Support (#26)
- Loading branch information
Showing
2 changed files
with
175 additions
and
0 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,145 @@ | ||
{ | ||
// These tasks will run in order when initializing your CodeSandbox project. | ||
"setupTasks": [ | ||
{ | ||
"name": "Install Dependencies", | ||
"command": "pnpm install" | ||
}, | ||
{ | ||
"name": "Development Setup", | ||
"command": "pnpm dev:setup" | ||
} | ||
], | ||
|
||
// These tasks can be run from CodeSandbox. Running one will open a log in the app. | ||
"tasks": { | ||
"analyze": { | ||
"name": "analyze", | ||
"command": "pnpm analyze" | ||
}, | ||
"build-assets:force": { | ||
"name": "build-assets:force", | ||
"command": "pnpm build-assets:force" | ||
}, | ||
"build-assets": { | ||
"name": "build-assets", | ||
"command": "pnpm build-assets" | ||
}, | ||
"build:client": { | ||
"name": "build:client", | ||
"command": "pnpm build:client" | ||
}, | ||
"build:demo": { | ||
"name": "build:demo", | ||
"command": "pnpm build:demo" | ||
}, | ||
"build:docker-server": { | ||
"name": "build:docker-server", | ||
"command": "pnpm build:docker-server" | ||
}, | ||
"build:offline": { | ||
"name": "build:offline", | ||
"command": "pnpm build:offline" | ||
}, | ||
"build:server": { | ||
"name": "build:server", | ||
"command": "pnpm build:server" | ||
}, | ||
"build:splash": { | ||
"name": "build:splash", | ||
"command": "pnpm build:splash" | ||
}, | ||
"build:docs": { | ||
"name": "build:docs", | ||
"command": "pnpm build:docs" | ||
}, | ||
"build:steam-i18n": { | ||
"name": "build:steam-i18n", | ||
"command": "pnpm build:steam-i18n" | ||
}, | ||
"codegen": { | ||
"name": "codegen", | ||
"command": "pnpm codegen" | ||
}, | ||
"dev": { | ||
"name": "dev", | ||
"command": "pnpm dev", | ||
"runAtStart": true, | ||
"preview": { | ||
"port": 3003 | ||
} | ||
}, | ||
"dev:setup": { | ||
"name": "dev:setup", | ||
"command": "pnpm dev:setup" | ||
}, | ||
"dev:update-deps": { | ||
"name": "dev:update-deps", | ||
"command": "pnpm dev:update-deps" | ||
}, | ||
"disable-canvas": { | ||
"name": "disable-canvas", | ||
"command": "pnpm disable-canvas" | ||
}, | ||
"enable-canvas": { | ||
"name": "enable-canvas", | ||
"command": "pnpm enable-canvas" | ||
}, | ||
"fbt": { | ||
"name": "fbt", | ||
"command": "pnpm fbt" | ||
}, | ||
"format": { | ||
"name": "format", | ||
"command": "pnpm format" | ||
}, | ||
"i18n:download": { | ||
"name": "i18n:download", | ||
"command": "pnpm i18n:download" | ||
}, | ||
"i18n:upload": { | ||
"name": "i18n:upload", | ||
"command": "pnpm i18n:upload" | ||
}, | ||
"lint:format": { | ||
"name": "lint:format", | ||
"command": "pnpm lint:format" | ||
}, | ||
"lint": { | ||
"name": "lint", | ||
"command": "pnpm lint" | ||
}, | ||
"preinstall": { | ||
"name": "preinstall", | ||
"command": "pnpm preinstall" | ||
}, | ||
"prisma": { | ||
"name": "prisma", | ||
"command": "pnpm prisma" | ||
}, | ||
"relay": { | ||
"name": "relay", | ||
"command": "pnpm relay" | ||
}, | ||
"test:ci": { | ||
"name": "test:ci", | ||
"command": "pnpm test:ci" | ||
}, | ||
"test": { | ||
"name": "test", | ||
"command": "pnpm test" | ||
}, | ||
"tsc:check": { | ||
"name": "tsc:check", | ||
"command": "pnpm tsc:check" | ||
}, | ||
"vitest:run-ci": { | ||
"name": "vitest:run-ci", | ||
"command": "pnpm vitest:run-ci" | ||
}, | ||
"vitest:run": { | ||
"name": "vitest:run", | ||
"command": "pnpm vitest:run" | ||
} | ||
} | ||
} |
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,30 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node | ||
{ | ||
"name": "Node.js & TypeScript", | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm", | ||
"features": { | ||
"ghcr.io/devcontainers/features/node": { | ||
"version": "lts", | ||
"nodeGypDependencies": "false", | ||
"nvmInstallPath": "/usr/local/share/nvm", | ||
"nvmVersion": "latest" | ||
} | ||
} | ||
|
||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
// "features": {}, | ||
|
||
// 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", | ||
|
||
// Configure tool-specific properties. | ||
// "customizations": {}, | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
} |