"url": "git://github.com/Chocobozzz/PeerTube.git"
},
"scripts": {
- "build": "npm run build:client:prod",
- "build:client:dev": "scripty",
+ "build": "scripty",
+ "build:server:prod": "scripty",
"build:client:prod": "scripty",
"clean": "npm run clean:client",
"clean:client": "scripty",
"reset-password": "scripty",
"play": "scripty",
"dev": "scripty",
- "start": "node server",
+ "start": "node dist/server",
"check": "scripty",
"upgrade": "scripty",
"update-host": "scripty",
"test": "scripty",
"help": "scripty",
+ "tsc": "tsc",
"postinstall": "cd client && yarn install"
},
"dependencies": {
--- /dev/null
+#!/usr/bin/env sh
+
+NODE_ENV=test concurrently \
+ "npm run build:client:prod" \
+ "npm run build:server:prod"
printf "############# PeerTube help #############\n\n"
printf "npm run ...\n"
printf " build -> Build the application for production (alias of build:client:prod)\n"
-printf " build:client:dev -> Build the client for development\n"
+printf " build:server:prod -> Build the server for production\n"
printf " build:client:prod -> Build the client for production\n"
printf " clean -> Clean the application\n"
printf " clean:client -> Clean the client build files (dist directory)\n"
max=${1:-3}
for i in $(seq 1 $max); do
- NODE_ENV=test NODE_APP_INSTANCE=$i node server.js &
+ NODE_ENV=test NODE_APP_INSTANCE=$i node dist/server.js &
sleep 1
done