Sha256: 88ee7c9f9eff88a36f5ed4f648ab98fd03dc688a2a17b5d6926a0c9079ca26c4

Contents?: true

Size: 511 Bytes

Versions: 9

Compression:

Stored size: 511 Bytes

Contents

require_relative "task_helpers"
include ReactOnRails::TaskHelpers

namespace :node_package do
  task :build do
    sh 'npm run build'
  end

  desc "Has all examples and dummy apps use local node_package folder for react-on-rails node dependency"
  task :symlink do
    sh_in_dir(gem_root, "npm run symlink-node-package")
  end
end

desc "Prepares node_package by building and symlinking any example/dummy apps present"
task node_package: "node_package:build" do
  Rake::Task["node_package:symlink"].invoke
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
react_on_rails-2.2.0 rakelib/node_package.rake
react_on_rails-2.1.1 rakelib/node_package.rake
react_on_rails-2.1.0 rakelib/node_package.rake
react_on_rails-2.0.2 rakelib/node_package.rake
react_on_rails-2.0.1 rakelib/node_package.rake
react_on_rails-2.0.0 rakelib/node_package.rake
react_on_rails-2.0.0.rc.4 rakelib/node_package.rake
react_on_rails-2.0.0.rc.3 rakelib/node_package.rake
react_on_rails-2.0.0.rc.1 rakelib/node_package.rake