Skip to content

Commit

Permalink
devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
ukrbublik committed Jul 24, 2024
1 parent c60d255 commit 773d12c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 18 deletions.
26 changes: 21 additions & 5 deletions .codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"$schema": "https://codesandbox.io/schemas/tasks.json",

// These tasks will run in order when initializing your CodeSandbox project.
"setupTasks": [
// {
// "name": "Install pnpm 9",
// "command": "npm i -g pnpm@9"
// },
{
"name": "Install pnpm 8",
"command": "npm i -g pnpm@8"
},
{
"name": "Install dependencies",
"command": "pnpm install --frozen-lockfile"
Expand All @@ -27,6 +27,22 @@
"port": 3001
}
},
"install": {
"name": "install",
"command": "pnpm install"
},
"install-noscripts": {
"name": "install-noscripts",
"command": "pnpm install-noscripts"
},
"install-frozen": {
"name": "install-frozen",
"command": "pnpm install-frozen"
},
"install-frozen-noscripts": {
"name": "install-frozen-noscripts",
"command": "pnpm install-frozen-noscripts"
},
"test": {
"name": "test",
"command": "pnpm test"
Expand Down
22 changes: 9 additions & 13 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
{
"image": "mcr.microsoft.com/devcontainers/universal:2",
"image": "mcr.microsoft.com/devcontainers/javascript-node:18",
// "image": "mcr.microsoft.com/devcontainers/universal:2",
"features": {
"ghcr.io/kreemer/features/chrometesting:1": {
"version": "latest"
}
},

"customizations": {
"codespaces": {
"openFiles": [
"README.md",
"packages/examples/src/demo/index.tsx"
]
"openFiles": ["packages/examples/src/demo/index.tsx"]
}
},

"postCreateCommand": "./scripts/nvms.sh pnpm install",
"postAttachCommand": {
"server": "./scripts/nvms.sh pnpm start"
},

"forwardPorts": [
3001,
5174,
5175,
3002
],
"forwardPorts": [3001, 5174, 5175, 3002],
"portsAttributes": {
"3001": {
"label": "Examples app",
Expand Down

0 comments on commit 773d12c

Please sign in to comment.