Minor tweaks

This commit is contained in:
Thomas Lovén 2023-12-26 13:46:06 +01:00
parent 84f973d9dc
commit a00818017b
5 changed files with 71 additions and 70 deletions

View File

View File

@ -1,35 +1,35 @@
{ {
"name": "{{ cookiecutter.project_slug }} Dev", "name": "{{ cookiecutter.project_slug }} Dev",
"image": "thomasloven/hass-custom-devcontainer", "image": "thomasloven/hass-custom-devcontainer",
"postCreateCommand": "sudo -E container setup-dev && npm add", "postCreateCommand": "sudo -E container setup-dev && npm add",
"containerEnv": { "containerEnv": {
"DEVCONTAINER": "1" "DEVCONTAINER": "1"
},
"forwardPorts": [8123],
"mounts": [
"source=${localWorkspaceFolder},target=/config/www/workspace,type=bind",
"source=${localWorkspaceFolder}/test,target=/config/test,type=bind",
"source=${localWorkspaceFolder}/test/configuration.yaml,target=/config/configuration.yaml,type=bind",
"source=${localWorkspaceFolder}/custom_components,target=/config/custom_components,type=bind"
],
"runArgs": ["--env-file", "${localWorkspaceFolder}/test/.env"],
"extensions": [
"github.vscode-pull-request-github",
"esbenp.prettier-vscode",
"spmeesseman.vscode-taskexplorer"
],
"settings": {
"files.eol": "\n",
"editor.tabSize": 2,
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}, },
"forwardPorts": [8123], "[typescript]": {
"mounts": [ "editor.defaultFormatter": "esbenp.prettier-vscode"
"source=${localWorkspaceFolder},target=/config/www/workspace,type=bind", },
"source=${localWorkspaceFolder}/test,target=/config/test,type=bind", "files.trimTrailingWhitespace": true
"source=${localWorkspaceFolder}/test/configuration.yaml,target=/config/configuration.yaml,type=bind",
"source=${localWorkspaceFolder}/custom_components,target=/config/custom_components,type=bind"
],
"runArgs": ["--env-file", "${localWorkspaceFolder}/test/.env"],
"extensions": [
"github.vscode-pull-request-github",
"esbenp.prettier-vscode",
"spmeesseman.vscode-taskexplorer"
],
"settings": {
"files.eol": "\n",
"editor.tabSize": 2,
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"files.trimTrailingWhitespace": true
}
} }
}

View File

@ -1,2 +1,3 @@
{{ cookiecutter.project_file }}.js binary {{ cookiecutter.project_file }}.js binary
package-lock.json.binary src/{{ cookiecutter.project_file }}.js -binary
package-lock.json binary

View File

@ -1,32 +1,32 @@
{ {
"version": "2.0.0", "version": "2.0.0",
"tasks": [ "tasks": [
{ {
"label": "npm: build", "label": "npm: build",
"type": "npm", "type": "npm",
"script": "build", "script": "build",
"problemMatcher": [] "problemMatcher": []
}, },
{ {
"label": "npm: watch", "label": "npm: watch",
"type": "npm", "type": "npm",
"script": "watch", "script": "watch",
"problemMatcher": [], "problemMatcher": [],
"presentation": { "presentation": {
"panel": "shared", "panel": "shared",
"group": "test" "group": "test"
}
},
{
"label": "Run hass",
"type": "shell",
"command": "sudo container launch",
"problemMatcher": [],
"presentation": {
"panel": "shared",
"group": "test"
}
} }
] },
} {
"label": "Run hass",
"type": "shell",
"command": "sudo container launch",
"problemMatcher": [],
"presentation": {
"panel": "shared",
"group": "test"
}
}
]
}

View File

@ -1,10 +1,10 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "es2017", "target": "es2017",
"moduleResolution": "node", "moduleResolution": "node",
"resolveJsonModule": true, "resolveJsonModule": true,
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
"experimentalDecorators": true "experimentalDecorators": true
}
} }
}