houdini/lib/generators/overrides/rails/plugin/templates/Rakefile.tt
2021-01-22 15:29:42 -06:00

18 lines
528 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 -%>