isomorfeus-installer 1.0.0.delta9 → 1.0.0.delta11

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: a105a6284c0952401f02836670d1ac8ba7cc0d22b995f0bc13a1e62c05f40966
4
- data.tar.gz: 94a7497fb4027d0450b59b548ef5f3ebe9e8bce0f4bc542e66f32a3378cd4770
3
+ metadata.gz: 5eec40fde73e88b0d7b135aba80c1364a4f9adc0acd73338edd8d595baa4e510
4
+ data.tar.gz: e3b00cd22f27e5ec50d22746df8c56760dabe212880604cbf5043ba306111d4c
5
5
  SHA512:
6
- metadata.gz: 100a2b5c82ce3bd90c3798523a9d8b173f06bdc3dbdb19fdf7567697fdcc6dd467ee8f49d36658dbf46cd2ae24e5cd992a22fc3e8e5af13b744a659f2fb0b6e2
7
- data.tar.gz: bf9730c6d780335b278c00556c198e28404705dfc121fa99a14444abf157db01f4a54755da8e3882dc00671d8f777b3fba31b1cd20cbdbfc054349519bc4146d
6
+ metadata.gz: a504844adc2b0275141e8d6aaadbff2c84d1cbb5b17219eaf3696a9c43c7a3800206f851a0d7266ac0928b3322dafd3b398cd3064e434003f3bdcc34ce0da0d5
7
+ data.tar.gz: 8c70a11c4ff527325b3a51e778ec8ed178dd63dbcd1f7e194c33aea04ec3c9152c6493617ab978b0096a292f4235fcf8663a81f13ebafc3634f031c0305ca0f6
@@ -3,10 +3,6 @@ module Isomorfeus
3
3
  class CLI < Thor
4
4
 
5
5
  desc "new project_name", "create a new isomorfeus project with project_name"
6
-
7
- option :data, default: false, type: :boolean, aliases: '-d', desc: "Use data module. (optional, required by other modules)"
8
- option :i18n, default: false, type: :boolean, aliases: '-i', desc: "Use i18n module. (optional)"
9
- option :operation, default: false, type: :boolean, aliases: '-o', desc: "Use operation module. (optional)"
10
6
  option :policy, default: false, type: :boolean, aliases: '-p', desc: "Use policy module. (optional)"
11
7
  option :rack_server, default: 'iodine', aliases: '-r',
12
8
  desc: "Select rack server, one of: #{Isomorfeus::Installer.sorted_rack_servers.join(', ')}. (optional)"
@@ -2,8 +2,6 @@ module Isomorfeus
2
2
  module Installer
3
3
  module OptionsMangler
4
4
  def self.mangle_options(options)
5
- Isomorfeus::Installer.use_data = true if options[:i18n]
6
-
7
5
  if options.key?(:rack_server) && Isomorfeus::Installer.sorted_rack_servers.include?(options[:rack_server])
8
6
  Isomorfeus::Installer.rack_server = Isomorfeus::Installer.rack_servers[options[:rack_server]]
9
7
  Isomorfeus::Installer.rack_server_name = options[:rack_server]
@@ -1,11 +1,3 @@
1
- Isomorfeus::Installer.add_i18n_module('i18n', {
2
- gems: [ { name: 'isomorfeus-i18n', version: "~> #{Isomorfeus::Installer::VERSION}" } ]
3
- })
4
-
5
- Isomorfeus::Installer.add_operation_module('operation', {
6
- gems: [ { name: 'isomorfeus-operation', version: "~> #{Isomorfeus::Installer::VERSION}" } ]
7
- })
8
-
9
1
  Isomorfeus::Installer.add_policy_module('policy', {
10
2
  gems: [ { name: 'isomorfeus-policy', version: "~> #{Isomorfeus::Installer::VERSION}" } ]
11
3
  })
@@ -7,19 +7,21 @@ gem 'foreman', require: false
7
7
  gem 'roda', '~> 3.22.0'
8
8
 
9
9
  gem 'opal', github: 'janbiedermann/opal', branch: 'es6_modules_1_1'
10
- gem 'opal-activesupport', github: 'janbiedermann/opal-activesupport', branch: 'relax'
10
+ gem 'opal-activesupport', '~> 0.3.3'
11
11
  gem 'opal-webpack-loader', '>= 0.9.2'
12
12
 
13
- gem 'isomorfeus-redux', '~> 4.0.8'
14
- <%= transport_gems %>
15
- gem 'isomorfeus-react', '~> 16.8.8'
16
- #<%= database_gems %>
13
+ gem 'isomorfeus-redux', '~> 4.0.11'
14
+ gem 'isomorfeus-react', '>= 16.9.2'
15
+ gem 'isomorfeus-transport', '<%= isomorfeus_version %>'
16
+ gem 'isomorfeus-data', '<%= isomorfeus_version %>'
17
+ gem 'isomorfeus-i18n', '<%= isomorfeus_version %>'
18
+ gem 'isomorfeus-operation', '<%= isomorfeus_version %>'
17
19
  #<%= policy_gems %>
18
- #<%= operation_gems %>
19
- #<%= i18n_gems %>
20
20
 
21
21
  group :development do
22
22
  gem 'auto_reloader'
23
+ gem 'debase', '0.2.3.beta5'
24
+ gem 'ruby-debug-ide', '0.7.0.beta7'
23
25
  end
24
26
 
25
27
  group :test do
@@ -1,19 +1,17 @@
1
1
  require 'opal'
2
2
  require 'opal-autoloader'
3
3
  require 'isomorfeus-redux'
4
- require 'isomorfeus-transport'
5
4
  require 'isomorfeus-react'
6
-
7
- <% if use_data %>require 'isomorfeus-data'<% end %>
5
+ require 'isomorfeus-transport'
6
+ require 'isomorfeus-data'
7
+ require 'isomorfeus-i18n'
8
+ require 'isomorfeus-operation'
8
9
  <% if use_policy %>require 'isomorfeus-policy'<% end %>
9
- <% if use_operation %>require 'isomorfeus-operation'<% end %>
10
- <% if use_i18n %>require 'isomorfeus-i18n'<% end %>
11
-
12
- <% if use_policy %>require_tree 'policies'<% end %>
13
- <% if use_operation %>require_tree 'operations'<% end %>
14
10
 
15
11
  require_tree 'channels'
16
12
  require_tree 'data'
17
13
  require_tree 'components'
14
+ require_tree 'operations'
15
+ <% if use_policy %>require_tree 'policies'<% end %>
18
16
 
19
17
  Isomorfeus.start_app!
@@ -2,13 +2,13 @@
2
2
  "name": "<%= application_name %>",
3
3
  "private": true,
4
4
  "dependencies": {
5
- "opal-webpack-loader": "^0.9.0",
6
- "react": "16.8.6",
7
- "react-dom": "16.8.6",
8
- "react-router": "^5.0.0",
9
- "react-router-dom": "^5.0.0",
10
- "redux": "^4.0.1",
11
- "ws": "^7.0.1"
5
+ "opal-webpack-loader": "^0.9.2",
6
+ "react": "^16.9.0",
7
+ "react-dom": "^16.9.0",
8
+ "react-router": "^5.0.1",
9
+ "react-router-dom": "^5.0.1",
10
+ "redux": "^4.0.4",
11
+ "ws": "^7.1.2"
12
12
  },
13
13
  "scripts": {
14
14
  "debug": "webpack-dev-server --config=webpack/debug.js",
@@ -16,22 +16,22 @@
16
16
  "production_build": "parallel-webpack --config=webpack/production.js"
17
17
  },
18
18
  "devDependencies": {
19
- "cache-loader": "^4.0.0",
20
- "chokidar": "^3.0.1",
19
+ "cache-loader": "^4.1.0",
20
+ "chokidar": "^3.0.2",
21
21
  "compression-webpack-plugin": "^3.0.0",
22
- "css-loader": "^3.0.0",
22
+ "css-loader": "^3.2.0",
23
23
  "extra-watch-webpack-plugin": "^1.0.3",
24
- "file-loader": "^4.0.0",
24
+ "file-loader": "^4.2.0",
25
25
  "jsdom": "15.1.1",
26
26
  "node-sass": "^4.12.0",
27
27
  "parallel-webpack": "^2.4.0",
28
- "puppeteer": "1.17.0",
29
- "sass-loader": "^7.1.0",
30
- "style-loader": "^0.23.1",
31
- "terser-webpack-plugin": "^1.3.0",
32
- "webpack": "^4.33.0",
28
+ "puppeteer": "1.19.0",
29
+ "sass-loader": "^7.2.0",
30
+ "style-loader": "^1.0.0",
31
+ "terser-webpack-plugin": "^1.4.1",
32
+ "webpack": "^4.39.1",
33
33
  "webpack-assets-manifest": "^3.1.1",
34
- "webpack-cli": "^3.3.4",
35
- "webpack-dev-server": "^3.7.1"
34
+ "webpack-cli": "^3.3.6",
35
+ "webpack-dev-server": "^3.8.0"
36
36
  }
37
37
  }
@@ -1,5 +1,5 @@
1
1
  module Isomorfeus
2
2
  module Installer
3
- VERSION = '1.0.0.delta9'
3
+ VERSION = '1.0.0.delta11'
4
4
  end
5
5
  end
@@ -6,14 +6,6 @@ module Isomorfeus
6
6
  databases[name] = props
7
7
  end
8
8
 
9
- def self.add_i18n_module(name, props)
10
- i18ns[name] = props
11
- end
12
-
13
- def self.add_operation_module(name, props)
14
- operations[name] = props
15
- end
16
-
17
9
  def self.add_policy_module(name, props)
18
10
  policies[name] = props
19
11
  end
@@ -28,14 +20,11 @@ module Isomorfeus
28
20
  attr_reader :app_require
29
21
  attr_accessor :database
30
22
  attr_accessor :framework
31
- attr_accessor :i18n
32
- attr_accessor :operation
33
23
  attr_accessor :policy
34
24
  attr_reader :project_dir
35
25
  attr_reader :project_name
36
26
  attr_accessor :rack_server
37
27
  attr_accessor :rack_server_name
38
- attr_accessor :use_data
39
28
 
40
29
  # installer options
41
30
  attr_reader :options
@@ -57,14 +46,6 @@ module Isomorfeus
57
46
  databases.keys.sort
58
47
  end
59
48
 
60
- def self.sorted_i18ns
61
- i18ns.keys.sort
62
- end
63
-
64
- def self.sorted_operations
65
- operations.keys.sort
66
- end
67
-
68
49
  def self.sorted_policies
69
50
  policies.keys.sort
70
51
  end
@@ -77,14 +58,6 @@ module Isomorfeus
77
58
  @databases ||= {}
78
59
  end
79
60
 
80
- def self.i18ns
81
- @i18ns ||= {}
82
- end
83
-
84
- def self.operations
85
- @operations ||= {}
86
- end
87
-
88
61
  def self.policies
89
62
  @policies ||= {}
90
63
  end
@@ -145,6 +118,7 @@ module Isomorfeus
145
118
  create_directory(File.join(isomorfeus_path, 'components'))
146
119
  create_directory(File.join(isomorfeus_path, 'data'))
147
120
  create_directory(File.join(isomorfeus_path, 'handlers'))
121
+ create_directory(File.join(isomorfeus_path, 'locales'))
148
122
  create_directory(File.join(isomorfeus_path, 'operations'))
149
123
  create_directory(File.join(isomorfeus_path, 'policies'))
150
124
  create_directory(File.join(isomorfeus_path, 'styles'))
@@ -180,11 +154,7 @@ module Isomorfeus
180
154
  end
181
155
 
182
156
  def self.install_isomorfeus_entries
183
- STDERR.puts "ud: #{use_data?}, #{options.has_key?('data')}, #{options}, #{use_data}"
184
157
  data_hash = { app_class: app_class,
185
- use_data: use_data?,
186
- use_i18n: use_i18n?,
187
- use_operation: use_operation?,
188
158
  use_policy: use_policy? }
189
159
  create_file_from_template('isomorfeus_loader.rb.erb', File.join(isomorfeus_path, 'isomorfeus_loader.rb'), data_hash)
190
160
  create_file_from_template('isomorfeus_web_worker_loader.rb.erb', File.join(isomorfeus_path, 'isomorfeus_web_worker_loader.rb'), data_hash)
@@ -207,33 +177,20 @@ module Isomorfeus
207
177
  Isomorfeus::Installer.rack_servers[options[:rack_server]]&.fetch(:gems)&.each do |gem|
208
178
  rack_server_gems << generate_gem_line(gem)
209
179
  end
210
- transport_gems = ''
211
- [ { name: 'isomorfeus-transport', version: "~> #{Isomorfeus::Installer::VERSION}", require: true } ]&.each do |gem|
212
- transport_gems << generate_gem_line(gem)
213
- end
214
180
  database_gems = ''
215
181
  Isomorfeus::Installer.databases[options[:database]]&.fetch(:gems)&.each do |gem|
216
182
  database_gems << generate_gem_line(gem)
217
183
  end
218
- i18n_gems = ''
219
- Isomorfeus::Installer.i18ns['i18n']&.fetch(:gems)&.each do |gem|
220
- i18n_gems << generate_gem_line(gem)
221
- end
222
- operation_gems = ''
223
- Isomorfeus::Installer.operations['operation']&.fetch(:gems)&.each do |gem|
224
- operation_gems << generate_gem_line(gem)
225
- end
226
184
  policy_gems = ''
227
185
  Isomorfeus::Installer.policies['policy']&.fetch(:gems)&.each do |gem|
228
186
  policy_gems << generate_gem_line(gem)
229
187
  end
230
188
 
231
189
  data_hash = { database_gems: database_gems.chop,
232
- i18n_gems: i18n_gems.chop,
233
- operation_gems: operation_gems.chop,
234
190
  policy_gems: policy_gems.chop,
235
191
  rack_server_gems: rack_server_gems.chop,
236
- transport_gems: transport_gems.chop }
192
+ isomorfeus_version: Isomorfeus::Installer::VERSION
193
+ }
237
194
  create_file_from_template('Gemfile.erb', 'Gemfile', data_hash)
238
195
  end
239
196
 
@@ -278,18 +235,6 @@ module Isomorfeus
278
235
  options.has_key?('asset_bundler')
279
236
  end
280
237
 
281
- def self.use_data?
282
- !!(options['data'] || use_data)
283
- end
284
-
285
- def self.use_i18n?
286
- options['i18n']
287
- end
288
-
289
- def self.use_operation?
290
- options['operation']
291
- end
292
-
293
238
  def self.use_policy?
294
239
  options['policy']
295
240
  end
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.delta9
4
+ version: 1.0.0.delta11
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-07-26 00:00:00.000000000 Z
11
+ date: 2019-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport