diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/ci.sh | 2 | ||||
-rwxr-xr-x | scripts/dev/server.sh | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/scripts/ci.sh b/scripts/ci.sh index a628cbced..7ad6f38e9 100755 --- a/scripts/ci.sh +++ b/scripts/ci.sh | |||
@@ -98,6 +98,8 @@ elif [ "$1" = "external-plugins" ]; then | |||
98 | 98 | ||
99 | runTest "$1" 1 $externalPluginsFiles | 99 | runTest "$1" 1 $externalPluginsFiles |
100 | elif [ "$1" = "lint" ]; then | 100 | elif [ "$1" = "lint" ]; then |
101 | npm run build:server | ||
102 | |||
101 | npm run eslint -- --ext .ts "./server/**/*.ts" "shared/**/*.ts" "scripts/**/*.ts" | 103 | npm run eslint -- --ext .ts "./server/**/*.ts" "shared/**/*.ts" "scripts/**/*.ts" |
102 | npm run swagger-cli -- validate support/doc/api/openapi.yaml | 104 | npm run swagger-cli -- validate support/doc/api/openapi.yaml |
103 | 105 | ||
diff --git a/scripts/dev/server.sh b/scripts/dev/server.sh index 5aac470eb..07d88eb2f 100755 --- a/scripts/dev/server.sh +++ b/scripts/dev/server.sh | |||
@@ -19,10 +19,10 @@ rm -rf "./dist" | |||
19 | mkdir "./dist" | 19 | mkdir "./dist" |
20 | cp "./tsconfig.json" "./dist" | 20 | cp "./tsconfig.json" "./dist" |
21 | 21 | ||
22 | npm run tsc -- --incremental --sourceMap | 22 | npm run tsc -- -b -v --incremental |
23 | cp -r ./server/static ./server/assets ./dist/server | 23 | cp -r ./server/static ./server/assets ./dist/server |
24 | cp -r "./server/lib/emails" "./dist/server/lib" | 24 | cp -r "./server/lib/emails" "./dist/server/lib" |
25 | 25 | ||
26 | NODE_ENV=test node node_modules/.bin/concurrently -k \ | 26 | NODE_ENV=test node node_modules/.bin/concurrently -k \ |
27 | "node_modules/.bin/nodemon --delay 1 --watch ./dist dist/server" \ | 27 | "node_modules/.bin/nodemon --delay 1 --watch ./dist dist/server" \ |
28 | "node_modules/.bin/tsc --incremental --sourceMap --preserveWatchOutput -w" | 28 | "node_modules/.bin/tsc -b -w --preserveWatchOutput" |