Sha256: aceb69f68e5830a4c368bdc0bc6f07a53a6b7a5396df2e4a70406a8ec2f8f1f8
Contents?: true
Size: 920 Bytes
Versions: 1
Compression:
Stored size: 920 Bytes
Contents
# # Rake / Cordova # task default: [:greet, :compile, :report] task :greet do puts "PhoneGap Rake! #{environment} #{ENV['CORDOVA_PLATFORMS']}" puts "---" end desc 'Setup env for development' task :setup do sh 'npm -g install phonegap cordova coffee-script' sh 'gem install haml sass yamg' end task :report do puts "---" puts "Rake done! #{format("%.2f", Time.now - START)}s" end desc 'Phonegap Dev App, optional: port.' task :serve do port = ARGV.last.to_i port = 4000 if port.zero? sh "phonegap serve -p #{port}" end desc 'Prepare & Ripple emulate' task :ripple do sh 'cordova prepare' sh 'ripple emulate' end namespace :run do desc 'Run on Android device or emulator' task :android do sh 'cordova build android' sh 'cordova run android' end desc 'Run on iOS plugged device or emulator' task :ios do sh 'cordova build ios' sh 'cordova run ios --device' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cordova-rake-0.0.5 | lib/tasks/cordova.rake |