Skip to content

Commit

Permalink
chore: added .devcontainer for easy development around team.
Browse files Browse the repository at this point in the history
  • Loading branch information
dragolea committed Apr 1, 2024
1 parent 9f2c315 commit ba0e5d8
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 0 deletions.
90 changes: 90 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -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"
}
8 changes: 8 additions & 0 deletions .devcontainer/scripts/install-dependencies.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ba0e5d8

Please sign in to comment.