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/clean/client/sass.sh | 5 +++++ scripts/clean/client/tsc.sh | 4 ++++ scripts/clean/server/test.sh | 6 ++++++ 3 files changed, 15 insertions(+) create mode 100755 scripts/clean/client/sass.sh create mode 100755 scripts/clean/client/tsc.sh create mode 100755 scripts/clean/server/test.sh (limited to 'scripts/clean') 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 @@ +#!/usr/bin/env sh + +cd client || exit -1 +rm -f stylesheets/index.css +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 @@ +#!/usr/bin/env sh + +cd client || exit -1 +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 @@ +#!/usr/bin/env sh + +for i in $(seq 1 6); do + printf "use peertube-test%s;\ndb.dropDatabase();" "$i" | mongo + rm -rf "./test$i" +done -- cgit v1.2.3