diff options
Diffstat (limited to 'scripts/dev')
-rwxr-xr-x | scripts/dev/cli.sh | 16 | ||||
-rwxr-xr-x | scripts/dev/peertube-cli.sh | 11 | ||||
-rwxr-xr-x | scripts/dev/peertube-runner.sh | 6 | ||||
-rwxr-xr-x | scripts/dev/server.sh | 8 |
4 files changed, 18 insertions, 23 deletions
diff --git a/scripts/dev/cli.sh b/scripts/dev/cli.sh deleted file mode 100755 index 39ecaad94..000000000 --- a/scripts/dev/cli.sh +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | set -eu | ||
4 | |||
5 | rm -rf ./dist/server/tools/ | ||
6 | |||
7 | ( | ||
8 | cd ./server/tools | ||
9 | yarn install --pure-lockfile | ||
10 | ) | ||
11 | |||
12 | mkdir -p "./dist/server/tools" | ||
13 | cp -r "./server/tools/node_modules" "./dist/server/tools" | ||
14 | |||
15 | cd ./server/tools | ||
16 | ../../node_modules/.bin/tsc-watch --build --verbose --onSuccess 'sh -c "cd ../../ && npm run resolve-tspaths:server"' | ||
diff --git a/scripts/dev/peertube-cli.sh b/scripts/dev/peertube-cli.sh new file mode 100755 index 000000000..172bf038e --- /dev/null +++ b/scripts/dev/peertube-cli.sh | |||
@@ -0,0 +1,11 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | set -eu | ||
4 | |||
5 | rm -rf ./apps/peertube-cli/dist | ||
6 | |||
7 | cd ./apps/peertube-cli | ||
8 | |||
9 | ../../node_modules/.bin/concurrently -k \ | ||
10 | "../../node_modules/.bin/tsc -w --noEmit" \ | ||
11 | "node ./scripts/watch.js" | ||
diff --git a/scripts/dev/peertube-runner.sh b/scripts/dev/peertube-runner.sh index e39259372..7bd756123 100755 --- a/scripts/dev/peertube-runner.sh +++ b/scripts/dev/peertube-runner.sh | |||
@@ -2,10 +2,10 @@ | |||
2 | 2 | ||
3 | set -eu | 3 | set -eu |
4 | 4 | ||
5 | rm -rf ./packages/peertube-runner/dist | 5 | rm -rf ./apps/peertube-runner/dist |
6 | 6 | ||
7 | cd ./packages/peertube-runner | 7 | cd ./apps/peertube-runner |
8 | 8 | ||
9 | ../../node_modules/.bin/concurrently -k \ | 9 | ../../node_modules/.bin/concurrently -k \ |
10 | "../../node_modules/.bin/tsc -w --noEmit" \ | 10 | "../../node_modules/.bin/tsc -w --noEmit" \ |
11 | "./node_modules/.bin/esbuild ./peertube-runner.ts --bundle --sourcemap --platform=node --external:"./lib-cov/fluent-ffmpeg" --external:pg-hstore --watch --outfile=dist/peertube-runner.js" | 11 | "node ./scripts/watch.js" |
diff --git a/scripts/dev/server.sh b/scripts/dev/server.sh index c52c5124c..4112cb2f8 100755 --- a/scripts/dev/server.sh +++ b/scripts/dev/server.sh | |||
@@ -16,10 +16,10 @@ cp -r "./client/src/locale" "./client/dist/locale" | |||
16 | 16 | ||
17 | mkdir -p "./dist/server/lib" | 17 | mkdir -p "./dist/server/lib" |
18 | 18 | ||
19 | npm run tsc -- -b -v --incremental | 19 | npm run tsc -- -b -v --incremental server/tsconfig.json |
20 | npm run resolve-tspaths:server | 20 | npm run resolve-tspaths:server |
21 | 21 | ||
22 | cp -r ./server/static ./server/assets ./dist/server | 22 | cp -r ./server/server/static ./server/server/assets ./dist/server |
23 | cp -r "./server/lib/emails" "./dist/server/lib" | 23 | cp -r "./server/server/lib/emails" "./dist/server/lib" |
24 | 24 | ||
25 | ./node_modules/.bin/tsc-watch --build --preserveWatchOutput --verbose --onSuccess 'sh -c "npm run resolve-tspaths:server && NODE_ENV=dev node dist/server"' | 25 | ./node_modules/.bin/tsc-watch --build --preserveWatchOutput --verbose --onSuccess 'sh -c "npm run resolve-tspaths:server && NODE_ENV=dev node dist/server"' server/tsconfig.json |