diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build/client.sh | 2 | ||||
-rwxr-xr-x | scripts/client-report.sh | 6 | ||||
-rwxr-xr-x | scripts/dev/client.sh | 2 | ||||
-rwxr-xr-x | scripts/dev/index.sh | 2 | ||||
-rwxr-xr-x | scripts/e2e.sh | 2 | ||||
-rwxr-xr-x | scripts/watch/server.sh | 2 |
6 files changed, 9 insertions, 7 deletions
diff --git a/scripts/build/client.sh b/scripts/build/client.sh index d3da7cfcf..58aca437b 100755 --- a/scripts/build/client.sh +++ b/scripts/build/client.sh | |||
@@ -21,7 +21,7 @@ for lang in "$languages"; do | |||
21 | rm -r "./dist/$lang/assets" | 21 | rm -r "./dist/$lang/assets" |
22 | done | 22 | done |
23 | 23 | ||
24 | NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js --mode production | 24 | NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js --mode production --json > "./dist/embed-stats.json" |
25 | 25 | ||
26 | # Copy runtime locales | 26 | # Copy runtime locales |
27 | cp -r "./src/locale/target" "./dist/locale" \ No newline at end of file | 27 | cp -r "./src/locale/target" "./dist/locale" \ No newline at end of file |
diff --git a/scripts/client-report.sh b/scripts/client-report.sh index 4dd4b418b..df7ccda27 100755 --- a/scripts/client-report.sh +++ b/scripts/client-report.sh | |||
@@ -2,6 +2,8 @@ | |||
2 | 2 | ||
3 | set -eu | 3 | set -eu |
4 | 4 | ||
5 | cd client | 5 | gawk -i inplace 'BEGIN { found=0 } { if (found || $0 ~ /^{/) { found=1; print }}' ./client/dist/embed-stats.json |
6 | 6 | ||
7 | npm run webpack-bundle-analyzer ./dist/stats.json | 7 | npm run concurrently -- -k \ |
8 | "cd client && npm run webpack-bundle-analyzer -- -p 8888 ./dist/en_US/stats.json" \ | ||
9 | "cd client && npm run webpack-bundle-analyzer -- -p 8889 ./dist/embed-stats.json" \ No newline at end of file | ||
diff --git a/scripts/dev/client.sh b/scripts/dev/client.sh index ecd934888..c630de2c4 100755 --- a/scripts/dev/client.sh +++ b/scripts/dev/client.sh | |||
@@ -2,6 +2,6 @@ | |||
2 | 2 | ||
3 | set -eu | 3 | set -eu |
4 | 4 | ||
5 | NODE_ENV=test concurrently -k \ | 5 | NODE_ENV=test npm run concurrently -- -k \ |
6 | "npm run watch:client" \ | 6 | "npm run watch:client" \ |
7 | "npm run build:server && NODE_ENV=test npm start" | 7 | "npm run build:server && NODE_ENV=test npm start" |
diff --git a/scripts/dev/index.sh b/scripts/dev/index.sh index dcbf62d37..7fc1560ab 100755 --- a/scripts/dev/index.sh +++ b/scripts/dev/index.sh | |||
@@ -2,6 +2,6 @@ | |||
2 | 2 | ||
3 | set -eu | 3 | set -eu |
4 | 4 | ||
5 | NODE_ENV=test concurrently -k \ | 5 | NODE_ENV=test npm run concurrently -- -k \ |
6 | "npm run watch:client" \ | 6 | "npm run watch:client" \ |
7 | "npm run watch:server" | 7 | "npm run watch:server" |
diff --git a/scripts/e2e.sh b/scripts/e2e.sh index 0e70e6e51..1e31cd57c 100755 --- a/scripts/e2e.sh +++ b/scripts/e2e.sh | |||
@@ -10,7 +10,7 @@ npm run clean:server:test | |||
10 | npm run webpack -- --config webpack/webpack.video-embed.js --mode development | 10 | npm run webpack -- --config webpack/webpack.video-embed.js --mode development |
11 | ) | 11 | ) |
12 | 12 | ||
13 | concurrently -k -s first \ | 13 | npm run concurrently -- -k -s first \ |
14 | "cd client && npm run ng -- e2e --port 3333" \ | 14 | "cd client && npm run ng -- e2e --port 3333" \ |
15 | "NODE_ENV=test NODE_APP_INSTANCE=1 NODE_CONFIG='{ \"log\": { \"level\": \"warning\" } }' npm start" | 15 | "NODE_ENV=test NODE_APP_INSTANCE=1 NODE_CONFIG='{ \"log\": { \"level\": \"warning\" } }' npm start" |
16 | 16 | ||
diff --git a/scripts/watch/server.sh b/scripts/watch/server.sh index badbf3da0..da8bff1da 100755 --- a/scripts/watch/server.sh +++ b/scripts/watch/server.sh | |||
@@ -7,6 +7,6 @@ mkdir -p "./client/dist" | |||
7 | rm -r "./client/dist/locale" | 7 | rm -r "./client/dist/locale" |
8 | cp -r "./client/src/locale/target" "./client/dist/locale" | 8 | cp -r "./client/src/locale/target" "./client/dist/locale" |
9 | 9 | ||
10 | NODE_ENV=test concurrently -k \ | 10 | NODE_ENV=test npm run concurrently -- -k \ |
11 | "npm run tsc -- --sourceMap && npm run nodemon -- --delay 2 --watch ./dist dist/server" \ | 11 | "npm run tsc -- --sourceMap && npm run nodemon -- --delay 2 --watch ./dist dist/server" \ |
12 | "npm run tsc -- --sourceMap --preserveWatchOutput -w" | 12 | "npm run tsc -- --sourceMap --preserveWatchOutput -w" |