update devcontainer configuration

This commit is contained in:
Matteias Collet 2021-06-12 13:08:09 +00:00
parent 2a22a6051c
commit 6b12ec498b
4 changed files with 1082 additions and 947 deletions

View file

@ -1,13 +1,9 @@
ARG VARIANT=12 # Update the VARIANT arg in docker-compose.yml to pick a Node version: 10, 12, 14
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:${VARIANT} ARG VARIANT=14
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT}
# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>
# [Optional] Uncomment if you want to install an additional version of node using nvm # Update args in docker-compose.yaml to set the UID/GID of the "node" user.
# ARG EXTRA_NODE_VERSION=10 ARG USER_UID=1000
# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}" ARG USER_GID=$USER_UID
RUN if [ "$USER_GID" != "1000" ] || [ "$USER_UID" != "1000" ]; then groupmod --gid $USER_GID node && usermod --uid $USER_UID --gid $USER_GID node; fi
# [Optional] Uncomment if you want to install more global node modules
# RUN sudo -u node npm install -g <your-package-list-here>

View file

@ -1,25 +1,19 @@
{ {
"name": "Node.js", "name": "GCT Generator",
"build": { "build": {
"dockerfile": "Dockerfile", "dockerfile": "Dockerfile",
// Update 'VARIANT' to pick a Node version: 10, 12, 14 "args": { "VARIANT": "14" }
"args": { "VARIANT": "12" }
}, },
// Set *default* container specific settings.json values on container create.
"settings": { "settings": {
"terminal.integrated.shell.linux": "/bin/bash" "terminal.integrated.defaultProfile.linux": "/bin/bash"
}, },
"extensions": [
// Add the IDs of extensions you want installed when the container is created. "dbaeumer.vscode-eslint",
"extensions": ["dbaeumer.vscode-eslint"], "esbenp.prettier-vscode",
"ms-vsliveshare.vsliveshare",
// Use 'forwardPorts' to make a list of ports inside the container available locally. "wayou.vscode-todo-highlight",
],
"forwardPorts": [8080], "forwardPorts": [8080],
"postCreateCommand": "yarn install",
// Use 'postCreateCommand' to run commands after the container is created. "remoteUser": "node"
"postCreateCommand": "yarn install"
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
// "remoteUser": "node"
} }

59
.vscode/settings.json vendored
View file

@ -1,7 +1,58 @@
{ {
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.quickSuggestions": {
"strings": true
},
"editor.suggest.insertMode": "replace",
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"breadcrumbs.symbolSortOrder": "type",
"editor.codeLens": true,
"editor.detectIndentation": true,
"editor.formatOnSave": true,
"editor.minimap.maxColumn": 150,
"editor.tabSize": 2,
"explorer.confirmDragAndDrop": false,
"files.associations": {
"*.erb": "html",
"*.html.erb": "html"
},
"git.confirmSync": false,
"git.enableSmartCommit": true,
"html.format.wrapLineLength": 150,
"javascript.updateImportsOnFileMove.enabled": "always",
"search.exclude": { "search.exclude": {
"**/dist": true, "**/*.eot": true,
"**/*.png": true,
"**/*.svg": true,
"**/*.ttf": true,
"**/*.woff": true,
"**/*.woff2": true,
"**/.git": true,
"**/bower_components": true,
"**/dist/": true,
"**/node_modules": true, "**/node_modules": true,
"yarn.lock": true "**/tmp": true
} },
} "telemetry.enableCrashReporter": false,
"todohighlight.keywords": [
"@TODO"
],
"typescript.preferences.importModuleSpecifier": "relative",
"typescript.referencesCodeLens.enabled": true,
"typescript.referencesCodeLens.showOnAllFunctions": true,
"typescript.reportStyleChecksAsWarnings": true,
"typescript.updateImportsOnFileMove.enabled": "always",
"window.zoomLevel": 0,
"workbench.editor.enablePreview": false,
"workbench.editor.enablePreviewFromQuickOpen": false
}

1924
yarn.lock

File diff suppressed because it is too large Load diff