diff options
Diffstat (limited to 'scripts/danger')
-rwxr-xr-x | scripts/danger/clean/modules.sh | 7 | ||||
-rwxr-xr-x | scripts/danger/clean/server.sh | 8 |
2 files changed, 15 insertions, 0 deletions
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 @@ | |||
1 | #!/usr/bin/env sh | ||
2 | |||
3 | read -p "This will remove all node and typescript modules. Are you sure? " -n 1 -r | ||
4 | |||
5 | if [[ "$REPLY" =~ ^[Yy]$ ]]; then | ||
6 | rm -rf node_modules client/node_modules client/typings | ||
7 | 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 @@ | |||
1 | #!/usr/bin/env sh | ||
2 | |||
3 | read -p "This will remove certs, uploads, database (dev) and logs. Are you sure? " -n 1 -r | ||
4 | |||
5 | if [[ "$REPLY" =~ ^[Yy]$ ]]; then | ||
6 | rm -rf ./certs ./logs ./uploads | ||
7 | printf "use peertube-dev;\ndb.dropDatabase();" | mongo | ||
8 | fi | ||