Drop yarn in favor of npm

This commit is contained in:
Paulus Schoutsen 2021-05-30 22:44:17 -07:00
parent 6bd74e886c
commit fc4df1c8bb
6 changed files with 2669 additions and 1221 deletions

View File

@ -1,33 +1,33 @@
// 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
{
"name": "Node.js & TypeScript",
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick a Node version: 12, 14, 16
"args": {
"VARIANT": "16"
}
},
"name": "Node.js & TypeScript",
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick a Node version: 12, 14, 16
"args": {
"VARIANT": "16"
}
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"dbaeumer.vscode-eslint",
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"bierner.lit-html",
"runem.lit-plugin",
],
"runem.lit-plugin"
],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [5000],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "yarn install",
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "npm install",
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node",
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node",
"settings": {
"settings": {
"files.eol": "\n",
"editor.tabSize": 2,
"editor.formatOnPaste": false,
@ -41,5 +41,4 @@
},
"files.trimTrailingWhitespace": true
}
}

1
.gitignore vendored
View File

@ -1,3 +1,2 @@
dist
node_modules
yarn-error.log

2644
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -4,5 +4,5 @@ set -e
cd "$(dirname "$0")/.."
rm -rf dist
NODE_ENV=production yarn tsc
NODE_ENV=production yarn rollup -c
NODE_ENV=production npm exec -- tsc
NODE_ENV=production npm exec -- rollup -c

View File

@ -11,7 +11,7 @@ trap "kill 0" EXIT
# Run tsc once as rollup expects those files
tsc || true
yarn serve &
yarn tsc --watch &
yarn rollup -c --watch &
npm exec -- serve &
npm exec -- tsc --watch &
npm exec -- rollup -c --watch &
wait

1194
yarn.lock

File diff suppressed because it is too large Load Diff