houdini/lib/generators/overrides/rails/plugin/templates/Rakefile.tt
2020-06-15 10:26:57 -05:00

18 lines
526 B
Text

# frozen_string_literal: true
# License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE
require "bundler/setup"
<% if engine? && !options[:skip_active_record] && with_dummy_app? -%>
APP_RAKEFILE = File.expand_path("<%= dummy_path -%>/Rakefile", __dir__)
load "rails/tasks/engine.rake"
<% end -%>
<% if engine? -%>
load "rails/tasks/statistics.rake"
<% end -%>
<% unless options[:skip_gemspec] -%>
require "bundler/gem_tasks"
<% end -%>