diff options
Diffstat (limited to 'scripts/build')
-rwxr-xr-x | scripts/build/client.sh | 2 | ||||
-rwxr-xr-x | scripts/build/embed.sh | 5 | ||||
-rwxr-xr-x | scripts/build/index.sh | 7 |
3 files changed, 13 insertions, 1 deletions
diff --git a/scripts/build/client.sh b/scripts/build/client.sh index 2518702cf..fd9190660 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 |
63 | fi | 63 | fi |
64 | 64 | ||
65 | NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js --mode production --json > "./dist/embed-stats.json" | 65 | npm run build:embed |
66 | 66 | ||
67 | # Copy runtime locales | 67 | # Copy runtime locales |
68 | cp -r "./src/locale" "./dist/locale" | 68 | cp -r "./src/locale" "./dist/locale" |
diff --git a/scripts/build/embed.sh b/scripts/build/embed.sh new file mode 100755 index 000000000..ea5e7d57d --- /dev/null +++ b/scripts/build/embed.sh | |||
@@ -0,0 +1,5 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | set -eu | ||
4 | |||
5 | NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js --mode production --json > "./dist/embed-stats.json" | ||
diff --git a/scripts/build/index.sh b/scripts/build/index.sh new file mode 100755 index 000000000..fde6efe32 --- /dev/null +++ b/scripts/build/index.sh | |||
@@ -0,0 +1,7 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | set -eu | ||
4 | |||
5 | npm run concurrently -- -k \ | ||
6 | "npm run build:client" \ | ||
7 | "npm run build:server" | ||