Skip to content
This repository was archived by the owner on Mar 4, 2022. It is now read-only.

Commit 5083602

Browse files
committed
add devcontainer and cleanup build
1 parent 96d573c commit 5083602

28 files changed

Lines changed: 3595 additions & 1159 deletions

.devcontainer/configuration.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
default_config:
2+
lovelace:
3+
mode: yaml
4+
demo:
5+
sensor:
6+
- platform: aftership
7+
api_key: "c49c3d38-c6f9-465d-a114-d7907b7a4706"
8+
# api_key: AFTERSHIP_APIKEY

.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": "Aftership Card 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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
resources:
2+
- url: http://127.0.0.1:5000/aftership-card.js
3+
type: module
4+
views:
5+
- cards:
6+
- type: custom:aftership-card
7+
title: Aftership Card Development
8+
entity: sensor.aftership

.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.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
<!-- READ THIS FIRST:
10+
- If you need additional help with this template please refer to https://www.home-assistant.io/help/reporting_issues/
11+
- Make sure you are running the latest version of Home Assistant before reporting an issue: https://github.com/home-assistant/home-assistant/releases
12+
- Provide as many details as possible. Do not delete any text from this template!
13+
-->
14+
15+
**Checklist:**
16+
17+
- [ ] I updated to the latest version available
18+
- [ ] I cleared the cache of my browser
19+
20+
**Release with the issue:**
21+
22+
**Last working release (if known):**
23+
24+
**Browser and Operating System:**
25+
26+
<!--
27+
Provide details about what browser (and version) you are seeing the issue in. And also which operating system this is on. If possible try to replicate the issue in other browsers and include your findings here.
28+
-->
29+
30+
**Description of problem:**
31+
32+
<!--
33+
Explain what the issue is, and how things should look/behave. If possible provide a screenshot with a description.
34+
-->
35+
36+
**Javascript errors shown in the web inspector (if applicable):**
37+
38+
```
39+
40+
```
41+
42+
**Additional information:**

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
4+
title: ''
5+
labels: feature request
6+
assignees: ''
57
---
68

79
**Is your feature request related to a problem? Please describe.**
@@ -14,4 +16,4 @@ A clear and concise description of what you want to happen.
1416
A clear and concise description of any alternative solutions or features you've considered.
1517

1618
**Additional context**
17-
Add any other context or screenshots about the feature request here.
19+
Add any other context or screenshots about the feature request here.

.github/ISSUE_TEMPLATE/issue.md

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

.github/release-drafter.yml

Lines changed: 0 additions & 4 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

0 commit comments

Comments
 (0)