diff options
Diffstat (limited to 'scripts/clean')
-rwxr-xr-x | scripts/clean/client/sass.sh | 5 | ||||
-rwxr-xr-x | scripts/clean/client/tsc.sh | 4 | ||||
-rwxr-xr-x | scripts/clean/server/test.sh | 6 |
3 files changed, 15 insertions, 0 deletions
diff --git a/scripts/clean/client/sass.sh b/scripts/clean/client/sass.sh new file mode 100755 index 000000000..82c079f28 --- /dev/null +++ b/scripts/clean/client/sass.sh | |||
@@ -0,0 +1,5 @@ | |||
1 | #!/usr/bin/env sh | ||
2 | |||
3 | cd client || exit -1 | ||
4 | rm -f stylesheets/index.css | ||
5 | find angular -regextype posix-egrep -regex ".*\.(css)$" -exec rm -f {} \; | ||
diff --git a/scripts/clean/client/tsc.sh b/scripts/clean/client/tsc.sh new file mode 100755 index 000000000..775157a54 --- /dev/null +++ b/scripts/clean/client/tsc.sh | |||
@@ -0,0 +1,4 @@ | |||
1 | #!/usr/bin/env sh | ||
2 | |||
3 | cd client || exit -1 | ||
4 | find angular -regextype posix-egrep -regex ".*\.(js|map)$" -exec rm -f {} \; | ||
diff --git a/scripts/clean/server/test.sh b/scripts/clean/server/test.sh new file mode 100755 index 000000000..927671dd4 --- /dev/null +++ b/scripts/clean/server/test.sh | |||
@@ -0,0 +1,6 @@ | |||
1 | #!/usr/bin/env sh | ||
2 | |||
3 | for i in $(seq 1 6); do | ||
4 | printf "use peertube-test%s;\ndb.dropDatabase();" "$i" | mongo | ||
5 | rm -rf "./test$i" | ||
6 | done | ||