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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a7ac05bf80cec2829fa8e6fc98c31919844a9a2daaaf5e36631b219d2d48fd0
4
- data.tar.gz: d442e398115c05441883fb873ef73d43b1841348ca198288377e1297347079ee
3
+ metadata.gz: fc41bd10d999965569459f8913b9359d2a2e4a921b1de8c3213b38ab46c04ab1
4
+ data.tar.gz: 8b430b6328f34ca3c80f3e5fb88d54f941ecb85fe8d063afcfee3aa148544f19
5
5
  SHA512:
6
- metadata.gz: 8821fb6c3c987078c23ba2b9d44f76358bf9fabeaead3dec41313e1e01a50222901f8128753dda657f297598d572d1841818fb3344d5415e39d172f90186d533
7
- data.tar.gz: d72ba94b7b765c13a42fe77f8942fa4da4dbcad477ee1f16a650084d8016e90b06e5e937624c756b67b2a042cfdbffba56e46888c35aeeb4d88add2d1981474c
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
@@ -1,3 +1,3 @@
1
1
  module RailsReactViews
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  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.8
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: 2022-09-19 00:00:00.000000000 Z
11
+ date: 2023-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails