mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-06-11 16:20:15 +08:00
17 lines
458 B
Ruby
17 lines
458 B
Ruby
unless defined?(Motion::Project::Config)
|
|
raise "The MotionKit gem must be required within a RubyMotion project Rakefile."
|
|
end
|
|
|
|
require 'dbt'
|
|
|
|
Motion::Project::App.setup do |app|
|
|
core_lib = File.join(File.dirname(__FILE__), 'ProMotion')
|
|
insert_point = app.files.find_index { |file| file =~ /^(?:\.\/)?app\// } || 0
|
|
|
|
Dir.glob(File.join(core_lib, '**/*.rb')).reverse.each do |file|
|
|
app.files.insert(insert_point, file)
|
|
end
|
|
|
|
DBT.analyze(app)
|
|
end
|