isomorfeus-installer 1.0.0.zeta2 → 1.0.0.zeta3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isomorfeus/installer/templates/Gemfile.erb +2 -2
- data/lib/isomorfeus/installer/templates/app.rb.erb +3 -1
- data/lib/isomorfeus/installer/templates/application_common.js.erb +2 -0
- data/lib/isomorfeus/installer/templates/debug.js.erb +4 -4
- data/lib/isomorfeus/installer/templates/development.js.erb +4 -4
- data/lib/isomorfeus/installer/templates/package.json.erb +1 -1
- data/lib/isomorfeus/installer/templates/production.js.erb +4 -4
- data/lib/isomorfeus/installer/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: 2db526f1f4d9cf3b30a464477042099b1fbe05ed204daf364638560a3869911f
|
4
|
+
data.tar.gz: 82fc9ee5f643eb0288a7d15fdd02b2a9f933815fac23068718f20cef81921b29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8a9259d00fcf254e483a85020c4e8f9d6fcf679213944ffece3666563778be7a35ac41f7899f987888391852947fbe4675e240c77a2ad742f3b87fef1694e69
|
7
|
+
data.tar.gz: 749d2a660584ad4bbbc519451819b7b50bae91845a2cbf3480901ecf113a3257e90060895600f1a94c7bdce7320fb1ff9b87ecf637654b56f3f5a93905c12218
|
@@ -10,8 +10,8 @@ gem 'opal', github: 'janbiedermann/opal', branch: 'es6_modules_1_1'
|
|
10
10
|
gem 'opal-activesupport', '~> 0.3.3'
|
11
11
|
gem 'opal-webpack-loader', '>= 0.9.5'
|
12
12
|
|
13
|
-
gem 'isomorfeus-redux', '~> 4.0.
|
14
|
-
gem 'isomorfeus-react', '>= 16.9.
|
13
|
+
gem 'isomorfeus-redux', '~> 4.0.12'
|
14
|
+
gem 'isomorfeus-react', '>= 16.9.17'
|
15
15
|
gem 'isomorfeus-policy', <%= isomorfeus_policy %>
|
16
16
|
gem 'isomorfeus-transport', <%= isomorfeus_transport %>
|
17
17
|
gem 'isomorfeus-i18n', <%= isomorfeus_i18n %>
|
@@ -15,14 +15,16 @@ class <%= app_class %> < Roda
|
|
15
15
|
locale = env.http_accept_language.preferred_language_from(Isomorfeus.available_locales)
|
16
16
|
locale = env.http_accept_language.compatible_language_from(Isomorfeus.available_locales) unless locale
|
17
17
|
locale = Isomorfeus.locale unless locale
|
18
|
+
rendered_tree = mount_component('<%= app_class %>', location_host: env['HTTP_HOST'], location: location, locale: locale)
|
18
19
|
<<~HTML
|
19
20
|
<html>
|
20
21
|
<head>
|
21
22
|
<title>Welcome to <%= app_class %></title>
|
23
|
+
<style id="jss-server-side" type="text/css">#{ssr_styles}</style>
|
22
24
|
#{owl_script_tag 'application.js'}
|
23
25
|
</head>
|
24
26
|
<body>
|
25
|
-
#{
|
27
|
+
#{rendered_tree}
|
26
28
|
</body>
|
27
29
|
</html>
|
28
30
|
HTML
|
@@ -7,5 +7,7 @@ import * as ReactRouter from 'react-router';
|
|
7
7
|
import * as ReactRouterDOM from 'react-router-dom';
|
8
8
|
global.ReactRouter = ReactRouter;
|
9
9
|
global.ReactRouterDOM = ReactRouterDOM;
|
10
|
+
import * as ReactJSS from 'react-jss';
|
11
|
+
global.ReactJSS = ReactJSS;
|
10
12
|
|
11
13
|
if (module.hot) { module.hot.accept(); }
|
@@ -43,7 +43,7 @@ const common_config = {
|
|
43
43
|
rules: [
|
44
44
|
{
|
45
45
|
test: /.scss$/,
|
46
|
-
use: [ "
|
46
|
+
use: [ "style-loader",
|
47
47
|
{
|
48
48
|
loader: "css-loader",
|
49
49
|
options: { sourceMap: true }
|
@@ -59,7 +59,7 @@ const common_config = {
|
|
59
59
|
},
|
60
60
|
{
|
61
61
|
test: /.css$/,
|
62
|
-
use: [ "
|
62
|
+
use: [ "style-loader",
|
63
63
|
{
|
64
64
|
loader: "css-loader",
|
65
65
|
options: { sourceMap: true }
|
@@ -68,11 +68,11 @@ const common_config = {
|
|
68
68
|
},
|
69
69
|
{
|
70
70
|
test: /.(png|svg|jpg|gif|woff|woff2|eot|ttf|otf)$/,
|
71
|
-
use: [ "
|
71
|
+
use: [ "file-loader" ]
|
72
72
|
},
|
73
73
|
{
|
74
74
|
test: /.(rb|js.rb)$/,
|
75
|
-
use: [
|
75
|
+
use: [
|
76
76
|
{
|
77
77
|
loader: 'opal-webpack-loader', // opal-webpack-loader will compile and include ruby files in the pack
|
78
78
|
options: {
|
@@ -33,7 +33,7 @@ const common_config = {
|
|
33
33
|
rules: [
|
34
34
|
{
|
35
35
|
test: /.scss$/,
|
36
|
-
use: [ "
|
36
|
+
use: [ "style-loader" , "css-loader",
|
37
37
|
{
|
38
38
|
loader: "sass-loader",
|
39
39
|
options: {
|
@@ -45,15 +45,15 @@ const common_config = {
|
|
45
45
|
},
|
46
46
|
{
|
47
47
|
test: /.css$/,
|
48
|
-
use: ["
|
48
|
+
use: ["style-loader", "css-loader"]
|
49
49
|
},
|
50
50
|
{
|
51
51
|
test: /.(png|svg|jpg|gif|woff|woff2|eot|ttf|otf)$/,
|
52
|
-
use: ["
|
52
|
+
use: ["file-loader"]
|
53
53
|
},
|
54
54
|
{
|
55
55
|
test: /.(rb|js.rb)$/,
|
56
|
-
use: [
|
56
|
+
use: [
|
57
57
|
{
|
58
58
|
loader: 'opal-webpack-loader', // opal-webpack-loader will compile and include ruby files in the pack
|
59
59
|
options: {
|
@@ -5,6 +5,7 @@
|
|
5
5
|
"opal-webpack-loader": "^0.9.5",
|
6
6
|
"react": "^16.9.0",
|
7
7
|
"react-dom": "^16.9.0",
|
8
|
+
"react-jss": "^10.0.0-alpha.24",
|
8
9
|
"react-router": "^5.0.1",
|
9
10
|
"react-router-dom": "^5.0.1",
|
10
11
|
"redux": "^4.0.4",
|
@@ -16,7 +17,6 @@
|
|
16
17
|
"production_build": "parallel-webpack --config=webpack/production.js"
|
17
18
|
},
|
18
19
|
"devDependencies": {
|
19
|
-
"cache-loader": "^4.1.0",
|
20
20
|
"compression-webpack-plugin": "^3.0.0",
|
21
21
|
"css-loader": "^3.2.0",
|
22
22
|
"extra-watch-webpack-plugin": "^1.0.3",
|
@@ -25,7 +25,7 @@ const common_config = {
|
|
25
25
|
rules: [
|
26
26
|
{
|
27
27
|
test: /.scss$/,
|
28
|
-
use: ["
|
28
|
+
use: ["style-loader", "css-loader",
|
29
29
|
{
|
30
30
|
loader: "sass-loader",
|
31
31
|
options: {
|
@@ -37,15 +37,15 @@ const common_config = {
|
|
37
37
|
},
|
38
38
|
{
|
39
39
|
test: /.css$/,
|
40
|
-
use: ["
|
40
|
+
use: ["style-loader", "css-loader"]
|
41
41
|
},
|
42
42
|
{
|
43
43
|
test: /.(png|svg|jpg|gif|woff|woff2|eot|ttf|otf)$/,
|
44
|
-
use: ["
|
44
|
+
use: ["file-loader"]
|
45
45
|
},
|
46
46
|
{
|
47
47
|
test: /.(rb|js.rb)$/,
|
48
|
-
use: [
|
48
|
+
use: [
|
49
49
|
{
|
50
50
|
loader: 'opal-webpack-loader', // opal-webpack-loader will compile and include ruby files in the pack
|
51
51
|
options: { sourceMap: false, hmr: false }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isomorfeus-installer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.zeta3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Biedermann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|