forked from matter-labs/zksync-dapp-checkout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cli-dev.sh
executable file
·43 lines (39 loc) · 1021 Bytes
/
cli-dev.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
CATEGORY="$1"
ACTION="$2"
if [[ $CATEGORY == "clean" ]]; then
if [[ $ACTION == "yarn" ]]; then
echo "Yarn garbage collection started"
echo ""
echo " - dropping node_modules folder..."
rm -rf node_modules
echo " Done"
echo " - removing .yarn cached files..."
rm -rf .yarn/cache .yarn/build-state.yml .yarn/install-state.gz
echo " Done"
echo " - cleaning yarn cache..."
yarn cache clean --all
printf " Done\n\n"
echo "All done!"
elif [[ $ACTION == "nuxt" ]]; then
echo "Nuxtjs garbage collection started"
echo ""
echo " - dropping .nuxt folder..."
rm -rf .nuxt
echo " Done"
echo " - cleaning the files inside public folder..."
rm -rf public/*
printf " Done\n\n"
echo "All done!"
fi
fi
if [[ $CATEGORY == "ci" ]]; then
echo "Yarn pre-deploy garbage collection started"
echo ""
bash cli-dev.sh clean nuxt
echo ""
echo ""
bash cli-dev.sh clean yarn
echo ""
echo "Done"
fi