Sha256: ec9a49cc5baa9a9e8df6982def77a6e372cc76157c6b25e402c7c8fb8ebef8bd

Contents?: true

Size: 685 Bytes

Versions: 4

Compression:

Stored size: 685 Bytes

Contents

require_relative "task_helpers"
include ReactOnRails::TaskHelpers

namespace :dummy_apps do
  task :dummy_app do
    dummy_app_dir = File.join(gem_root, "spec/dummy")
    bundle_install_in(dummy_app_dir)
    sh_in_dir(dummy_app_dir, "yarn install --mutex network")
  end

  task :dummy_app_with_turbolinks_5 do
    dummy_app_dir = File.join(gem_root, "spec/dummy")
    bundle_install_with_turbolinks_5_in(dummy_app_dir)
    sh_in_dir(dummy_app_dir, "yarn install --mutex network")
  end

  task dummy_apps: [:dummy_app, :node_package] do
    puts "Prepared all Dummy Apps"
  end
end

desc "Prepares all dummy apps by installing dependencies"
task dummy_apps: ["dummy_apps:dummy_apps"]

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
react_on_rails-6.8.0 rakelib/dummy_apps.rake
react_on_rails-6.7.2 rakelib/dummy_apps.rake
react_on_rails-6.7.1 rakelib/dummy_apps.rake
react_on_rails-6.6.0 rakelib/dummy_apps.rake