Browse Source

Improved script

Arnaud Vergnet 1 year ago
parent
commit
4c746a0b60
1 changed files with 20 additions and 1 deletions
  1. 20
    1
      clear-node-cache.sh

+ 20
- 1
clear-node-cache.sh View File

@@ -1 +1,20 @@
1
-rm -rf node_modules/ && rm -f package-lock.json && rm -f yarn.lock && npm cache verify && npm install && expo r -c
1
+#!/bin/bash
2
+
3
+echo "Removing node_modules..."
4
+rm -rf node_modules/
5
+echo -e "Done\n"
6
+
7
+echo "Removing locks..."
8
+rm -f package-lock.json && rm -f yarn.lock
9
+echo -e "Done\n"
10
+
11
+#echo "Verifying npm cache..."
12
+#npm cache verify
13
+#echo -e "Done\n"
14
+
15
+echo "Installing dependencies..."
16
+npm install
17
+echo -e "Done\n"
18
+
19
+echo "Starting expo with clear cache..."
20
+expo r -c

Loading…
Cancel
Save