Sha256: 245988184140d2976a56fafdc8216a0c1495ae6901bca27e4dcfa5d067bc9a57
Contents?: true
Size: 827 Bytes
Versions: 3
Compression:
Stored size: 827 Bytes
Contents
# frozen_string_literal: true require_relative "task_helpers" namespace :dummy_apps do include ReactOnRails::TaskHelpers task :yarn_install do yarn_install_cmd = "yarn install --mutex network" sh_in_dir(dummy_app_dir, yarn_install_cmd) sh_in_dir(dummy_app_dir, "yalc link react-on-rails") end task dummy_app: [:yarn_install] do dummy_app_dir = File.join(gem_root, "spec/dummy") bundle_install_in(dummy_app_dir) end task :generate_packs do dummy_app_dir = File.join(gem_root, "spec/dummy") sh_in_dir(dummy_app_dir, "bundle exec rake react_on_rails:generate_packs") end task dummy_apps: %i[dummy_app node_package generate_packs] 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
react_on_rails-13.4.0 | rakelib/dummy_apps.rake |
react_on_rails-13.3.5 | rakelib/dummy_apps.rake |
react_on_rails-13.3.4 | rakelib/dummy_apps.rake |