forked from home-assistant/home-assistant.io
-
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.
Adds support for VS Code Remote Development (home-assistant#9726)
* Adds support for VS Code Remote Development * Adds support for VS Code Remote Development
- Loading branch information
Showing
6 changed files
with
181 additions
and
1 deletion.
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,33 @@ | ||
FROM ruby:2.6 | ||
|
||
# Avoid warnings by switching to noninteractive | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# Use Bash as the default shell | ||
ENV SHELL=/bin/bash | ||
|
||
# Locale env vars | ||
ENV \ | ||
LANG=en_US.UTF-8 \ | ||
LANGUAGE=en_US:en \ | ||
LC_ALL=en_US.UTF-8 | ||
|
||
# Install git, process tools | ||
RUN apt update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
ack \ | ||
git \ | ||
locales \ | ||
procps \ | ||
&& echo "en_US UTF-8" > /etc/locale.gen \ | ||
&& locale-gen en_US.UTF-8 \ | ||
&& echo 'export PS1="\\w\$ "' > /root/.bashrc \ | ||
&& apt-get autoremove -y \ | ||
&& apt-get clean -y \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Install the specific version of bundler we need | ||
RUN gem install bundler -v 2.0.1 | ||
|
||
# Switch back to dialog for any ad-hoc use of apt-get | ||
ENV DEBIAN_FRONTEND=dialog |
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,30 @@ | ||
{ | ||
"name": "home-assistant.io", | ||
"dockerFile": "Dockerfile", | ||
"appPort": [ | ||
4000 | ||
], | ||
"postCreateCommand": "bundle install", | ||
"extensions": [ | ||
"davidanson.vscode-markdownlint", | ||
"eamodio.gitlens", | ||
"editorconfig.editorconfig", | ||
"github.vscode-pull-request-github", | ||
"mrmlnc.vscode-scss", | ||
"ms-vsliveshare.vsliveshare", | ||
"rebornix.Ruby", | ||
"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" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
// cSpell Settings | ||
// Contains additional words for our project | ||
{ | ||
"version": "0.1", | ||
"language": "en", | ||
"words": [ | ||
"arest", | ||
"automations", | ||
"bloomsky", | ||
"bluesound", | ||
"BTLE", | ||
"Denon", | ||
"endconfiguration", | ||
"endraw", | ||
"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" | ||
], | ||
"enabledLanguageIds": [ | ||
"asciidoc", | ||
"c", | ||
"cpp", | ||
"csharp", | ||
"css", | ||
"dockerfile", | ||
"gemfile", | ||
"git-commit", | ||
"go", | ||
"handlebars", | ||
"html", | ||
"jade", | ||
"java", | ||
"javascript", | ||
"javascriptreact", | ||
"json", | ||
"jsonc", | ||
"latex", | ||
"less", | ||
"liquid", | ||
"markdown", | ||
"php", | ||
"plaintext", | ||
"pug", | ||
"python", | ||
"restructuredtext", | ||
"rust", | ||
"scala", | ||
"scss", | ||
"text", | ||
"typescript", | ||
"typescriptreact", | ||
"yaml", | ||
"yml" | ||
] | ||
} |
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": "bundle exec rake generate", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
}, | ||
{ | ||
"label": "Preview", | ||
"type": "shell", | ||
"command": "bundle exec rake preview", | ||
"group": { | ||
"kind": "test", | ||
"isDefault": true, | ||
} | ||
} | ||
] | ||
} |