Skip to content

Commit

Permalink
output cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardlafoy committed Mar 5, 2018
1 parent ef700f6 commit bc8c54e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions bin/clean
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand 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

6 changes: 3 additions & 3 deletions bin/start-dev
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 ========================"
Expand Down
2 changes: 1 addition & 1 deletion mobile_scripts.gemspec
Original file line number Diff line number Diff line change
@@ -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}/**/*')
Expand Down

0 comments on commit bc8c54e

Please sign in to comment.