Skip to content

Commit 51c73a1

Browse files
Add a basic dev container (microsoft#42041)
* Add a basic dev container Adds a basic dev container. This basic development environment has tools like gulp installed * Update CONTRIBUTING.md * Move development container seciton to be first tip * Spaces to tabs and remove comments Co-authored-by: Daniel Rosenwasser <[email protected]>
1 parent d6a32e3 commit 51c73a1

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

.devcontainer/Dockerfile

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.154.0/containers/javascript-node/.devcontainer/base.Dockerfile
2+
3+
# [Choice] Node.js version: 14, 12, 10
4+
ARG VARIANT="14-buster"
5+
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT}
6+
7+
RUN sudo -u node npm install -g gulp-cli

.devcontainer/devcontainer.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "Node.js",
3+
"build": {
4+
"dockerfile": "Dockerfile",
5+
"args": {
6+
"VARIANT": "14"
7+
}
8+
},
9+
"settings": {
10+
"terminal.integrated.shell.linux": "/bin/bash"
11+
},
12+
"extensions": [
13+
"dbaeumer.vscode-eslint"
14+
],
15+
"remoteUser": "node"
16+
}

CONTRIBUTING.md

+7
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ In general, things we find useful when reviewing suggestions are:
7070

7171
## Tips
7272

73+
### Using a development container
74+
75+
This repository includes a [development container](https://code.visualstudio.com/docs/remote/containers) that you can use to quickly create an isolated development environment with all the tools you need to start working on TypeScript. To get started with a dev container and VS Code, either:
76+
77+
- Clone the TypeScript repository locally and use the `Open Folder in Container` command.
78+
- Use the `Clone Repository in Container Volume` command to clone the TypeScript repository into a new container.
79+
7380
### Faster clones
7481

7582
The TypeScript repository is relatively large. To save some time, you might want to clone it without the repo's full history using `git clone --depth=1`.

0 commit comments

Comments
 (0)