isomorfeus 1.0.0.zeta11 → 1.0.0.zeta12
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 +9 -7
- data/lib/isomorfeus/installer/templates/Procfile.erb +0 -2
- data/lib/isomorfeus/installer/templates/ProcfileDev.erb +3 -0
- data/lib/isomorfeus/installer/templates/app.rb.erb +1 -1
- data/lib/isomorfeus/installer/templates/debug.js.erb +5 -5
- data/lib/isomorfeus/installer/templates/development.js.erb +5 -5
- data/lib/isomorfeus/installer/templates/development_ssr.js.erb +4 -4
- data/lib/isomorfeus/installer/templates/package.json.erb +1 -0
- data/lib/isomorfeus/installer/templates/production.js.erb +5 -5
- data/lib/isomorfeus/installer.rb +7 -5
- data/lib/isomorfeus/version.rb +1 -1
- data/lib/isomorfeus.rb +7 -0
- metadata +104 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca4c6fe2123db35af3b2ba14009afc114b4433c2838e3bc5199e6fb645fd22a8
|
4
|
+
data.tar.gz: 81f8fec18f95a86936b3f280a6ad31aa857a4231cd582890d25889ca7ed228b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f888dcfa51672ebd52d28862c9f4479998e51feeefeb03214cd6170e12f2e008e8b62c1300debf19ad3b5c306428be38be0d775b2e3e0a1ccdd09b0b527fda7a
|
7
|
+
data.tar.gz: 35ff856f04fb7285d8668d75e8bd7783c9e419f59a743c1e0d66dbb94239abbd0a895cee377e466ebab43f6d484630c3d006a59904c8ce6227e0f472ce703284
|
@@ -5,21 +5,23 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
|
5
5
|
gem 'foreman', require: false
|
6
6
|
|
7
7
|
gem 'roda', '~> 3.27.0'
|
8
|
-
|
9
8
|
gem 'opal', github: 'janbiedermann/opal', branch: 'es6_modules_1_1'
|
10
|
-
gem 'opal-activesupport', '~> 0.3.3'
|
11
|
-
gem 'opal-webpack-loader', '>= 0.9.10'
|
12
9
|
|
13
|
-
|
14
|
-
gem 'isomorfeus
|
10
|
+
<% if isomorfeus %>
|
11
|
+
gem 'isomorfeus', <%= isomorfeus %>
|
12
|
+
<% else %>
|
13
|
+
gem 'isomorfeus-redux', '~> 4.0.17'
|
14
|
+
gem 'isomorfeus-react', '>= 16.12.9'
|
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
|
-
|
20
|
+
<% end %>
|
21
21
|
|
22
22
|
group :development do
|
23
|
+
gem 'debase'
|
24
|
+
gem 'ruby-debug-ide'
|
23
25
|
gem 'pry', '~> 0.12.2'
|
24
26
|
gem 'pry-nav'
|
25
27
|
gem 'pry-rescue'
|
@@ -28,5 +30,5 @@ end
|
|
28
30
|
|
29
31
|
group :test do
|
30
32
|
gem 'rspec', '~> 3.8.0'
|
31
|
-
gem 'isomorfeus-puppetmaster', '~> 0.3.
|
33
|
+
gem 'isomorfeus-puppetmaster', '~> 0.3.4'
|
32
34
|
end
|
@@ -9,7 +9,7 @@ class <%= app_class %> < Roda
|
|
9
9
|
include Isomorfeus::ReactViewHelper
|
10
10
|
|
11
11
|
use_isomorfeus_middlewares
|
12
|
-
plugin :public, root: 'public'
|
12
|
+
plugin :public, root: 'public', gzip: true
|
13
13
|
|
14
14
|
def page_content(env, location)
|
15
15
|
locale = env.http_accept_language.preferred_language_from(Isomorfeus.available_locales)
|
@@ -5,7 +5,7 @@ const ExtraWatchWebpackPlugin = require('extra-watch-webpack-plugin'); // to wat
|
|
5
5
|
|
6
6
|
const common_config = {
|
7
7
|
target: 'web',
|
8
|
-
context: path.resolve(__dirname, '../
|
8
|
+
context: path.resolve(__dirname, '../app'),
|
9
9
|
mode: "development",
|
10
10
|
optimization: {
|
11
11
|
removeAvailableModules: false,
|
@@ -38,7 +38,7 @@ const common_config = {
|
|
38
38
|
// both for hot reloading
|
39
39
|
new webpack.HotModuleReplacementPlugin(),
|
40
40
|
// watch for added files in opal dir
|
41
|
-
new ExtraWatchWebpackPlugin({ dirs: [path.resolve(__dirname, '../
|
41
|
+
new ExtraWatchWebpackPlugin({ dirs: [path.resolve(__dirname, '../app')] }),
|
42
42
|
new webpack.DefinePlugin({
|
43
43
|
OPAL_DEVTOOLS_OBJECT_REGISTRY: true
|
44
44
|
})
|
@@ -55,7 +55,7 @@ const common_config = {
|
|
55
55
|
{
|
56
56
|
loader: "sass-loader",
|
57
57
|
options: {
|
58
|
-
sassOptions: { includePaths: [path.resolve(__dirname, '../
|
58
|
+
sassOptions: { includePaths: [path.resolve(__dirname, '../app/styles')] },
|
59
59
|
sourceMap: true // set to false to speed up hot reloads
|
60
60
|
}
|
61
61
|
}
|
@@ -116,12 +116,12 @@ const common_config = {
|
|
116
116
|
};
|
117
117
|
|
118
118
|
const browser_config = {
|
119
|
-
entry: { application: [path.resolve(__dirname, '../
|
119
|
+
entry: { application: [path.resolve(__dirname, '../app/imports/application.js')] }
|
120
120
|
};
|
121
121
|
|
122
122
|
//const web_worker_config = {
|
123
123
|
// target: 'webworker',
|
124
|
-
// entry: { web_worker: [path.resolve(__dirname, '../
|
124
|
+
// entry: { web_worker: [path.resolve(__dirname, '../app/imports/application_web_worker.js')] },
|
125
125
|
// externals: { crypto: 'Crypto' }
|
126
126
|
//};
|
127
127
|
|
@@ -6,7 +6,7 @@ const ExtraWatchWebpackPlugin = require('extra-watch-webpack-plugin'); // to wat
|
|
6
6
|
|
7
7
|
const common_config = {
|
8
8
|
target: 'web',
|
9
|
-
context: path.resolve(__dirname, '../
|
9
|
+
context: path.resolve(__dirname, '../app'),
|
10
10
|
mode: "development",
|
11
11
|
optimization: {
|
12
12
|
removeAvailableModules: false,
|
@@ -29,7 +29,7 @@ const common_config = {
|
|
29
29
|
// both for hot reloading
|
30
30
|
new webpack.HotModuleReplacementPlugin(),
|
31
31
|
// watch for added files in opal dir
|
32
|
-
new ExtraWatchWebpackPlugin({ dirs: [ path.resolve(__dirname, '../
|
32
|
+
new ExtraWatchWebpackPlugin({ dirs: [ path.resolve(__dirname, '../app') ] })
|
33
33
|
],
|
34
34
|
module: {
|
35
35
|
rules: [
|
@@ -39,7 +39,7 @@ const common_config = {
|
|
39
39
|
{
|
40
40
|
loader: "sass-loader",
|
41
41
|
options: {
|
42
|
-
sassOptions: { includePaths: [path.resolve(__dirname, '../
|
42
|
+
sassOptions: { includePaths: [path.resolve(__dirname, '../app/styles')] },
|
43
43
|
sourceMap: false
|
44
44
|
}
|
45
45
|
}
|
@@ -95,12 +95,12 @@ const common_config = {
|
|
95
95
|
};
|
96
96
|
|
97
97
|
const browser_config = {
|
98
|
-
entry: { application: [path.resolve(__dirname, '../
|
98
|
+
entry: { application: [path.resolve(__dirname, '../app/imports/application.js')] }
|
99
99
|
};
|
100
100
|
|
101
101
|
//const web_worker_config = {
|
102
102
|
// target: 'webworker',
|
103
|
-
// entry: { web_worker: [path.resolve(__dirname, '../
|
103
|
+
// entry: { web_worker: [path.resolve(__dirname, '../app/imports/application_web_worker.js')] },
|
104
104
|
// externals: { crypto: 'Crypto' }
|
105
105
|
//};
|
106
106
|
|
@@ -6,7 +6,7 @@ const ExtraWatchWebpackPlugin = require('extra-watch-webpack-plugin'); // to wat
|
|
6
6
|
|
7
7
|
const common_config = {
|
8
8
|
target: 'node',
|
9
|
-
context: path.resolve(__dirname, '../
|
9
|
+
context: path.resolve(__dirname, '../app'),
|
10
10
|
mode: "development",
|
11
11
|
optimization: {
|
12
12
|
removeAvailableModules: false,
|
@@ -34,7 +34,7 @@ const common_config = {
|
|
34
34
|
// dont split ssr asset in chunks
|
35
35
|
new webpack.optimize.LimitChunkCountPlugin({ maxChunks: 1 }),
|
36
36
|
// watch for added files in opal dir
|
37
|
-
new ExtraWatchWebpackPlugin({ dirs: [ path.resolve(__dirname, '../
|
37
|
+
new ExtraWatchWebpackPlugin({ dirs: [ path.resolve(__dirname, '../app') ] })
|
38
38
|
],
|
39
39
|
module: {
|
40
40
|
rules: [
|
@@ -46,7 +46,7 @@ const common_config = {
|
|
46
46
|
{
|
47
47
|
loader: "sass-loader",
|
48
48
|
options: {
|
49
|
-
sassOptions: { includePaths: [path.resolve(__dirname, '../
|
49
|
+
sassOptions: { includePaths: [path.resolve(__dirname, '../app/styles')] },
|
50
50
|
sourceMap: false
|
51
51
|
}
|
52
52
|
}
|
@@ -103,7 +103,7 @@ const common_config = {
|
|
103
103
|
};
|
104
104
|
|
105
105
|
const ssr_config = {
|
106
|
-
entry: { application_ssr: [path.resolve(__dirname, '../
|
106
|
+
entry: { application_ssr: [path.resolve(__dirname, '../app/imports/application_ssr.js')] }
|
107
107
|
};
|
108
108
|
|
109
109
|
const ssr = Object.assign({}, common_config, ssr_config);
|
@@ -13,6 +13,7 @@
|
|
13
13
|
"ws": "^7.2.0"
|
14
14
|
},
|
15
15
|
"scripts": {
|
16
|
+
"build": "parallel-webpack --config=webpack/production.js",
|
16
17
|
"debug": "webpack-dev-server --config=webpack/debug.js",
|
17
18
|
"development": "webpack-dev-server --config=webpack/development.js",
|
18
19
|
"development_ssr": "webpack-dev-server --config=webpack/development_ssr.js",
|
@@ -5,7 +5,7 @@ const TerserPlugin = require('terser-webpack-plugin'); // for minifying the pack
|
|
5
5
|
const WebpackAssetsManifest = require('webpack-assets-manifest');
|
6
6
|
|
7
7
|
const common_config = {
|
8
|
-
context: path.resolve(__dirname, '../
|
8
|
+
context: path.resolve(__dirname, '../app'),
|
9
9
|
mode: "production",
|
10
10
|
optimization: {
|
11
11
|
minimize: true, // minimize
|
@@ -29,7 +29,7 @@ const common_config = {
|
|
29
29
|
{
|
30
30
|
loader: "sass-loader",
|
31
31
|
options: {
|
32
|
-
sassOptions: { includePaths: [path.resolve(__dirname, '../
|
32
|
+
sassOptions: { includePaths: [path.resolve(__dirname, '../app/styles')] },
|
33
33
|
sourceMap: false
|
34
34
|
}
|
35
35
|
}
|
@@ -58,7 +58,7 @@ const common_config = {
|
|
58
58
|
|
59
59
|
const browser_config = {
|
60
60
|
target: 'web',
|
61
|
-
entry: { application: [path.resolve(__dirname, '../
|
61
|
+
entry: { application: [path.resolve(__dirname, '../app/imports/application.js')] },
|
62
62
|
plugins: [
|
63
63
|
new CompressionPlugin({ test: /^((?!application_ssr).)*$/, cache: true }), // gzip compress, exclude application_ssr.js
|
64
64
|
new WebpackAssetsManifest({ publicPath: true, merge: true }) // generate manifest
|
@@ -68,7 +68,7 @@ const browser_config = {
|
|
68
68
|
|
69
69
|
const ssr_config = {
|
70
70
|
target: 'node',
|
71
|
-
entry: { application_ssr: [path.resolve(__dirname, '../
|
71
|
+
entry: { application_ssr: [path.resolve(__dirname, '../app/imports/application_ssr.js')] },
|
72
72
|
plugins: [
|
73
73
|
new WebpackAssetsManifest({ publicPath: true, merge: true }) // generate manifest
|
74
74
|
]
|
@@ -76,7 +76,7 @@ const ssr_config = {
|
|
76
76
|
|
77
77
|
//const web_worker_config = {
|
78
78
|
// target: 'webworker',
|
79
|
-
// entry: { web_worker: [path.resolve(__dirname, '../
|
79
|
+
// entry: { web_worker: [path.resolve(__dirname, '../app/imports/application_web_worker.js')] },
|
80
80
|
// plugins: [
|
81
81
|
// new CompressionPlugin({ test: /^((?!application_ssr).)*$/, cache: true }), // gzip compress, exclude application_ssr.js
|
82
82
|
// new WebpackAssetsManifest({ publicPath: true, merge: true }) // generate manifest
|
data/lib/isomorfeus/installer.rb
CHANGED
@@ -90,7 +90,7 @@ module Isomorfeus
|
|
90
90
|
end
|
91
91
|
|
92
92
|
def self.isomorfeus_path
|
93
|
-
'
|
93
|
+
'app'
|
94
94
|
end
|
95
95
|
|
96
96
|
def self.webpack_config_path(config_file)
|
@@ -188,12 +188,13 @@ module Isomorfeus
|
|
188
188
|
end
|
189
189
|
data_hash = { database_gems: database_gems.chop,
|
190
190
|
rack_server_gems: rack_server_gems.chop }
|
191
|
-
|
192
|
-
|
191
|
+
if source_dir
|
192
|
+
%i[isomorfeus_data isomorfeus_i18n isomorfeus_operation isomorfeus_policy isomorfeus_transport].each do |i_module|
|
193
193
|
data_hash[i_module] = i_module == isomorfeus_module ? "path: '..'" : "path: '../../#{i_module.to_s.tr('_', '-')}'"
|
194
|
-
else
|
195
|
-
data_hash[i_module] = "'~> #{Isomorfeus::VERSION}'"
|
196
194
|
end
|
195
|
+
data_hash[:isomorfeus] = nil
|
196
|
+
else
|
197
|
+
data_hash[:isomorfeus] = "'~> #{Isomorfeus::VERSION}'"
|
197
198
|
end
|
198
199
|
create_file_from_template('Gemfile.erb', 'Gemfile', data_hash)
|
199
200
|
end
|
@@ -229,6 +230,7 @@ module Isomorfeus
|
|
229
230
|
def self.create_procfile
|
230
231
|
data_hash = { rack_server_start_command: rack_server[:start_command] }
|
231
232
|
create_file_from_template('Procfile.erb', 'Procfile', data_hash)
|
233
|
+
create_file_from_template('ProcfileDev.erb', 'ProcfileDev', data_hash)
|
232
234
|
create_file_from_template('ProcfileDebug.erb', 'ProcfileDebug', data_hash)
|
233
235
|
end
|
234
236
|
|
data/lib/isomorfeus/version.rb
CHANGED
data/lib/isomorfeus.rb
ADDED
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.zeta12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Biedermann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -94,6 +94,104 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 0.19.4
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: isomorfeus-react
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 16.12.9
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 16.12.9
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: isomorfeus-redux
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 4.0.17
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 4.0.17
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: isomorfeus-policy
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - '='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 1.0.0.zeta12
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - '='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 1.0.0.zeta12
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: isomorfeus-transport
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - '='
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 1.0.0.zeta12
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - '='
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 1.0.0.zeta12
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: isomorfeus-data
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - '='
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 1.0.0.zeta12
|
160
|
+
type: :runtime
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - '='
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 1.0.0.zeta12
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: isomorfeus-i18n
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - '='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 1.0.0.zeta12
|
174
|
+
type: :runtime
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - '='
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: 1.0.0.zeta12
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: isomorfeus-operation
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - '='
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 1.0.0.zeta12
|
188
|
+
type: :runtime
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - '='
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 1.0.0.zeta12
|
97
195
|
- !ruby/object:Gem::Dependency
|
98
196
|
name: bundler
|
99
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,7 +234,7 @@ dependencies:
|
|
136
234
|
- - "~>"
|
137
235
|
- !ruby/object:Gem::Version
|
138
236
|
version: 3.8.0
|
139
|
-
description: Create new isomorfeus-
|
237
|
+
description: Create new isomorfeus-project applications with ease.
|
140
238
|
email: jan@kursator.de
|
141
239
|
executables:
|
142
240
|
- isomorfeus
|
@@ -147,6 +245,7 @@ files:
|
|
147
245
|
- LICENSE
|
148
246
|
- bin/isomorfeus
|
149
247
|
- bin/yandle
|
248
|
+
- lib/isomorfeus.rb
|
150
249
|
- lib/isomorfeus/cli.rb
|
151
250
|
- lib/isomorfeus/console.rb
|
152
251
|
- lib/isomorfeus/installer.rb
|
@@ -159,6 +258,7 @@ files:
|
|
159
258
|
- lib/isomorfeus/installer/templates/Gemfile.erb
|
160
259
|
- lib/isomorfeus/installer/templates/Procfile.erb
|
161
260
|
- lib/isomorfeus/installer/templates/ProcfileDebug.erb
|
261
|
+
- lib/isomorfeus/installer/templates/ProcfileDev.erb
|
162
262
|
- lib/isomorfeus/installer/templates/anonymous_policy.rb.erb
|
163
263
|
- lib/isomorfeus/installer/templates/app.rb.erb
|
164
264
|
- lib/isomorfeus/installer/templates/app_loader.rb.erb
|
@@ -208,5 +308,5 @@ requirements: []
|
|
208
308
|
rubygems_version: 3.0.6
|
209
309
|
signing_key:
|
210
310
|
specification_version: 4
|
211
|
-
summary: Create new isomorfeus-
|
311
|
+
summary: Create new isomorfeus-project applications with ease.
|
212
312
|
test_files: []
|