shakacode/react_on_rails

View on GitHub
rakelib/node_package.rake

Summary

Maintainability
Test Coverage
# frozen_string_literal: true

require_relative "task_helpers"

namespace :node_package do
  include ReactOnRails::TaskHelpers

  task :build do
    puts "Building Node Package and running 'yalc publish'"
    sh "yarn run build && yalc publish"
  end
end

desc "Prepares node_package by building and symlinking any example/dummy apps present"
task node_package: "node_package:build"