Skip to content

Commit

Permalink
add devcontainer and cleanup build
Browse files Browse the repository at this point in the history
  • Loading branch information
iantrich committed Nov 7, 2019
1 parent 9a7b90a commit 83b4d52
Show file tree
Hide file tree
Showing 18 changed files with 523 additions and 3,152 deletions.
4 changes: 4 additions & 0 deletions .devcontainer/configuration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
default_config:
lovelace:
mode: yaml
demo:
32 changes: 32 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// See https://aka.ms/vscode-remote/devcontainer.json for format details.
{
"name": "Radial Menu Element Development",
"image": "ludeeus/devcontainer:monster-stable",
"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",
"eamodio.gitlens",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"bierner.lit-html",
"runem.lit-plugin",
"auchenberg.vscode-browser-preview",
"davidanson.vscode-markdownlint",
"redhat.vscode-yaml"
],
"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
}
}
41 changes: 41 additions & 0 deletions .devcontainer/ui-lovelace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
resources:
- url: http://127.0.0.1:5000/radial-menu.js
type: module
views:
- cards:
- type: custom:radial-menu
icon: mdi:home
name: Home
default_open: true
default_dismiss: false
hold_action:
action: url
url: https://www.home-assistant.io
items:
- entity: light.bed_light
icon: mdi:flash
name: Bedroom Light
tap_action:
action: toggle
haptic: true
hold_action:
action: more-info
- entity: alarm_control_panel.ha_alarm
icon: mdi:alarm-light
name: Alarm Panel
tap_action:
action: more-info
- icon: mdi:alarm
name: Timer
tap_action:
action: call-service
service: timer.start
service_data:
entity_id: timer.laundry
haptic: true
hold_action:
action: call-service
service: timer.pause
service_data:
entity_id: timer.laundry
haptic: true
16 changes: 16 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
extends: [
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
'prettier/@typescript-eslint', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
'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.
],
parserOptions: {
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
experimentalDecorators: true,
},
rules: {
"@typescript-eslint/camelcase": 0
}
};
18 changes: 0 additions & 18 deletions .eslintrc.yaml

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/node_modules/
.rpt2_cache/
/.rpt2_cache/
package-lock.json
7 changes: 7 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
semi: true,
trailingComma: 'all',
singleQuote: true,
printWidth: 120,
tabWidth: 2,
};
6 changes: 0 additions & 6 deletions babel.config.js

This file was deleted.

0 comments on commit 83b4d52

Please sign in to comment.