Install react-rails
All checks were successful
Run unit tests / unit_tests (pull_request) Successful in 1m28s

This commit is contained in:
Manuel Bustillo 2024-08-10 11:30:52 +02:00
parent c2deefbfca
commit 978b4c90e1
8 changed files with 31 additions and 0 deletions

3
.gitignore vendored
View File

@ -33,3 +33,6 @@
# Ignore master key for decrypting credentials and more.
/config/master.key
/node_modules
/public/packs

View File

@ -68,3 +68,4 @@ gem "money"
gem 'acts-as-taggable-on'
gem "rubytree"
gem 'react-rails'

View File

@ -77,6 +77,10 @@ GEM
tzinfo (~> 2.0)
acts-as-taggable-on (10.0.0)
activerecord (>= 6.1, < 7.2)
babel-source (5.8.35)
babel-transpiler (0.7.0)
babel-source (>= 4.0, < 6)
execjs (~> 2.0)
base64 (0.2.0)
bigdecimal (3.1.8)
bindex (0.8.1)
@ -94,6 +98,7 @@ GEM
diff-lcs (1.5.1)
drb (2.2.1)
erubi (1.13.0)
execjs (2.9.1)
factory_bot (6.4.6)
activesupport (>= 5.0.0)
factory_bot_rails (6.4.3)
@ -204,6 +209,12 @@ GEM
rake (13.2.1)
rdoc (6.7.0)
psych (>= 4.0.0)
react-rails (3.2.1)
babel-transpiler (>= 0.7.0)
connection_pool
execjs
railties (>= 3.2)
tilt
redis (5.2.0)
redis-client (>= 0.22.0)
redis-client (0.22.2)
@ -240,6 +251,7 @@ GEM
railties (>= 6.0.0)
stringio (3.1.1)
thor (1.3.1)
tilt (2.4.0)
timeout (0.4.1)
turbo-rails (2.0.6)
actionpack (>= 6.0.0)
@ -279,6 +291,7 @@ DEPENDENCIES
pry
puma (>= 5.0)
rails (~> 7.1.3, >= 7.1.3.2)
react-rails
redis (>= 4.0.1)
rspec-rails (~> 6.1.0)
rubytree

View File

@ -0,0 +1,3 @@
//= require react
//= require react_ujs
//= require components

View File

@ -0,0 +1 @@
//= require_tree ./components

View File

View File

@ -0,0 +1,6 @@
//= require react-server
//= require react_ujs
//= require ./components
//
// By default, this file is loaded for server-side rendering.
// It should require your components and any dependencies.

View File

@ -0,0 +1,4 @@
# frozen_string_literal: true
# To render React components in production, precompile the server rendering manifest:
Rails.application.config.assets.precompile += ["server_rendering.js"]