WIP plugins: move plugin CLI in peertube script

Install/uninstall/list plugins remotely
This commit is contained in:
Chocobozzz 2019-07-11 17:23:24 +02:00 committed by Chocobozzz
parent dba85a1e9e
commit 8d2be0ed7b
26 changed files with 452 additions and 191 deletions

15
scripts/dev/cli.sh Executable file
View file

@ -0,0 +1,15 @@
#!/bin/sh
set -eu
rm -rf ./dist/server/tools/
(
cd ./server/tools
yarn install --pure-lockfile
)
mkdir -p "./dist/server/tools"
cp -r "./server/tools/node_modules" "./dist/server/tools"
npm run tsc -- --watch --project ./server/tools/tsconfig.json