Sha256: c6cf88ddcc61f1f414fecfeb0916995f71aa2f8a0e64ab769ed5e2723c7000d1

Contents?: true

Size: 1014 Bytes

Versions: 9

Compression:

Stored size: 1014 Bytes

Contents

# frozen_string_literal: true

require_relative "task_helpers"
include ReactOnRails::TaskHelpers

namespace :dummy_apps do
  task :yarn_install do
    yarn_install_cmd = "yarn install --mutex network"
    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_no_webpacker do
    npm_install_cmd = "npm install"
    install_react_on_rails_cmd = "yarn run install-react-on-rails"
    dummy_app_dir = File.join(gem_root, "spec/dummy_no_webpacker")
    sh_in_dir(File.join(gem_root, "spec/dummy_no_webpacker/client"), npm_install_cmd)
    sh_in_dir(dummy_app_dir, install_react_on_rails_cmd)
    sh_in_dir(dummy_app_dir, "BUNDLE_GEMFILE=Gemfile.rails32 bundle install")
  end

  task dummy_apps: %i[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

9 entries across 9 versions & 1 rubygems

Version Path
react_on_rails-10.0.2 rakelib/dummy_apps.rake
react_on_rails-10.0.1 rakelib/dummy_apps.rake
react_on_rails-10.0.0 rakelib/dummy_apps.rake
react_on_rails-9.0.3 rakelib/dummy_apps.rake
react_on_rails-9.0.2 rakelib/dummy_apps.rake
react_on_rails-9.0.1 rakelib/dummy_apps.rake
react_on_rails-9.0.0 rakelib/dummy_apps.rake
react_on_rails-9.0.0.rc.0 rakelib/dummy_apps.rake
react_on_rails-9.0.0.beta.12 rakelib/dummy_apps.rake