mirror of
https://github.com/esphome/esp-web-tools.git
synced 2025-07-18 17:26:35 +00:00
Drop yarn in favor of npm
This commit is contained in:
parent
6bd74e886c
commit
fc4df1c8bb
@ -1,33 +1,33 @@
|
|||||||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
|
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
|
||||||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.177.0/containers/typescript-node
|
// https://github.com/microsoft/vscode-dev-containers/tree/v0.177.0/containers/typescript-node
|
||||||
{
|
{
|
||||||
"name": "Node.js & TypeScript",
|
"name": "Node.js & TypeScript",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "Dockerfile",
|
"dockerfile": "Dockerfile",
|
||||||
// Update 'VARIANT' to pick a Node version: 12, 14, 16
|
// Update 'VARIANT' to pick a Node version: 12, 14, 16
|
||||||
"args": {
|
"args": {
|
||||||
"VARIANT": "16"
|
"VARIANT": "16"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// Add the IDs of extensions you want installed when the container is created.
|
// Add the IDs of extensions you want installed when the container is created.
|
||||||
"extensions": [
|
"extensions": [
|
||||||
"dbaeumer.vscode-eslint",
|
"dbaeumer.vscode-eslint",
|
||||||
"esbenp.prettier-vscode",
|
"esbenp.prettier-vscode",
|
||||||
"bierner.lit-html",
|
"bierner.lit-html",
|
||||||
"runem.lit-plugin",
|
"runem.lit-plugin"
|
||||||
],
|
],
|
||||||
|
|
||||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||||
// "forwardPorts": [],
|
"forwardPorts": [5000],
|
||||||
|
|
||||||
// Use 'postCreateCommand' to run commands after the container is created.
|
// Use 'postCreateCommand' to run commands after the container is created.
|
||||||
// "postCreateCommand": "yarn install",
|
"postCreateCommand": "npm install",
|
||||||
|
|
||||||
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
||||||
"remoteUser": "node",
|
"remoteUser": "node",
|
||||||
|
|
||||||
"settings": {
|
"settings": {
|
||||||
"files.eol": "\n",
|
"files.eol": "\n",
|
||||||
"editor.tabSize": 2,
|
"editor.tabSize": 2,
|
||||||
"editor.formatOnPaste": false,
|
"editor.formatOnPaste": false,
|
||||||
@ -41,5 +41,4 @@
|
|||||||
},
|
},
|
||||||
"files.trimTrailingWhitespace": true
|
"files.trimTrailingWhitespace": true
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,2 @@
|
|||||||
dist
|
dist
|
||||||
node_modules
|
node_modules
|
||||||
yarn-error.log
|
|
||||||
|
2644
package-lock.json
generated
Normal file
2644
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -4,5 +4,5 @@ set -e
|
|||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
rm -rf dist
|
rm -rf dist
|
||||||
NODE_ENV=production yarn tsc
|
NODE_ENV=production npm exec -- tsc
|
||||||
NODE_ENV=production yarn rollup -c
|
NODE_ENV=production npm exec -- rollup -c
|
||||||
|
@ -11,7 +11,7 @@ trap "kill 0" EXIT
|
|||||||
# Run tsc once as rollup expects those files
|
# Run tsc once as rollup expects those files
|
||||||
tsc || true
|
tsc || true
|
||||||
|
|
||||||
yarn serve &
|
npm exec -- serve &
|
||||||
yarn tsc --watch &
|
npm exec -- tsc --watch &
|
||||||
yarn rollup -c --watch &
|
npm exec -- rollup -c --watch &
|
||||||
wait
|
wait
|
||||||
|
Loading…
x
Reference in New Issue
Block a user