From bc8c54e1a7af43c17a0a2f05184d629d90d8b3e4 Mon Sep 17 00:00:00 2001 From: edwardlafoy Date: Mon, 5 Mar 2018 10:33:13 -0600 Subject: [PATCH] output cleanup --- bin/clean | 6 +++--- bin/start-dev | 6 +++--- mobile_scripts.gemspec | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bin/clean b/bin/clean index 9a5506f..4ef1502 100755 --- a/bin/clean +++ b/bin/clean @@ -4,7 +4,8 @@ require 'colorize' puts "Cleaning all react-native caches we know about so far..." def run(cmd) - puts cmd.cyan + ' ' + `#{cmd}` + puts cmd.cyan + system "#{cmd}" end run "watchman watch-del-all" @@ -21,7 +22,6 @@ run "npm install" puts "Manually refreshing packages..." pid = Process.spawn "npm run start -- --reset-cache" sleep(10) -run "curl http://localhost:8081/index.bundle?platform=ios&dev=true > /dev/null" - +run "curl --output /dev/null --silent http://localhost:8081/index.bundle?platform=ios&dev=true" puts "Clean finished 🚀".green diff --git a/bin/start-dev b/bin/start-dev index edce61d..f2129c8 100755 --- a/bin/start-dev +++ b/bin/start-dev @@ -8,7 +8,7 @@ if !platform exit elsif platform == 'android' && !emulator puts "No emulator specified. Existing emulators: (avdmanager list avd)" - puts `avdmanager list avd` + system "avdmanager list avd" exit end begin @@ -20,8 +20,8 @@ begin sleep(5) end - puts `react-native run-#{platform}` - puts `open http://localhost:7007` + system "react-native run-#{platform}" + system "open http://localhost:7007" Process.wait(pid) rescue Exception => ex puts "================== Error, stopping dev script ========================" diff --git a/mobile_scripts.gemspec b/mobile_scripts.gemspec index eaee99a..0ddce87 100644 --- a/mobile_scripts.gemspec +++ b/mobile_scripts.gemspec @@ -1,7 +1,7 @@ Gem::Specification.new do |spec| spec.name = 'mobile_scripts' - spec.version = '1.0.1' + spec.version = '1.0.2' spec.authors = ['Mobile team at Table XI'] spec.summary = 'A collection of scripts frequently used on mobile projects at Table XI.' spec.files = Dir.glob('{bin,lib}/**/*')