Fixed build errors
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
!backend/src/*
|
||||
!public/*
|
||||
!backend/views/*
|
||||
!backend/test/*
|
||||
|
||||
!bio-proxy-configuration-for-docker/*
|
||||
!package.json
|
||||
|
||||
@@ -23,7 +23,7 @@ COPY . .
|
||||
|
||||
# install and test
|
||||
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
|
||||
RUN npm run install-prod
|
||||
USER root
|
||||
|
||||
@@ -14,5 +14,8 @@
|
||||
"exclude": [
|
||||
"../node_modules",
|
||||
"./public"
|
||||
]
|
||||
],
|
||||
"ts-node": {
|
||||
"files": true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,11 @@
|
||||
"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": "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",
|
||||
"production": "node --use-openssl-ca --unhandled-rejections=strict ./backend/out/index",
|
||||
"install-debug": "npm install && npm run build",
|
||||
|
||||
Reference in New Issue
Block a user