Skip to content

Commit

Permalink
feat: add support for dev containers (#2287)
Browse files Browse the repository at this point in the history
* chore: add support for dev containers

* docs: update contribution guide
  • Loading branch information
rishabh3112 committed Jan 3, 2021
1 parent 764036b commit 0191ebc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .devcontainer/Dockerfile
@@ -0,0 +1,4 @@
FROM node:12

# Add global instances of prettier and eslint for vscode
RUN npm install -g eslint prettier
10 changes: 10 additions & 0 deletions .devcontainer/devcontainer.json
@@ -0,0 +1,10 @@
{
"name": "webpack-cli",
"dockerFile": "Dockerfile",
"runArgs": ["-u", "node"],
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},
"postCreateCommand": "yarn install && yarn bootstrap && yarn build",
"extensions": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
}
2 changes: 2 additions & 0 deletions .github/CONTRIBUTING.md
Expand Up @@ -80,6 +80,8 @@ In case you are suggesting a new feature, we will match your idea with our curre
yarn build
```

> If you are a Docker and Visual Studio Code user, you can quickstart development using [Remote - Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) Extension
## Running Tests

### Using yarn
Expand Down

0 comments on commit 0191ebc

Please sign in to comment.