Sha256: 8ce44ae5bc2d3e4f3ac902543824576a24bf47c89dde0252fb5c9ab8d73fcc7b
Contents?: true
Size: 763 Bytes
Versions: 9
Compression:
Stored size: 763 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) dummy_app_client_dir = File.join(dummy_app_dir, "client") # Note, we do not put in "npm build" as npm install does that! sh_in_dir(dummy_app_client_dir, ["npm install", "$(npm bin)/webpack --config webpack.server.js", "$(npm bin)/webpack --config webpack.client.js"]) 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
9 entries across 9 versions & 1 rubygems