Skip to content

Commit 83b4d52

Browse files
committed
add devcontainer and cleanup build
1 parent 9a7b90a commit 83b4d52

18 files changed

+523
-3152
lines changed

.devcontainer/configuration.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
default_config:
2+
lovelace:
3+
mode: yaml
4+
demo:

.devcontainer/devcontainer.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// See https://aka.ms/vscode-remote/devcontainer.json for format details.
2+
{
3+
"name": "Radial Menu Element Development",
4+
"image": "ludeeus/devcontainer:monster-stable",
5+
"context": "..",
6+
"appPort": ["5000:5000", "9123:8123"],
7+
"postCreateCommand": "npm install",
8+
"runArgs": [
9+
"-v",
10+
"${env:HOME}${env:USERPROFILE}/.ssh:/tmp/.ssh" // This is added so you can push from inside the container
11+
],
12+
"extensions": [
13+
"github.vscode-pull-request-github",
14+
"eamodio.gitlens",
15+
"dbaeumer.vscode-eslint",
16+
"esbenp.prettier-vscode",
17+
"bierner.lit-html",
18+
"runem.lit-plugin",
19+
"auchenberg.vscode-browser-preview",
20+
"davidanson.vscode-markdownlint",
21+
"redhat.vscode-yaml"
22+
],
23+
"settings": {
24+
"files.eol": "\n",
25+
"editor.tabSize": 4,
26+
"terminal.integrated.shell.linux": "/bin/bash",
27+
"editor.formatOnPaste": false,
28+
"editor.formatOnSave": true,
29+
"editor.formatOnType": true,
30+
"files.trimTrailingWhitespace": true
31+
}
32+
}

.devcontainer/ui-lovelace.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
resources:
2+
- url: http://127.0.0.1:5000/radial-menu.js
3+
type: module
4+
views:
5+
- cards:
6+
- type: custom:radial-menu
7+
icon: mdi:home
8+
name: Home
9+
default_open: true
10+
default_dismiss: false
11+
hold_action:
12+
action: url
13+
url: https://www.home-assistant.io
14+
items:
15+
- entity: light.bed_light
16+
icon: mdi:flash
17+
name: Bedroom Light
18+
tap_action:
19+
action: toggle
20+
haptic: true
21+
hold_action:
22+
action: more-info
23+
- entity: alarm_control_panel.ha_alarm
24+
icon: mdi:alarm-light
25+
name: Alarm Panel
26+
tap_action:
27+
action: more-info
28+
- icon: mdi:alarm
29+
name: Timer
30+
tap_action:
31+
action: call-service
32+
service: timer.start
33+
service_data:
34+
entity_id: timer.laundry
35+
haptic: true
36+
hold_action:
37+
action: call-service
38+
service: timer.pause
39+
service_data:
40+
entity_id: timer.laundry
41+
haptic: true

.eslintrc.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
3+
extends: [
4+
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
5+
'prettier/@typescript-eslint', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
6+
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
7+
],
8+
parserOptions: {
9+
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
10+
sourceType: 'module', // Allows for the use of imports
11+
experimentalDecorators: true,
12+
},
13+
rules: {
14+
"@typescript-eslint/camelcase": 0
15+
}
16+
};

.eslintrc.yaml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/node_modules/
2-
.rpt2_cache/
2+
/.rpt2_cache/
3+
package-lock.json

.prettierrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
semi: true,
3+
trailingComma: 'all',
4+
singleQuote: true,
5+
printWidth: 120,
6+
tabWidth: 2,
7+
};

babel.config.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)