Use scripty instead of writing shell commands in package.json
This commit is contained in:
parent
1342381694
commit
9353449515
18 changed files with 128 additions and 39 deletions
5
scripts/clean/client/sass.sh
Executable file
5
scripts/clean/client/sass.sh
Executable 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
4
scripts/clean/client/tsc.sh
Executable 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
6
scripts/clean/server/test.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue