aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/client.sh2
-rwxr-xr-xscripts/build/embed.sh2
-rwxr-xr-x[-rw-r--r--]scripts/dev/embed.sh0
-rwxr-xr-xscripts/release-embed-api.sh11
4 files changed, 14 insertions, 1 deletions
diff --git a/scripts/build/client.sh b/scripts/build/client.sh
index fd9190660..d95bb9574 100755
--- a/scripts/build/client.sh
+++ b/scripts/build/client.sh
@@ -62,7 +62,7 @@ if [ -z ${1+x} ] || [ "$1" != "--light" ]; then
62 done 62 done
63fi 63fi
64 64
65npm run build:embed 65cd ../ && npm run build:embed && cd client/
66 66
67# Copy runtime locales 67# Copy runtime locales
68cp -r "./src/locale" "./dist/locale" 68cp -r "./src/locale" "./dist/locale"
diff --git a/scripts/build/embed.sh b/scripts/build/embed.sh
index ea5e7d57d..47e195d96 100755
--- a/scripts/build/embed.sh
+++ b/scripts/build/embed.sh
@@ -2,4 +2,6 @@
2 2
3set -eu 3set -eu
4 4
5cd client
6
5NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js --mode production --json > "./dist/embed-stats.json" 7NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js --mode production --json > "./dist/embed-stats.json"
diff --git a/scripts/dev/embed.sh b/scripts/dev/embed.sh
index 9b0ef27cf..9b0ef27cf 100644..100755
--- a/scripts/dev/embed.sh
+++ b/scripts/dev/embed.sh
diff --git a/scripts/release-embed-api.sh b/scripts/release-embed-api.sh
new file mode 100755
index 000000000..ae76a65f5
--- /dev/null
+++ b/scripts/release-embed-api.sh
@@ -0,0 +1,11 @@
1#!/bin/sh
2
3set -eu
4
5cd client/src/standalone/player
6
7rm -rf dist build && tsc -p . && ../../../node_modules/.bin/webpack --config ./webpack.config.js
8
9npm publish --access public
10
11rm -rf dist build node_modules