forked from home-assistant/developers.home-assistant
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable devcontainer (home-assistant#490)
Co-Authored-By: Franck Nijhof <[email protected]>
- Loading branch information
Showing
9 changed files
with
377 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM node:lts | ||
|
||
WORKDIR /workspaces | ||
|
||
# Set an environment variable to be able to detect we are in dev container | ||
ENV NODE_ENV=devcontainer | ||
|
||
EXPOSE 3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "developers.home-assistant", | ||
"dockerFile": "Dockerfile", | ||
"appPort": [ | ||
3000 | ||
], | ||
"postCreateCommand": "yarn install", | ||
"extensions": [ | ||
"davidanson.vscode-markdownlint", | ||
"editorconfig.editorconfig", | ||
"streetsidesoftware.code-spell-checker", | ||
"yzhang.markdown-all-in-one" | ||
], | ||
"settings": { | ||
"editor.rulers": [80, 100, 120], | ||
"editor.renderWhitespace": "boundary", | ||
"errorLens.gutterIconsEnabled": true, | ||
"errorLens.addAnnotationTextPrefixes": false, | ||
"errorLens.enabledDiagnosticLevels": [ | ||
"error", | ||
"warning" | ||
], | ||
"terminal.integrated.shell.linux": "/bin/bash", | ||
"[markdown]":{ | ||
"editor.wordWrap": "wordWrapColumn", | ||
"editor.wordWrapColumn": 80, | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
scripts-prepend-node-path=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// cSpell Settings | ||
// Contains additional words for our project | ||
{ | ||
"version": "0.1", | ||
"language": "en", | ||
"words": [ | ||
"arest", | ||
"automations", | ||
"bloomsky", | ||
"bluesound", | ||
"BTLE", | ||
"Denon", | ||
"endconfiguration", | ||
"endraw", | ||
"Etekcity", | ||
"fitbit", | ||
"Flexit", | ||
"geizhals", | ||
"Harman", | ||
"hass", | ||
"Hass.io", | ||
"HassOS", | ||
"hcitool", | ||
"heos", | ||
"hikvision", | ||
"Homematic", | ||
"IBAN", | ||
"icloud", | ||
"kardon", | ||
"macos", | ||
"Modbus", | ||
"Mosquitto", | ||
"nginx", | ||
"ohmconnect", | ||
"Onkyo", | ||
"paulus", | ||
"templating", | ||
"waqi", | ||
"Webhook" | ||
], | ||
// flagWords - list of words to be always considered incorrect | ||
// This is useful for offensive words and common spelling errors. | ||
// For example "hte" should be "the" | ||
"flagWords": [ | ||
"hte", | ||
"asssistant" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"recommendations": [ | ||
"davidanson.vscode-markdownlint", | ||
"editorconfig.editorconfig", | ||
"streetsidesoftware.code-spell-checker", | ||
"yzhang.markdown-all-in-one" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Generate", | ||
"type": "shell", | ||
"command": "yarn build", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
}, | ||
{ | ||
"label": "Preview", | ||
"type": "shell", | ||
"command": "yarn start", | ||
"group": { | ||
"kind": "test", | ||
"isDefault": true, | ||
} | ||
}, | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.