File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ require 'colorize'
44puts "Cleaning all react-native caches we know about so far..."
55
66def run ( cmd )
7- puts cmd . cyan + ' ' + `#{ cmd } `
7+ puts cmd . cyan
8+ system "#{ cmd } "
89end
910
1011run "watchman watch-del-all"
@@ -21,7 +22,6 @@ run "npm install"
2122puts "Manually refreshing packages..."
2223pid = Process . spawn "npm run start -- --reset-cache"
2324sleep ( 10 )
24- run "curl http://localhost:8081/index.bundle?platform=ios&dev=true > /dev/null"
25-
25+ run "curl --output /dev/null --silent http://localhost:8081/index.bundle?platform=ios&dev=true"
2626puts "Clean finished 🚀" . green
2727
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ if !platform
88 exit
99elsif platform == 'android' && !emulator
1010 puts "No emulator specified. Existing emulators: (avdmanager list avd)"
11- puts ` avdmanager list avd`
11+ system " avdmanager list avd"
1212 exit
1313end
1414begin
2020 sleep ( 5 )
2121 end
2222
23- puts ` react-native run-#{ platform } `
24- puts ` open http://localhost:7007`
23+ system " react-native run-#{ platform } "
24+ system " open http://localhost:7007"
2525 Process . wait ( pid )
2626rescue Exception => ex
2727 puts "================== Error, stopping dev script ========================"
Original file line number Diff line number Diff line change 11
22Gem ::Specification . new do |spec |
33 spec . name = 'mobile_scripts'
4- spec . version = '1.0.1 '
4+ spec . version = '1.0.2 '
55 spec . authors = [ 'Mobile team at Table XI' ]
66 spec . summary = 'A collection of scripts frequently used on mobile projects at Table XI.'
77 spec . files = Dir . glob ( '{bin,lib}/**/*' )
You can’t perform that action at this time.
0 commit comments