mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Remove watch scripts
This commit is contained in:
@@ -62,7 +62,7 @@ if [ -z ${1+x} ] || [ "$1" != "--light" ]; then
|
||||
done
|
||||
fi
|
||||
|
||||
NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js --mode production --json > "./dist/embed-stats.json"
|
||||
npm run build:embed
|
||||
|
||||
# Copy runtime locales
|
||||
cp -r "./src/locale" "./dist/locale"
|
||||
|
||||
5
scripts/build/embed.sh
Executable file
5
scripts/build/embed.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js --mode production --json > "./dist/embed-stats.json"
|
||||
7
scripts/build/index.sh
Executable file
7
scripts/build/index.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
npm run concurrently -- -k \
|
||||
"npm run build:client" \
|
||||
"npm run build:server"
|
||||
@@ -3,5 +3,5 @@
|
||||
set -eu
|
||||
|
||||
NODE_ENV=test npm run concurrently -- -k \
|
||||
"npm run watch:client" \
|
||||
"cd client && npm run ng -- serve --proxy-config proxy.config.json --hmr --configuration hmr --host 0.0.0.0 --disable-host-check --port 3000" \
|
||||
"npm run build:server && NODE_ENV=test npm start"
|
||||
|
||||
7
scripts/dev/embed.sh
Normal file
7
scripts/dev/embed.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
NODE_ENV=test npm run concurrently -- -k \
|
||||
"cd client && npm run webpack -- --config webpack/webpack.video-embed.js --mode development --watch" \
|
||||
"npm run build:server && NODE_ENV=test npm start"
|
||||
@@ -7,4 +7,19 @@ if [ ! -f "./client/dist/en-US/index.html" ]; then
|
||||
npm run build:client -- --light
|
||||
fi
|
||||
|
||||
npm run watch:server
|
||||
# Copy locales
|
||||
mkdir -p "./client/dist"
|
||||
rm -rf "./client/dist/locale"
|
||||
cp -r "./client/src/locale" "./client/dist/locale"
|
||||
|
||||
rm -rf "./dist"
|
||||
|
||||
mkdir "./dist"
|
||||
cp "./tsconfig.json" "./dist"
|
||||
|
||||
npm run tsc -- --incremental --sourceMap
|
||||
cp -r ./server/static ./server/assets ./dist/server
|
||||
|
||||
NODE_ENV=test npm run concurrently -- -k \
|
||||
"npm run nodemon -- --delay 1 --watch ./dist dist/server" \
|
||||
"npm run tsc -- --incremental --sourceMap --preserveWatchOutput -w"
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
cd client
|
||||
|
||||
npm run ng -- serve --proxy-config proxy.config.json --hmr --configuration hmr --host 0.0.0.0 --disable-host-check --port 3000
|
||||
@@ -1,20 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
# Copy locales
|
||||
mkdir -p "./client/dist"
|
||||
rm -rf "./client/dist/locale"
|
||||
cp -r "./client/src/locale" "./client/dist/locale"
|
||||
|
||||
rm -rf "./dist"
|
||||
|
||||
mkdir "./dist"
|
||||
cp "./tsconfig.json" "./dist"
|
||||
|
||||
npm run tsc -- --incremental --sourceMap
|
||||
cp -r ./server/static ./server/assets ./dist/server
|
||||
|
||||
NODE_ENV=test npm run concurrently -- -k \
|
||||
"npm run nodemon -- --delay 1 --watch ./dist dist/server" \
|
||||
"npm run tsc -- --incremental --sourceMap --preserveWatchOutput -w"
|
||||
Reference in New Issue
Block a user