isomorfeus 1.0.0.zeta14 → 1.0.0.zeta15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/isomorfeus/installer/templates/Gemfile.erb +5 -3
- data/lib/isomorfeus/installer/templates/application_common.js.erb +5 -1
- data/lib/isomorfeus/installer/templates/arango_config.rb.erb +11 -10
- data/lib/isomorfeus/installer/templates/development_ssr.js.erb +6 -2
- data/lib/isomorfeus/installer/templates/mail_components.js.erb +23 -0
- data/lib/isomorfeus/installer/templates/mail_components_loader.rb.erb +18 -0
- data/lib/isomorfeus/installer/templates/production.js.erb +10 -1
- data/lib/isomorfeus/installer.rb +6 -4
- data/lib/isomorfeus/version.rb +1 -1
- metadata +30 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53c054ba3c30f999f02116e066507487f05feef8323ff07c9fc25f21a1e9f23e
|
4
|
+
data.tar.gz: 5ea56d1ebe87721f8d8ee5d22611398bc9be50e323eb51f8cd1c41640d08e446
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66eb495dbe85a81c49baa1c97fec49a815dabc09b9ee8526f1623a335a6a3bcb29982f632d1a8db35a9913419ac5c6366cee0550104940da567ddb952a27ecc3
|
7
|
+
data.tar.gz: 0ff9889bdc648c07e159b0f28b1ab0c99867a86e1af95507b2c5a3cb0fb361b886e9ac9c0515ba0c97be96f9f52197dd97b3a0cc2ee561309d859cf63090f355
|
@@ -7,16 +7,18 @@ gem 'foreman', require: false
|
|
7
7
|
gem 'roda', '~> 3.27.0'
|
8
8
|
gem 'opal', github: 'janbiedermann/opal', branch: 'es6_modules_1_1'
|
9
9
|
|
10
|
-
<% if
|
11
|
-
gem 'isomorfeus', <%=
|
10
|
+
<% if isomorfeus_version %>
|
11
|
+
gem 'isomorfeus', <%= isomorfeus_version %>
|
12
12
|
<% else %>
|
13
13
|
gem 'isomorfeus-redux', '~> 4.0.17'
|
14
|
-
gem 'isomorfeus-react', '>= 16.12.
|
14
|
+
gem 'isomorfeus-react', '>= 16.12.17'
|
15
15
|
gem 'isomorfeus-policy', <%= isomorfeus_policy %>
|
16
16
|
gem 'isomorfeus-transport', <%= isomorfeus_transport %>
|
17
17
|
gem 'isomorfeus-i18n', <%= isomorfeus_i18n %>
|
18
18
|
gem 'isomorfeus-data', <%= isomorfeus_data %>
|
19
19
|
gem 'isomorfeus-operation', <%= isomorfeus_operation %>
|
20
|
+
gem 'isomorfeus-mailer', <%= isomorfeus_mailer %>
|
21
|
+
gem 'isomorfeus', <%= isomorfeus %>
|
20
22
|
<% end %>
|
21
23
|
|
22
24
|
group :development do
|
@@ -1,12 +1,16 @@
|
|
1
1
|
// import javascript modules common to browser and server side rendering environments
|
2
2
|
import * as Redux from 'redux';
|
3
3
|
global.Redux = Redux;
|
4
|
+
|
4
5
|
import React from 'react';
|
5
6
|
global.React = React;
|
7
|
+
|
6
8
|
import * as ReactRouter from 'react-router';
|
7
|
-
import * as ReactRouterDOM from 'react-router-dom';
|
8
9
|
global.ReactRouter = ReactRouter;
|
10
|
+
|
11
|
+
import * as ReactRouterDOM from 'react-router-dom';
|
9
12
|
global.ReactRouterDOM = ReactRouterDOM;
|
13
|
+
|
10
14
|
import * as ReactJSS from 'react-jss';
|
11
15
|
global.ReactJSS = ReactJSS;
|
12
16
|
|
@@ -1,16 +1,17 @@
|
|
1
1
|
# Arango DB
|
2
|
-
|
3
|
-
Isomorfeus.arango_production = { username: ENV['ARANGO_USER'], password: ENV['ARANGO_PASSWORD'],
|
4
|
-
|
5
|
-
|
2
|
+
if ENV['ARANGO_USER'] && ENV['ARANGO_PASSWORD']
|
3
|
+
Isomorfeus.arango_production = { username: ENV['ARANGO_USER'], password: ENV['ARANGO_PASSWORD'],
|
4
|
+
host: "localhost", port: "8529",
|
5
|
+
database: "<%= app_class %>Production" }
|
6
6
|
|
7
|
-
Isomorfeus.arango_development = { username: ENV['ARANGO_USER'], password: ENV['ARANGO_PASSWORD'],
|
8
|
-
|
9
|
-
|
7
|
+
Isomorfeus.arango_development = { username: ENV['ARANGO_USER'], password: ENV['ARANGO_PASSWORD'],
|
8
|
+
host: "localhost", port: "8529",
|
9
|
+
database: "<%= app_class %>Development" }
|
10
10
|
|
11
|
-
Isomorfeus.arango_test = { username: ENV['ARANGO_USER'], password: ENV['ARANGO_PASSWORD'],
|
12
|
-
|
13
|
-
|
11
|
+
Isomorfeus.arango_test = { username: ENV['ARANGO_USER'], password: ENV['ARANGO_PASSWORD'],
|
12
|
+
host: "localhost", port: "8529",
|
13
|
+
database: "<%= app_class %>Test" }
|
14
|
+
end
|
14
15
|
|
15
16
|
# create database, if possible
|
16
17
|
# initialize Isomorfeus collections
|
@@ -106,6 +106,10 @@ const ssr_config = {
|
|
106
106
|
entry: { application_ssr: [path.resolve(__dirname, '../app/imports/application_ssr.js')] }
|
107
107
|
};
|
108
108
|
|
109
|
-
const
|
109
|
+
const mail_components_config = {
|
110
|
+
entry: { mail_components: [path.resolve(__dirname, '../app/imports/mail_components.js')] }
|
111
|
+
};
|
110
112
|
|
111
|
-
|
113
|
+
const ssr = Object.assign({}, common_config, ssr_config);
|
114
|
+
const mail_components = Object.assign({}, common_config, mail_components_config);
|
115
|
+
module.exports = [ ssr, mail_components ];
|
@@ -0,0 +1,23 @@
|
|
1
|
+
// entry file for the server side rendering environment (ssr)
|
2
|
+
// import npm modules that are only valid to use in the server side rendering environment
|
3
|
+
// for example modules which depend on objects provided by node js
|
4
|
+
import ReactDOMServer from 'react-dom/server';
|
5
|
+
global.ReactDOMServer = ReactDOMServer;
|
6
|
+
|
7
|
+
import WebSocket from 'ws';
|
8
|
+
global.WebSocket = WebSocket;
|
9
|
+
|
10
|
+
import * as Redux from 'redux';
|
11
|
+
global.Redux = Redux;
|
12
|
+
|
13
|
+
import React from 'react';
|
14
|
+
global.React = React;
|
15
|
+
|
16
|
+
import * as ReactJSS from 'react-jss';
|
17
|
+
global.ReactJSS = ReactJSS;
|
18
|
+
|
19
|
+
import init_mail_components from 'mail_components_loader.rb';
|
20
|
+
init_mail_components();
|
21
|
+
global.Opal.load('mail_components_loader');
|
22
|
+
|
23
|
+
if (module.hot) { module.hot.accept(); }
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'opal'
|
2
|
+
require 'isomorfeus-redux'
|
3
|
+
require 'isomorfeus-react-material-ui'
|
4
|
+
require 'isomorfeus-policy'
|
5
|
+
require 'isomorfeus-transport'
|
6
|
+
require 'isomorfeus-data'
|
7
|
+
require 'isomorfeus-i18n'
|
8
|
+
require 'isomorfeus-operation'
|
9
|
+
|
10
|
+
require_tree 'policies', :autoload
|
11
|
+
require_tree 'channels', :autoload
|
12
|
+
require_tree 'data', :autoload
|
13
|
+
require_tree 'operations', :autoload
|
14
|
+
require_tree 'mail_components', :autoload
|
15
|
+
|
16
|
+
Isomorfeus.zeitwerk.push_dir('mail_components')
|
17
|
+
|
18
|
+
Isomorfeus.start_app!
|
@@ -74,6 +74,14 @@ const ssr_config = {
|
|
74
74
|
]
|
75
75
|
};
|
76
76
|
|
77
|
+
const mail_components_config = {
|
78
|
+
target: 'node',
|
79
|
+
entry: { mail_components: [path.resolve(__dirname, '../app/imports/mail_components.js')] },
|
80
|
+
plugins: [
|
81
|
+
new WebpackAssetsManifest({ publicPath: true, merge: true }) // generate manifest
|
82
|
+
]
|
83
|
+
};
|
84
|
+
|
77
85
|
//const web_worker_config = {
|
78
86
|
// target: 'webworker',
|
79
87
|
// entry: { web_worker: [path.resolve(__dirname, '../app/imports/application_web_worker.js')] },
|
@@ -86,6 +94,7 @@ const ssr_config = {
|
|
86
94
|
|
87
95
|
const browser = Object.assign({}, common_config, browser_config);
|
88
96
|
const ssr = Object.assign({}, common_config, ssr_config);
|
97
|
+
const mail_components = Object.assign({}, common_config, mail_components_config);
|
89
98
|
// const web_worker = Object.assign({}, common_config, web_worker_config);
|
90
99
|
|
91
|
-
module.exports = [ browser, ssr ];
|
100
|
+
module.exports = [ browser, ssr, mail_components ];
|
data/lib/isomorfeus/installer.rb
CHANGED
@@ -115,7 +115,7 @@ module Isomorfeus
|
|
115
115
|
|
116
116
|
def self.create_directories
|
117
117
|
# no created: handlers
|
118
|
-
%w[channels components data imports locales operations policies server styles].each do |isomorfeus_dir|
|
118
|
+
%w[channels components data imports locales mail_components operations policies server styles].each do |isomorfeus_dir|
|
119
119
|
create_directory(File.join(isomorfeus_path, isomorfeus_dir))
|
120
120
|
end
|
121
121
|
create_directory('spec')
|
@@ -154,6 +154,7 @@ module Isomorfeus
|
|
154
154
|
data_hash = { app_class: app_class }
|
155
155
|
create_file_from_template('isomorfeus_loader.rb.erb', File.join(isomorfeus_path, 'isomorfeus_loader.rb'), data_hash)
|
156
156
|
create_file_from_template('isomorfeus_web_worker_loader.rb.erb', File.join(isomorfeus_path, 'isomorfeus_web_worker_loader.rb'), data_hash)
|
157
|
+
create_file_from_template('mail_components_loader.rb.erb', File.join(isomorfeus_path, 'mail_components_loader.rb'), data_hash)
|
157
158
|
end
|
158
159
|
|
159
160
|
def self.install_js_entries
|
@@ -162,6 +163,7 @@ module Isomorfeus
|
|
162
163
|
create_file_from_template('application_common.js.erb', entrypoint_path('application_common.js'), data_hash)
|
163
164
|
create_file_from_template('application_ssr.js.erb', entrypoint_path('application_ssr.js'), data_hash)
|
164
165
|
create_file_from_template('application_web_worker.js.erb', entrypoint_path('application_web_worker.js'), data_hash)
|
166
|
+
create_file_from_template('mail_components.js.erb', entrypoint_path('mail_components.js'), data_hash)
|
165
167
|
end
|
166
168
|
|
167
169
|
def self.install_styles
|
@@ -189,12 +191,12 @@ module Isomorfeus
|
|
189
191
|
data_hash = { database_gems: database_gems.chop,
|
190
192
|
rack_server_gems: rack_server_gems.chop }
|
191
193
|
if source_dir
|
192
|
-
%i[isomorfeus_data isomorfeus_i18n isomorfeus_operation isomorfeus_policy isomorfeus_transport].each do |i_module|
|
194
|
+
%i[isomorfeus isomorfeus_data isomorfeus_i18n isomorfeus_mailer isomorfeus_operation isomorfeus_policy isomorfeus_transport].each do |i_module|
|
193
195
|
data_hash[i_module] = i_module == isomorfeus_module ? "path: '..'" : "path: '../../#{i_module.to_s.tr('_', '-')}'"
|
194
196
|
end
|
195
|
-
data_hash[:
|
197
|
+
data_hash[:isomorfeus_version] = nil
|
196
198
|
else
|
197
|
-
data_hash[:
|
199
|
+
data_hash[:isomorfeus_version] = "'~> #{Isomorfeus::VERSION}'"
|
198
200
|
end
|
199
201
|
create_file_from_template('Gemfile.erb', 'Gemfile', data_hash)
|
200
202
|
end
|
data/lib/isomorfeus/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isomorfeus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.zeta15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Biedermann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 16.12.
|
103
|
+
version: 16.12.17
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 16.12.
|
110
|
+
version: 16.12.17
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: isomorfeus-redux
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,70 +128,84 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - '='
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 1.0.0.
|
131
|
+
version: 1.0.0.zeta15
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - '='
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 1.0.0.
|
138
|
+
version: 1.0.0.zeta15
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: isomorfeus-transport
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - '='
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 1.0.0.
|
145
|
+
version: 1.0.0.zeta15
|
146
146
|
type: :runtime
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - '='
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: 1.0.0.
|
152
|
+
version: 1.0.0.zeta15
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: isomorfeus-data
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - '='
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 1.0.0.
|
159
|
+
version: 1.0.0.zeta15
|
160
160
|
type: :runtime
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - '='
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 1.0.0.
|
166
|
+
version: 1.0.0.zeta15
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: isomorfeus-i18n
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
171
|
- - '='
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: 1.0.0.
|
173
|
+
version: 1.0.0.zeta15
|
174
174
|
type: :runtime
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - '='
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: 1.0.0.
|
180
|
+
version: 1.0.0.zeta15
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: isomorfeus-operation
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
185
|
- - '='
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: 1.0.0.
|
187
|
+
version: 1.0.0.zeta15
|
188
188
|
type: :runtime
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
192
|
- - '='
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version: 1.0.0.
|
194
|
+
version: 1.0.0.zeta15
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: isomorfeus-mailer
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - '='
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: 1.0.0.zeta15
|
202
|
+
type: :runtime
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - '='
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: 1.0.0.zeta15
|
195
209
|
- !ruby/object:Gem::Dependency
|
196
210
|
name: bundler
|
197
211
|
requirement: !ruby/object:Gem::Requirement
|
@@ -278,6 +292,8 @@ files:
|
|
278
292
|
- lib/isomorfeus/installer/templates/iodine_config.rb.erb
|
279
293
|
- lib/isomorfeus/installer/templates/isomorfeus_loader.rb.erb
|
280
294
|
- lib/isomorfeus/installer/templates/isomorfeus_web_worker_loader.rb.erb
|
295
|
+
- lib/isomorfeus/installer/templates/mail_components.js.erb
|
296
|
+
- lib/isomorfeus/installer/templates/mail_components_loader.rb.erb
|
281
297
|
- lib/isomorfeus/installer/templates/my_app.rb.erb
|
282
298
|
- lib/isomorfeus/installer/templates/navigation_links.rb.erb
|
283
299
|
- lib/isomorfeus/installer/templates/not_found_404_component.rb.erb
|