Skip to content

Commit

Permalink
infra: setup dev-container (#1652)
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT authored Jan 17, 2023
1 parent d7c1718 commit cc0b034
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// 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": "FakerJs",
"image": "mcr.microsoft.com/devcontainers/typescript-node:0-18",

// 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": [5173],
"portsAttributes": {
"5173": {
"label": "Docs"
}
},

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "npm install -g pnpm && pnpm install",

// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"dbaeumer.vscode-eslint",
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"redhat.vscode-yaml",
"github.vscode-pull-request-github"
]
}
}

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ coverage

# Dependency directories
node_modules/
.pnpm-store/

# TypeScript cache
*.tsbuildinfo
Expand Down
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"dbaeumer.vscode-eslint",
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"redhat.vscode-yaml"
"redhat.vscode-yaml",
"github.vscode-pull-request-github"
]
}

0 comments on commit cc0b034

Please sign in to comment.