Sha256: 05fc472510f0e8121be024c2401641a8a179be4726b04bfcaeb9ccad0ea06e5f

Contents?: true

Size: 1.67 KB

Versions: 51

Compression:

Stored size: 1.67 KB

Contents

# frozen_string_literal: true

# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.

puts "Loading engine rake tasks"

begin
  require "bundler/setup"
rescue LoadError
  puts "You must `gem install bundler` and `bundle install` to run rake tasks"
end

# We can use rake tasks like app:db:reset when APP_RAKEFILE set
unless defined?(APP_RAKEFILE)
  APP_RAKEFILE = File.expand_path("spec/dummy/Rakefile", __dir__)
end

load "rails/tasks/engine.rake"
load "rails/tasks/statistics.rake"

require "bundler/gem_tasks"

# Bundler::GemHelper.install_tasks

# assets:* tasks for For Heroku only
# When deploying the engine to Heroku, we are actually deployment the spec/dummy app.
# Heroku however loads this Rakefile first hunting for an assets:precompile task to indicate
# it should compile the assets. If not found it won't compile assets and we won't have any styling.
namespace :assets do
  desc "Clean any assets within dummy app"
  task :clean do
    Rake::Task["app:assets:clean"].invoke
  end

  desc "Precompile assets within dummy app"
  task :precompile do
    Rake::Task["app:yarn:install"].invoke
    Rake::Task["app:assets:precompile"].invoke
  end

  desc "Clobbers assets within dummy app"
  task :clobber do
    Rake::Task["app:assets:clobber"].invoke
  end
end

namespace :yarn do
  task :install do
    Rake::Task["app:yarn:install"].invoke
  end
end

# Default rake task to run all tests:
#   bundle exec rake
task :engine_default_task do
  sh "bin/rspec"
  sh "bin/cucumber"
  sh "bin/cucumber TEST_DEPTH=web --profile rake_web"
end
task(:default).clear.enhance(["engine_default_task"])

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
renalware-core-2.1.1 Rakefile
renalware-core-2.1.0 Rakefile
renalware-core-2.0.167 Rakefile
renalware-core-2.0.166 Rakefile
renalware-core-2.0.165 Rakefile
renalware-core-2.0.164 Rakefile
renalware-core-2.0.163 Rakefile
renalware-core-2.0.162 Rakefile
renalware-core-2.0.161 Rakefile
renalware-core-2.0.160 Rakefile
renalware-core-2.0.159 Rakefile
renalware-core-2.0.158 Rakefile
renalware-core-2.0.157 Rakefile
renalware-core-2.0.156 Rakefile
renalware-core-2.0.155 Rakefile
renalware-core-2.0.153 Rakefile
renalware-core-2.0.152 Rakefile
renalware-core-2.0.151 Rakefile
renalware-core-2.0.149 Rakefile
renalware-core-2.0.148 Rakefile