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/* && rm -rf /var/lib/apt/lists/*
RUN git lfs install RUN git lfs install
RUN npm install -g lerna
ENV ZSH_CUSTOM /root/.oh-my-zsh/ ENV ZSH_CUSTOM /root/.oh-my-zsh/
RUN git clone https://github.com/reobin/typewritten.git $ZSH_CUSTOM/themes/typewritten 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" "ms-vscode.vscode-typescript-tslint-plugin"
], ],
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached", "workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached",
"workspaceFolder": "/workspace",
"mounts": [ "mounts": [
"source=decla-red-root-node_modules,target=/workspace/node_modules,type=volume", "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", "source=decla-red-frontend-node_modules,target=/workspace/frontend/node_modules,type=volume",
@ -33,8 +34,5 @@
3000, 3000,
8080 8080
], ],
// Use 'postCreateCommand' to run commands after the container is created. "postCreateCommand": "npm install && npx lerna run initialize",
//"postCreateCommand": "yarn install",
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
//"remoteUser": "node"
} }

View file

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

View file

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

View file

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

View file

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