From 9353449515ff6881a54ce6887297b7eab2855186 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sat, 30 Apr 2016 11:17:50 +0200 Subject: Use scripty instead of writing shell commands in package.json --- scripts/danger/clean/modules.sh | 7 +++++++ scripts/danger/clean/server.sh | 8 ++++++++ 2 files changed, 15 insertions(+) create mode 100755 scripts/danger/clean/modules.sh create mode 100755 scripts/danger/clean/server.sh (limited to 'scripts/danger/clean') diff --git a/scripts/danger/clean/modules.sh b/scripts/danger/clean/modules.sh new file mode 100755 index 000000000..1aa6c732b --- /dev/null +++ b/scripts/danger/clean/modules.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env sh + +read -p "This will remove all node and typescript modules. Are you sure? " -n 1 -r + +if [[ "$REPLY" =~ ^[Yy]$ ]]; then + rm -rf node_modules client/node_modules client/typings +fi diff --git a/scripts/danger/clean/server.sh b/scripts/danger/clean/server.sh new file mode 100755 index 000000000..0a85eb249 --- /dev/null +++ b/scripts/danger/clean/server.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env sh + +read -p "This will remove certs, uploads, database (dev) and logs. Are you sure? " -n 1 -r + +if [[ "$REPLY" =~ ^[Yy]$ ]]; then + rm -rf ./certs ./logs ./uploads + printf "use peertube-dev;\ndb.dropDatabase();" | mongo +fi -- cgit v1.2.3