Skip to content

Commit bc8c54e

Browse files
committed
output cleanup
1 parent ef700f6 commit bc8c54e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

bin/clean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ require 'colorize'
44
puts "Cleaning all react-native caches we know about so far..."
55

66
def run(cmd)
7-
puts cmd.cyan + ' ' + `#{cmd}`
7+
puts cmd.cyan
8+
system "#{cmd}"
89
end
910

1011
run "watchman watch-del-all"
@@ -21,7 +22,6 @@ run "npm install"
2122
puts "Manually refreshing packages..."
2223
pid = Process.spawn "npm run start -- --reset-cache"
2324
sleep(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"
2626
puts "Clean finished 🚀".green
2727

bin/start-dev

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if !platform
88
exit
99
elsif 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
1313
end
1414
begin
@@ -20,8 +20,8 @@ begin
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)
2626
rescue Exception => ex
2727
puts "================== Error, stopping dev script ========================"

mobile_scripts.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Gem::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}/**/*')

0 commit comments

Comments
 (0)