PeerTube/scripts/build/server.sh

14 lines
310 B
Bash
Raw Normal View History

2020-02-19 01:57:32 -06:00
#!/bin/bash
2018-03-27 03:35:12 -05:00
set -eu
2017-06-10 15:57:31 -05:00
if [ -z ${1+x} ] || [ "$1" != "--incremental" ]; then
rm -rf ./dist ./packages/*/dist
fi
2017-06-10 15:57:31 -05:00
npm run tsc -- -b --verbose server/tsconfig.json
npm run resolve-tspaths:server
2023-10-04 08:13:25 -05:00
cp -r "./server/core/static" "./server/core/assets" ./dist/core
cp "./server/scripts/upgrade.sh" "./dist/scripts"