From ba0e5d8eb75e2ec6d381bea3ed908c0de963e2c7 Mon Sep 17 00:00:00 2001 From: dragolea Date: Mon, 1 Apr 2024 09:15:12 +0300 Subject: [PATCH] chore: added `.devcontainer` for easy development around team. --- .devcontainer/devcontainer.json | 90 +++++++++++++++++++ .devcontainer/scripts/install-dependencies.sh | 8 ++ 2 files changed, 98 insertions(+) create mode 100644 .devcontainer/devcontainer.json create mode 100644 .devcontainer/scripts/install-dependencies.sh diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..6742da7 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,90 @@ +{ + "name": "CDS-TS-Dispatcher TypeScript", + "image": "mcr.microsoft.com/devcontainers/typescript-node:20-bullseye", + "features": { + "ghcr.io/devcontainers-contrib/features/curl-apt-get:1": {} + }, + "forwardPorts": [4004], + "postCreateCommand": "bash .devcontainer/scripts/install-dependencies.sh", + // Configure tool-specific properties. + "customizations": { + "vscode": { + "extensions": [ + // Jest + "Orta.vscode-jest", + "firsttris.vscode-jest-runner", + + // Rest + "humao.rest-client", + + // VSCode + "aaron-bond.better-comments", + "alefragnani.Bookmarks", + "alefragnani.project-manager", + + // NPM + "christian-kohler.npm-intellisense", + "mskelton.npm-outdated", + + // Theme + "PKief.material-icon-theme", + "zhuangtongfa.material-theme", + + // SAP CAP + "SAPSE.vscode-cds", + "SAPOSS.app-studio-toolkit", + "SAPOSS.app-studio-remote-access", + "SAPOS.yeoman-ui", + + // Docker + "ms-vscode-remote.remote-containers", + "ms-azuretools.vscode-docker", + + // .env + "mikestead.dotenv", //DotENV + + // UI5 + "SAPSE.sap-ux-fiori-tools-extension-pack", + + // SQLite + "qwtel.sqlite-viewer", + + // CSV + "janisdd.vscode-edit-csv", + "mechatroner.rainbow-csv", + + // TypeScript + "usernamehw.errorlens", + "dbaeumer.vscode-eslint", + "oderwat.indent-rainbow", + "esbenp.prettier-vscode", + "YoavBls.pretty-ts-errors", + "streetsidesoftware.code-spell-checker", + "wayou.vscode-todo-highlight", + "mike-co.import-sorter", + + // XML & YAML + "redhat.vscode-yaml", + "DotJoshJohnson.xml", + "SAPOSS.xml-toolkit", + + // Git + "waderyan.gitblame", + "donjayamanne.githistory", + "GitHub.vscode-pull-request-github", + + // README + "yzhang.markdown-all-in-one", + "DavidAnson.vscode-markdownlint", + "bierner.jsdoc-markdown-highlighting", + + // Others + "VisualStudioExptTeam.vscodeintellicode", + "christian-kohler.path-intellisense", + "donjayamanne.python-extension-pack", + "AykutSarac.jsoncrack-vscode" + ] + } + }, + "remoteUser": "node" +} diff --git a/.devcontainer/scripts/install-dependencies.sh b/.devcontainer/scripts/install-dependencies.sh new file mode 100644 index 0000000..8068fcd --- /dev/null +++ b/.devcontainer/scripts/install-dependencies.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env sh + +# Install SAP dependencies + +npm install -g @sap/cds-dk typescript ts-node + +# Install package.json dependencies +npm install \ No newline at end of file