Fixed build errors

This commit is contained in:
Sebastian Seedorf
2020-11-30 11:56:27 +01:00
parent 6051c7c7d2
commit c1abe8c2a4
4 changed files with 11 additions and 3 deletions

View File

@@ -2,6 +2,7 @@
!backend/src/* !backend/src/*
!public/* !public/*
!backend/views/* !backend/views/*
!backend/test/*
!bio-proxy-configuration-for-docker/* !bio-proxy-configuration-for-docker/*
!package.json !package.json

View File

@@ -23,7 +23,7 @@ COPY . .
# install and test # install and test
USER root USER root
RUN . /etc/profile && apk add --virtual .npm-install-virt --no-cache git RUN chown -R appuser:appuser /app && . /etc/profile && apk add --virtual .npm-install-virt --no-cache git
USER appuser USER appuser
RUN npm run install-prod RUN npm run install-prod
USER root USER root

View File

@@ -14,5 +14,8 @@
"exclude": [ "exclude": [
"../node_modules", "../node_modules",
"./public" "./public"
] ],
"ts-node": {
"files": true
}
} }

View File

@@ -8,7 +8,11 @@
"debug-client": "tsc-watch --project ./public/js-source", "debug-client": "tsc-watch --project ./public/js-source",
"debug-server": "tsc-watch --project ./backend --onSuccess \"node --enable-source-maps --use-openssl-ca --unhandled-rejections=strict ./backend/out/index\"", "debug-server": "tsc-watch --project ./backend --onSuccess \"node --enable-source-maps --use-openssl-ca --unhandled-rejections=strict ./backend/out/index\"",
"debug": "concurrently npm:debug-*", "debug": "concurrently npm:debug-*",
"test": "nyc mocha -r ts-node/register ./public/js-source/test/**/*.ts ./backend/test/**/*.ts", "test-client": "nyc mocha -r ts-node/register ./public/js-source/test/**/*.ts",
"test-server:default": "TS_NODE_PROJECT=backend/tsconfig.json nyc mocha -r ts-node/register ./backend/test/**/*.ts",
"test-server:windows": "SET TS_NODE_PROJECT=backend/tsconfig.json&& nyc mocha -r ts-node/register ./backend/test/**/*.ts",
"test-server": "run-script-os",
"test": "npm run test-server && npm run test-client",
"build": "tsc -b ./backend ./public/js-source", "build": "tsc -b ./backend ./public/js-source",
"production": "node --use-openssl-ca --unhandled-rejections=strict ./backend/out/index", "production": "node --use-openssl-ca --unhandled-rejections=strict ./backend/out/index",
"install-debug": "npm install && npm run build", "install-debug": "npm install && npm run build",