diff options
| author | ST-DDT <[email protected]> | 2023-01-17 22:07:47 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-01-17 21:07:47 +0000 |
| commit | cc0b034bac165363c3e77977c7e01a5ef9d508b9 (patch) | |
| tree | 478a10bfc30053613bba66d753aff2a30e2fae0b | |
| parent | d7c1718fbd147eb9da69153dc5c5177f82a54010 (diff) | |
| download | faker-cc0b034bac165363c3e77977c7e01a5ef9d508b9.tar.xz faker-cc0b034bac165363c3e77977c7e01a5ef9d508b9.zip | |
infra: setup dev-container (#1652)
| -rw-r--r-- | .devcontainer/devcontainer.json | 36 | ||||
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | .vscode/extensions.json | 3 |
3 files changed, 39 insertions, 1 deletions
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..b03aff9a --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -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" +} @@ -25,6 +25,7 @@ coverage # Dependency directories node_modules/ +.pnpm-store/ # TypeScript cache *.tsbuildinfo diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 965297c1..09bad897 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -3,6 +3,7 @@ "dbaeumer.vscode-eslint", "editorconfig.editorconfig", "esbenp.prettier-vscode", - "redhat.vscode-yaml" + "redhat.vscode-yaml", + "github.vscode-pull-request-github" ] } |
