1
0
Fork 0

Use scripty instead of writing shell commands in package.json

This commit is contained in:
Chocobozzz 2016-04-30 11:17:50 +02:00
parent 1342381694
commit 9353449515
18 changed files with 128 additions and 39 deletions

5
scripts/clean/client/sass.sh Executable file
View file

@ -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 {} \;

4
scripts/clean/client/tsc.sh Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env sh
cd client || exit -1
find angular -regextype posix-egrep -regex ".*\.(js|map)$" -exec rm -f {} \;

6
scripts/clean/server/test.sh Executable file
View file

@ -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