Fix bootstraping

This commit is contained in:
schmelczerandras 2020-10-06 13:06:19 +02:00
parent 51a8e2a629
commit 6eddb4834b
6 changed files with 12 additions and 11 deletions

View file

@ -8,7 +8,6 @@ RUN apt update && export DEBIAN_FRONTEND=noninteractive \
&& rm -rf /var/lib/apt/lists/*
RUN git lfs install
RUN npm install -g lerna
ENV ZSH_CUSTOM /root/.oh-my-zsh/
RUN git clone https://github.com/reobin/typewritten.git $ZSH_CUSTOM/themes/typewritten

View file

@ -23,6 +23,7 @@
"ms-vscode.vscode-typescript-tslint-plugin"
],
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached",
"workspaceFolder": "/workspace",
"mounts": [
"source=decla-red-root-node_modules,target=/workspace/node_modules,type=volume",
"source=decla-red-frontend-node_modules,target=/workspace/frontend/node_modules,type=volume",
@ -33,8 +34,5 @@
3000,
8080
],
// Use 'postCreateCommand' to run commands after the container is created.
//"postCreateCommand": "yarn install",
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
//"remoteUser": "node"
"postCreateCommand": "npm install && npx lerna run initialize",
}

View file

@ -6,7 +6,8 @@
"scripts": {
"start": "concurrently --kill-others \"webpack --mode development -w\" \"nodemon --legacy-watch dist/main.js\"",
"lint": "eslint --fix \"src/**/*.ts\" && prettier --write \"src/**/*.ts\"",
"build": "webpack --mode production"
"build": "webpack --mode production",
"initialize": "npm install"
},
"keywords": [],
"author": "András Schmelczer <andras@schmelczer.dev> (https://schmelczer.dev/)",

View file

@ -5,8 +5,9 @@
"main": "index.js",
"scripts": {
"start": "webpack-dev-server --mode development",
"lint": "npx eslint --fix \"src/**/*.ts\" && npx prettier --write \"src/**/*.ts\"",
"build": "webpack --mode production && find dist -type f -not -name '*.html' | xargs rm"
"lint": "eslint --fix \"src/**/*.ts\" && prettier --write \"src/**/*.ts\"",
"build": "webpack --mode production && find dist -type f -not -name '*.html' | xargs rm",
"initialize": "npm install"
},
"keywords": [],
"author": "András Schmelczer <andras@schmelczer.dev> (https://schmelczer.dev/)",

View file

@ -2,7 +2,8 @@
"name": "root",
"private": true,
"scripts": {
"start": "lerna run --parallel start"
"start": "lerna run --parallel start",
"initialize": "lerna run initialize"
},
"devDependencies": {
"@types/cors": "^2.8.7",

View file

@ -4,6 +4,7 @@
"description": "Shared library between backend and frontend",
"main": "src/main.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"initialize": "npm install"
}
}
}