はじまりの大地
このコミットが含まれているのは:
実行可能ファイル
+22
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
clientConfiguration="hmr"
|
||||
|
||||
if [ ! -z ${2+x} ] && [ "$2" = "--ar-locale" ]; then
|
||||
clientConfiguration="ar-locale"
|
||||
fi
|
||||
|
||||
clientCommand="cd client && node --max_old_space_size=4096 node_modules/.bin/ng serve --proxy-config proxy.config.json --hmr --configuration $clientConfiguration --host 0.0.0.0 --port 3000"
|
||||
serverCommand="NODE_ENV=dev node dist/server"
|
||||
|
||||
if [ ! -z ${1+x} ] && [ "$1" = "--skip-server" ]; then
|
||||
eval $clientCommand
|
||||
else
|
||||
npm run build:server
|
||||
|
||||
node node_modules/.bin/concurrently -k \
|
||||
"$clientCommand" \
|
||||
"$serverCommand"
|
||||
fi
|
||||
実行可能ファイル
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
npm run build:server
|
||||
|
||||
npm run concurrently -- -k \
|
||||
"cd client && ./node_modules/.bin/vite -c ./src/standalone/videos/vite.config.mjs build -w --mode=development" \
|
||||
"NODE_ENV=dev npm start"
|
||||
実行可能ファイル
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
npm run concurrently -- -k \
|
||||
"sh scripts/dev/client.sh --skip-server ${1:-}" \
|
||||
"sh scripts/dev/server.sh --skip-client"
|
||||
実行可能ファイル
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
rm -rf ./apps/peertube-cli/dist
|
||||
|
||||
cd ./apps/peertube-cli
|
||||
|
||||
../../node_modules/.bin/concurrently -k \
|
||||
"../../node_modules/.bin/tsc -w --noEmit" \
|
||||
"node ./scripts/watch.js"
|
||||
実行可能ファイル
+13
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
rm -rf ./apps/peertube-runner/dist
|
||||
|
||||
cd ./apps/peertube-runner
|
||||
|
||||
../../node_modules/.bin/tsc -b --verbose
|
||||
|
||||
../../node_modules/.bin/concurrently -k \
|
||||
"../../node_modules/.bin/tsc -w --noEmit" \
|
||||
"node ./scripts/watch.js"
|
||||
実行可能ファイル
+24
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
if [ ! -f "./client/dist/en-US/index.html" ]; then
|
||||
if [ -z ${1+x} ] || [ "$1" != "--skip-client" ]; then
|
||||
echo "client/dist/en-US/index.html does not exist, compile client files..."
|
||||
npm run build:client
|
||||
fi
|
||||
fi
|
||||
|
||||
# Copy locales
|
||||
mkdir -p "./client/dist"
|
||||
rm -rf "./client/dist/locale"
|
||||
cp -r "./client/src/locale" "./client/dist/locale"
|
||||
|
||||
mkdir -p "./dist/core/lib"
|
||||
|
||||
npm run tsc -- -b -v --incremental server/tsconfig.json
|
||||
npm run resolve-tspaths:server
|
||||
|
||||
cp -r ./server/core/static ./server/core/assets ./dist/core
|
||||
|
||||
./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
|
||||
新しい課題から参照
ユーザをブロックする