houdini/lib/generators/overrides/rails/plugin/templates/Rakefile.tt

19 lines
528 B
Text
Raw Normal View History

# frozen_string_literal: true
2020-06-12 20:03:43 +00:00
# License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
2021-01-22 20:50:31 +00:00
# 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 -%>