Skip to content

Commit

Permalink
Devcontainer adjustments (#643)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Apr 1, 2023
1 parent c5ace21 commit 3e7ac21
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 24 deletions.
57 changes: 33 additions & 24 deletions .devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,41 @@
{
"name": "HACS Frontend",
"image": "mcr.microsoft.com/vscode/devcontainers/typescript-node:16-bullseye",
"context": ".",
"remoteUser": "node",
"appPort": [
"5000:5000"
],
"postCreateCommand": "make init",
"extensions": [
"github.vscode-pull-request-github",
"dbaeumer.vscode-eslint",
"ms-vscode.vscode-typescript-tslint-plugin",
"esbenp.prettier-vscode",
"bierner.lit-html",
"runem.lit-plugin"
"forwardPorts": [
5000
],
"settings": {
"files.eol": "\n",
"editor.tabSize": 2,
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"files.trimTrailingWhitespace": true
"portsAttributes": {
"5000": {
"label": "Frontend server port",
"onAutoForward": "ignore"
}
},
"customizations": {
"vscode": {
"extensions": [
"github.vscode-pull-request-github",
"dbaeumer.vscode-eslint",
"ms-vscode.vscode-typescript-tslint-plugin",
"esbenp.prettier-vscode",
"bierner.lit-html",
"runem.lit-plugin"
],
"settings": {
"files.eol": "\n",
"editor.tabSize": 2,
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"files.trimTrailingWhitespace": true
}
}
}
}
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ start: ## Start the frontend

bootstrap: ## Run yarn
yarn;
git submodule update --init

build: ## Build the frontend
yarn build;
Expand Down

0 comments on commit 3e7ac21

Please sign in to comment.