Sha256: 4c56cf2b110eff3062f264ed8db82fc71148b2603e3b5536dddd595013408d76

Contents?: true

Size: 762 Bytes

Versions: 14

Compression:

Stored size: 762 Bytes

Contents

require_relative "task_helpers"
include ReactOnRails::TaskHelpers

namespace :dummy_apps do
  task :yarn_install do
    yarn_install_cmd = "yarn install --mutex network && yarn run install-react-on-rails"
    sh_in_dir(dummy_app_dir, yarn_install_cmd)
  end

  task dummy_app: [:yarn_install] do
    dummy_app_dir = File.join(gem_root, "spec/dummy")
    bundle_install_in(dummy_app_dir)
  end

  task dummy_app_with_turbolinks_2: [:yarn_install] do
    dummy_app_dir = File.join(gem_root, "spec/dummy")
    bundle_install_with_turbolinks_2_in(dummy_app_dir)
  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

14 entries across 14 versions & 1 rubygems

Version Path
react_on_rails-8.0.0.beta.2 rakelib/dummy_apps.rake
react_on_rails-8.0.0.beta.1 rakelib/dummy_apps.rake
react_on_rails-7.1.0.beta.3 rakelib/dummy_apps.rake
react_on_rails-7.0.4 rakelib/dummy_apps.rake
react_on_rails-7.1.0.beta.2 rakelib/dummy_apps.rake
react_on_rails-7.0.3 rakelib/dummy_apps.rake
react_on_rails-7.1.0.beta.1 rakelib/dummy_apps.rake
react_on_rails-7.0.2 rakelib/dummy_apps.rake
react_on_rails-7.0.1 rakelib/dummy_apps.rake
react_on_rails-7.0.0 rakelib/dummy_apps.rake
react_on_rails-6.10.1 rakelib/dummy_apps.rake
react_on_rails-6.10.0 rakelib/dummy_apps.rake
react_on_rails-6.9.3 rakelib/dummy_apps.rake
react_on_rails-6.9.2 rakelib/dummy_apps.rake