aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/clean
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-04-30 11:17:50 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-04-30 12:56:36 +0200
commit9353449515ff6881a54ce6887297b7eab2855186 (patch)
treed3a6a3e84b3684e3689c4b40ed2e1d53b26a3dc8 /scripts/clean
parent1342381694456da6bfcb01a6f9e23c54cc90c82e (diff)
downloadPeerTube-9353449515ff6881a54ce6887297b7eab2855186.tar.gz
PeerTube-9353449515ff6881a54ce6887297b7eab2855186.tar.zst
PeerTube-9353449515ff6881a54ce6887297b7eab2855186.zip
Use scripty instead of writing shell commands in package.json
Diffstat (limited to 'scripts/clean')
-rwxr-xr-xscripts/clean/client/sass.sh5
-rwxr-xr-xscripts/clean/client/tsc.sh4
-rwxr-xr-xscripts/clean/server/test.sh6
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
3cd client || exit -1
4rm -f stylesheets/index.css
5find 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
3cd client || exit -1
4find 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
3for i in $(seq 1 6); do
4 printf "use peertube-test%s;\ndb.dropDatabase();" "$i" | mongo
5 rm -rf "./test$i"
6done