1 begin 2 require 'bundler/setup' 3 rescue LoadError 4 puts "Couldn't find Bundler!" 5 puts 6 puts "Please run:" 7 puts " gem install bundler" 8 puts 9 puts "...and then try again." 10 puts 11 exit 12 end 13 14 # dependencies 15 require 'json' 16 require 'rspec/core/rake_task' 17 require 'uglifier' 18 19 # helper module 20 require File.expand_path('./tasks/support/gl-matrix', File.dirname(__FILE__)) 21 include GLMatrix 22 23 Dir[base_path.join './tasks/**/*.rake'].each do |f| 24 load f 25 end 26