Sha256: a24b4f7430a68dee7841d3b17106f009074293a90709e8eb7401f434f867a8e9

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_2 do
    dummy_app_dir = File.join(gem_root, "spec/dummy")
    bundle_install_with_turbolinks_2_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.9.1 rakelib/dummy_apps.rake
react_on_rails-6.9.0 rakelib/dummy_apps.rake
react_on_rails-6.8.2 rakelib/dummy_apps.rake
react_on_rails-6.8.1 rakelib/dummy_apps.rake