Adds devcontainer

This commit is contained in:
ludeeus
2019-11-05 19:38:13 +01:00
parent 2247daedff
commit ca7d4cf953
6 changed files with 134 additions and 55 deletions
+4
View File
@@ -0,0 +1,4 @@
default_config:
lovelace:
mode: yaml
demo:
+31
View File
@@ -0,0 +1,31 @@
// See https://aka.ms/vscode-remote/devcontainer.json for format details.
{
"name": "Boilerplate Card Development",
"image": "ludeeus/devcontainer:monster",
"context": "..",
"appPort": ["5000:5000", "9123:8123"],
"postCreateCommand": "npm install",
"runArgs": [
"-v",
"${env:HOME}${env:USERPROFILE}/.ssh:/tmp/.ssh" // This is added so you can push from inside the container
],
"extensions": [
"github.vscode-pull-request-github",
"tabnine.tabnine-vscode",
"dbaeumer.vscode-eslint",
"ms-vscode.vscode-typescript-tslint-plugin",
"esbenp.prettier-vscode",
"bierner.lit-html",
"runem.lit-plugin",
"ms-python.python"
],
"settings": {
"files.eol": "\n",
"editor.tabSize": 4,
"terminal.integrated.shell.linux": "/bin/bash",
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"files.trimTrailingWhitespace": true
}
}
+7
View File
@@ -0,0 +1,7 @@
resources:
- url: http://127.0.0.1:5000/boilerplate-card.js
type: module
views:
- cards:
- type: "custom:boilerplate-card"
name: Boilerplace card development