chore: add devcontainer.json (#2545)

* chore: add devcontainer.json

* Set sockPort: location
This commit is contained in:
ylemkimon
2020-09-29 02:38:19 +09:00
committed by GitHub
parent 5b76c0b585
commit 91113fb607
3 changed files with 16 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
{
"name": "KaTeX Codespaces",
"image": "mcr.microsoft.com/vscode/devcontainers/javascript-node:14",
"extensions": [
"dbaeumer.vscode-eslint",
"flowtype.flow-for-vscode",
"stylelint.vscode-stylelint",
"arcanis.vscode-zipfs"
],
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},
"postCreateCommand": "git submodule update --init --recursive && CI=true yarn install"
}

View File

@@ -1,6 +1,6 @@
tasks:
- init: yarn install
command: yarn start --sockPort 443
command: yarn start
- openMode: split-right
command: echo "Run 'yarn test' to run tests."

View File

@@ -19,6 +19,7 @@ katexConfig.devServer = {
disableHostCheck: true,
host: '0.0.0.0',
port: PORT,
sockPort: 'location',
stats: {
colors: true,
},