aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/build
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-12-17 16:17:22 +0100
committerChocobozzz <me@florianbigard.com>2019-12-18 10:14:25 +0100
commit03d641a0d7f996de44ec898ad739bc4050514ba1 (patch)
treedc8d36a945133fdc91fa279b9c97a22f1ec11465 /scripts/build
parentc026a2e67357bd4bd4fcc4c10f8c5cd4749435c9 (diff)
downloadPeerTube-03d641a0d7f996de44ec898ad739bc4050514ba1.tar.gz
PeerTube-03d641a0d7f996de44ec898ad739bc4050514ba1.tar.zst
PeerTube-03d641a0d7f996de44ec898ad739bc4050514ba1.zip
Add embed api build
Diffstat (limited to 'scripts/build')
-rwxr-xr-xscripts/build/client.sh2
-rwxr-xr-xscripts/build/embed.sh2
2 files changed, 3 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"