rails-react-views 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails_react_views/shell.rb +6 -0
- data/lib/rails_react_views/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc41bd10d999965569459f8913b9359d2a2e4a921b1de8c3213b38ab46c04ab1
|
4
|
+
data.tar.gz: 8b430b6328f34ca3c80f3e5fb88d54f941ecb85fe8d063afcfee3aa148544f19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d55204280e58e7bff48dd11bd12bafae308f231d7bdd9b03c4f408cd2d9f044f7c4d65991f485f3efe5082fd97c564edf0a5b04c77705f05dbf97a587d5a47c8
|
7
|
+
data.tar.gz: ac09e337076987ebc22c717d80a12b23a4920636294daab9d6442e61f367a274af61c59a1aae44f639591ae8ecc6e649733226b8dbd8326234a1f7806f202a4f
|
@@ -6,6 +6,8 @@ module RailsReactViews
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def config
|
9
|
+
return default_config unless File.exists?(Rails.root.join('node_modules/rails-react-views/dist/cjs/server/scripts/config.js'))
|
10
|
+
|
9
11
|
`#{node} node_modules/rails-react-views/dist/cjs/server/scripts/config.js`
|
10
12
|
end
|
11
13
|
|
@@ -19,6 +21,10 @@ module RailsReactViews
|
|
19
21
|
"BABEL_ENV=test node_modules/.bin/babel-node -x '.js,.jsx,.ts,.tsx'"
|
20
22
|
end
|
21
23
|
end
|
24
|
+
|
25
|
+
def default_config
|
26
|
+
'{"server":true,"port":3030,"workers":8,"cmd":true,"layout":"application","prerender":"default"}'
|
27
|
+
end
|
22
28
|
end
|
23
29
|
end
|
24
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-react-views
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Geerts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|