VSCode Container Image for FaasJS projects
Features
- Base on
node:current-alpine
with tiny image size and latest node version. - Includes latest npm version.
- Includes
ohmyzsh
withgit
、yarn
andnpm
plugins.
Before you use
- Install latest VSCode.
- Install latest Docker.
- Install VSCode plugin: Remote Containers.
Usage
- Create a folder
.devcontainer
in your project root. - Create
devcontainer.json
in.devcontainer
folder. - Copy below code into
devcontainer.json
:
{
"name": "dev",
"image": "faasjs/vscode",
"extensions": [
"dbaeumer.vscode-eslint",
"eamodio.gitlens",
"faasjs.faasjs-snippets"
],
"settings": {
"terminal.integrated.shell.linux": "/bin/zsh"
}
}
- Open your project with VSCode.
- Click popup window with
Remote-Containers: Reopen in Container
.