aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/build
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build')
-rw-r--r--scripts/build/peertube-cli.sh12
-rwxr-xr-xscripts/build/peertube-runner.sh5
-rwxr-xr-xscripts/build/server.sh9
-rwxr-xr-xscripts/build/tests.sh9
4 files changed, 28 insertions, 7 deletions
diff --git a/scripts/build/peertube-cli.sh b/scripts/build/peertube-cli.sh
new file mode 100644
index 000000000..51886a0db
--- /dev/null
+++ b/scripts/build/peertube-cli.sh
@@ -0,0 +1,12 @@
1#!/bin/bash
2
3set -eu
4
5cd ./apps/peertube-cli
6rm -rf ./dist
7
8../../node_modules/.bin/tsc -b --verbose
9rm -rf ./dist
10mkdir ./dist
11
12node ./scripts/build.js
diff --git a/scripts/build/peertube-runner.sh b/scripts/build/peertube-runner.sh
index 7f6ad5ede..321d10b4b 100755
--- a/scripts/build/peertube-runner.sh
+++ b/scripts/build/peertube-runner.sh
@@ -2,12 +2,11 @@
2 2
3set -eu 3set -eu
4 4
5 5cd ./apps/peertube-runner
6cd ./packages/peertube-runner
7rm -rf ./dist 6rm -rf ./dist
8 7
9../../node_modules/.bin/tsc -b --verbose 8../../node_modules/.bin/tsc -b --verbose
10rm -rf ./dist 9rm -rf ./dist
11mkdir ./dist 10mkdir ./dist
12 11
13./node_modules/.bin/esbuild ./peertube-runner.ts --bundle --platform=node --target=node16 --external:"./lib-cov/fluent-ffmpeg" --external:pg-hstore --outfile=dist/peertube-runner.js 12node ./scripts/build.js
diff --git a/scripts/build/server.sh b/scripts/build/server.sh
index a2dfc3dd9..bbab633a2 100755
--- a/scripts/build/server.sh
+++ b/scripts/build/server.sh
@@ -2,10 +2,11 @@
2 2
3set -eu 3set -eu
4 4
5rm -rf ./dist 5rm -rf ./dist ./packages/*/dist
6 6
7npm run tsc -- -b --verbose 7npm run tsc -- -b --verbose server/tsconfig.json
8npm run resolve-tspaths:server 8npm run resolve-tspaths:server
9 9
10cp -r "./server/static" "./server/assets" "./dist/server" 10cp -r "./server/server/static" "./server/server/assets" ./dist/server
11cp -r "./server/lib/emails" "./dist/server/lib" 11cp -r "./server/server/lib/emails" "./dist/server/lib"
12cp "./server/scripts/upgrade.sh" "./dist/scripts"
diff --git a/scripts/build/tests.sh b/scripts/build/tests.sh
new file mode 100755
index 000000000..f94dde2a4
--- /dev/null
+++ b/scripts/build/tests.sh
@@ -0,0 +1,9 @@
1#!/bin/bash
2
3set -eu
4
5rm -rf ./packages/tests/dist
6
7npm run tsc -- -b --verbose ./packages/tests/tsconfig.json
8npm run resolve-tspaths:server-lib
9npm run resolve-tspaths:tests