isomorfeus 1.0.0.zeta9 → 1.0.0.zeta10
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/bin/isomorfeus +6 -7
- data/lib/isomorfeus/cli.rb +24 -26
- data/lib/isomorfeus/installer/templates/Gemfile.erb +10 -9
- data/lib/isomorfeus/installer/templates/config.ru.erb +1 -1
- data/lib/isomorfeus/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: aed41c6272dd71e91521ba4875a3300ef505063294f44e342b53570bb7873a2b
|
4
|
+
data.tar.gz: 937cec33851c55ad645d576e14201c11de756deb6d83d8d78e1a2c30b6930784
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d3b5e8f5df55215cedf9cfe3fef7346bd7f09964e1afcacdca9fb71cdaacbf13226f050f43236a05658e2ff7780c9a37a3920ec69133e5a4a0d2716fac04cf4
|
7
|
+
data.tar.gz: 3337df6733f663d6d8964631453c1d47bbadede4bdd8e9cf7c4f3e026bc3e80d6abad1cb15926ba8827bab22e2272fade052aafe887765a8da877d1aed7e6d40
|
data/bin/isomorfeus
CHANGED
@@ -1,23 +1,22 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
require 'thor'
|
3
|
-
require_relative '../lib/isomorfeus/installer'
|
4
|
-
require_relative '../lib/isomorfeus/installer/rack_servers'
|
5
|
-
|
6
2
|
if %w[c con console].include?(ARGV[0])
|
7
3
|
require 'pry'
|
8
4
|
require_relative '../lib/isomorfeus/console'
|
9
|
-
require_relative '../lib/isomorfeus/cli'
|
10
5
|
|
11
|
-
Isomorfeus::
|
6
|
+
Isomorfeus::Console.new.run
|
12
7
|
else
|
8
|
+
require 'thor'
|
13
9
|
require 'bundler'
|
14
10
|
require 'fileutils'
|
15
11
|
require 'erb'
|
16
12
|
require 'active_support/core_ext/string'
|
17
13
|
require 'opal-webpack-loader/installer_cli'
|
14
|
+
require_relative '../lib/isomorfeus/installer'
|
15
|
+
require_relative '../lib/isomorfeus/installer/rack_servers'
|
18
16
|
require_relative '../lib/isomorfeus/version'
|
19
17
|
require_relative '../lib/isomorfeus/installer/options_mangler'
|
20
18
|
require_relative '../lib/isomorfeus/installer/new_project'
|
19
|
+
require_relative '../lib/isomorfeus/cli'
|
21
20
|
|
22
21
|
Isomorfeus::Installer.module_directories.each do |mod_dir|
|
23
22
|
mod_path = File.realpath(File.join(Isomorfeus::Installer.base_path, mod_dir))
|
@@ -29,5 +28,5 @@ else
|
|
29
28
|
|
30
29
|
require_relative '../lib/isomorfeus/cli'
|
31
30
|
|
32
|
-
Isomorfeus::
|
31
|
+
Isomorfeus::CLI.start(ARGV)
|
33
32
|
end
|
data/lib/isomorfeus/cli.rb
CHANGED
@@ -1,33 +1,31 @@
|
|
1
1
|
module Isomorfeus
|
2
|
-
|
3
|
-
class CLI < Thor
|
2
|
+
class CLI < Thor
|
4
3
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
4
|
+
desc "new project_name", "Create a new isomorfeus project with project_name."
|
5
|
+
option :rack_server, default: 'iodine', aliases: '-r',
|
6
|
+
desc: "Select rack server, one of: #{Isomorfeus::Installer.sorted_rack_servers.join(', ')}. (optional)"
|
7
|
+
option :yarn_and_bundle, default: true, required: false, type: :boolean, aliases: '-y', desc: "Execute yarn install and bundle install. (optional)"
|
8
|
+
def new(project_name)
|
9
|
+
Isomorfeus::Installer.set_project_names(project_name)
|
10
|
+
Isomorfeus::Installer.options = options
|
11
|
+
Isomorfeus::Installer::NewProject.execute(yarn_and_bundle: options[:yarn_and_bundle])
|
12
|
+
end
|
14
13
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
14
|
+
desc "console", "Open console for current project."
|
15
|
+
def console
|
16
|
+
Isomorfeus::Console.new.run
|
17
|
+
end
|
19
18
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
end
|
19
|
+
desc "test_app", "Create a test_app for internal framework tests."
|
20
|
+
option :module, required: true, type: :string, aliases: '-m', desc: "Isomorfeus module name for which to generate the test app, eg: 'i18n'. (required)"
|
21
|
+
option :source_dir, required: false, type: :string, aliases: '-s', desc: "Recursively copy files from source dir into app. (optional)"
|
22
|
+
option :rack_server, default: 'iodine', aliases: '-r',
|
23
|
+
desc: "Select rack server, one of: #{Isomorfeus::Installer.sorted_rack_servers.join(', ')}. (optional)"
|
24
|
+
option :yarn_and_bundle, default: true, required: false, type: :boolean, aliases: '-y', desc: "Execute yarn install and bundle install. (optional)"
|
25
|
+
def test_app
|
26
|
+
Isomorfeus::Installer.set_project_names('test_app')
|
27
|
+
Isomorfeus::Installer.options = options
|
28
|
+
Isomorfeus::Installer::NewProject.execute(yarn_and_bundle: options[:yarn_and_bundle])
|
31
29
|
end
|
32
30
|
end
|
33
31
|
end
|
@@ -4,25 +4,26 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
|
4
4
|
<%= rack_server_gems %>
|
5
5
|
gem 'foreman', require: false
|
6
6
|
|
7
|
-
gem 'roda', '~> 3.
|
7
|
+
gem 'roda', '~> 3.27.0'
|
8
8
|
|
9
9
|
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.9'
|
12
12
|
|
13
13
|
gem 'isomorfeus-redux', '~> 4.0.16'
|
14
|
-
gem 'isomorfeus-react', '>= 16.12.
|
14
|
+
gem 'isomorfeus-react', '>= 16.12.4'
|
15
|
+
gem 'isomorfeus-policy', <%= isomorfeus_policy %>
|
16
|
+
gem 'isomorfeus-transport', <%= isomorfeus_transport %>
|
17
|
+
gem 'isomorfeus-i18n', <%= isomorfeus_i18n %>
|
18
|
+
gem 'isomorfeus-data', <%= isomorfeus_data %>
|
19
|
+
gem 'isomorfeus-operation', <%= isomorfeus_operation %>
|
15
20
|
|
16
|
-
source "http://gems.isomorfeus.com" do
|
17
|
-
gem 'isomorfeus-policy', <%= isomorfeus_policy %>
|
18
|
-
gem 'isomorfeus-transport', <%= isomorfeus_transport %>
|
19
|
-
gem 'isomorfeus-i18n', <%= isomorfeus_i18n %>
|
20
|
-
gem 'isomorfeus-data', <%= isomorfeus_data %>
|
21
|
-
gem 'isomorfeus-operation', <%= isomorfeus_operation %>
|
22
|
-
end
|
23
21
|
|
24
22
|
group :development do
|
25
23
|
gem 'pry', '~> 0.12.2'
|
24
|
+
gem 'pry-nav'
|
25
|
+
gem 'pry-rescue'
|
26
|
+
gem 'pry-stack_explorer'
|
26
27
|
end
|
27
28
|
|
28
29
|
group :test do
|
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.zeta10
|
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-12-
|
11
|
+
date: 2019-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|