vite_ruby 1.2.7 → 1.2.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +44 -1
- data/lib/vite_ruby.rb +2 -1
- data/lib/vite_ruby/builder.rb +1 -1
- data/lib/vite_ruby/cli/build.rb +3 -15
- data/lib/vite_ruby/cli/dev.rb +2 -2
- data/lib/vite_ruby/cli/file_utils.rb +123 -0
- data/lib/vite_ruby/cli/install.rb +6 -7
- data/lib/vite_ruby/cli/vite.rb +20 -0
- data/lib/vite_ruby/dev_server_proxy.rb +1 -1
- data/lib/vite_ruby/io.rb +32 -0
- data/lib/vite_ruby/runner.rb +5 -26
- data/lib/vite_ruby/version.rb +1 -1
- metadata +10 -49
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c773a06d1ae5abbf91dd4e08eaed27f23ea436277c9ca6515e727b1f36492ed7
|
4
|
+
data.tar.gz: a11954fbfd1392bd2a3c8b070c9d53218294f51edcabc0f69aa743a6aee6cf40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 604ef82de1451193428702a7d6aa12a1eabbb0f9dcaecc0090960dd96236510a78f23db60a23d5a5c31a077be9342eeda2781394a03bf05e07eea47f89ea788b
|
7
|
+
data.tar.gz: de661b6146515a32168c3fc0ea8f9d41b91e7ac1ee3f6cf4d4e5743c4d0426381b16d23fd2d986ccf769d86c47003500cd2c5777b56874ebc7b48c25b7a1cb7f
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,52 @@
|
|
1
|
+
## [1.2.12](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@1.2.11...vite_ruby@1.2.12) (2021-06-08)
|
2
|
+
|
3
|
+
|
4
|
+
### Features
|
5
|
+
|
6
|
+
* Support Ruby 2.4 ([#87](https://github.com/ElMassimo/vite_ruby/issues/87)) ([8fc4d49](https://github.com/ElMassimo/vite_ruby/commit/8fc4d49c82817623df81d6f9f94654ea726eb050))
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
## [1.2.11](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@1.2.10...vite_ruby@1.2.11) (2021-05-10)
|
11
|
+
|
12
|
+
### Refactor
|
13
|
+
|
14
|
+
* Upgrade to dry-cli 0.7 while avoiding dependency on `dry-files` ([f5b87e](https://github.com/ElMassimo/vite_ruby/commit/f5b87e69790e48397d15e609b44118e399c9493d))
|
15
|
+
|
16
|
+
|
17
|
+
## [1.2.10](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@1.2.9...vite_ruby@1.2.10) (2021-05-09)
|
18
|
+
|
19
|
+
|
20
|
+
### Bug Fixes
|
21
|
+
|
22
|
+
* Lock dry-cli to 0.6 since 0.7 has breaking changes (close [#76](https://github.com/ElMassimo/vite_ruby/issues/76)) ([9883458](https://github.com/ElMassimo/vite_ruby/commit/9883458443cb0047cd4cceaf02de2a86066d624e))
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
## [1.2.9](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@1.2.8...vite_ruby@1.2.9) (2021-05-04)
|
27
|
+
|
28
|
+
|
29
|
+
### Bug Fixes
|
30
|
+
|
31
|
+
* Stream output during installation and don't skip installation of npm packages when no lockfile is detected ([#73](https://github.com/ElMassimo/vite_ruby/issues/73)) ([028a5ba](https://github.com/ElMassimo/vite_ruby/commit/028a5bae359085a36aa942d2ad63c23616a00ffb))
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
## [1.2.8](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@1.2.7...vite_ruby@1.2.8) (2021-04-29)
|
36
|
+
|
37
|
+
|
38
|
+
### Bug Fixes
|
39
|
+
|
40
|
+
* Don't modify url for minified css when proxying a request ([#71](https://github.com/ElMassimo/vite_ruby/issues/71)) ([d30a577](https://github.com/ElMassimo/vite_ruby/commit/d30a577a8436c4987d7c2e08e7eae68e589eb2a7))
|
41
|
+
|
42
|
+
|
43
|
+
|
1
44
|
## [1.2.7](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@1.2.6...vite_ruby@1.2.7) (2021-04-28)
|
2
45
|
|
3
46
|
|
4
47
|
### Bug Fixes
|
5
48
|
|
6
|
-
* Support Rails 5.1 by avoiding monkeypatched
|
49
|
+
* Support Rails 5.1 by avoiding [incorrectly monkeypatched](https://github.com//github.com/rails/rails/blob/5-1-stable/activesupport/lib/active_support/core_ext/array/prepend_and_append.rb/issues/L2-L3) `Array#append` ([1b59551](https://github.com/ElMassimo/vite_ruby/commit/1b5955170b33a528a2b13d7e7e308e8493d97a91))
|
7
50
|
|
8
51
|
|
9
52
|
|
data/lib/vite_ruby.rb
CHANGED
@@ -10,6 +10,7 @@ loader.ignore("#{ __dir__ }/install")
|
|
10
10
|
loader.ignore("#{ __dir__ }/tasks")
|
11
11
|
loader.ignore("#{ __dir__ }/exe")
|
12
12
|
loader.inflector.inflect('cli' => 'CLI')
|
13
|
+
loader.inflector.inflect('io' => 'IO')
|
13
14
|
loader.setup
|
14
15
|
|
15
16
|
class ViteRuby
|
@@ -72,7 +73,7 @@ class ViteRuby
|
|
72
73
|
# variant of Vite Ruby.
|
73
74
|
def framework_libraries
|
74
75
|
SUPPORTED_FRAMEWORKS.map { |framework|
|
75
|
-
if library = Gem.loaded_specs["vite_#{ framework }"]
|
76
|
+
if library = (Gem.loaded_specs["vite_#{ framework }"] || Gem.loaded_specs["vite_#{ framework }_legacy"])
|
76
77
|
[framework, library]
|
77
78
|
end
|
78
79
|
}.compact
|
data/lib/vite_ruby/builder.rb
CHANGED
@@ -69,7 +69,7 @@ private
|
|
69
69
|
def build_with_vite(*args)
|
70
70
|
logger.info 'Building with Vite ⚡️'
|
71
71
|
|
72
|
-
stdout, stderr, status = ViteRuby.run(['build', *args]
|
72
|
+
stdout, stderr, status = ViteRuby.run(['build', *args])
|
73
73
|
log_build_result(stdout, stderr.to_s, status)
|
74
74
|
|
75
75
|
status.success?
|
data/lib/vite_ruby/cli/build.rb
CHANGED
@@ -1,25 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
class ViteRuby::CLI::Build <
|
4
|
-
CURRENT_ENV = ENV['RACK_ENV'] || ENV['RAILS_ENV']
|
3
|
+
class ViteRuby::CLI::Build < ViteRuby::CLI::Vite
|
5
4
|
DEFAULT_ENV = CURRENT_ENV || 'production'
|
6
5
|
|
7
|
-
def self.shared_options
|
8
|
-
option(:mode, default: self::DEFAULT_ENV, values: %w[development production test], aliases: ['m'], desc: 'The build mode for Vite')
|
9
|
-
option(:clobber, desc: 'Clear cache and previous builds', type: :boolean, aliases: %w[clean clear])
|
10
|
-
option(:debug, desc: 'Run Vite in verbose mode, printing all debugging output', aliases: ['verbose'], type: :boolean)
|
11
|
-
option(:inspect, desc: 'Run Vite in a debugging session with node --inspect-brk', aliases: ['inspect-brk'], type: :boolean)
|
12
|
-
option(:trace_deprecation, desc: 'Run Vite in debugging mode with node --trace-deprecation', aliases: ['trace-deprecation'], type: :boolean)
|
13
|
-
end
|
14
|
-
|
15
6
|
desc 'Bundle all entrypoints using Vite.'
|
16
7
|
shared_options
|
17
8
|
option(:force, desc: 'Force the build even if assets have not changed', type: :boolean)
|
18
9
|
|
19
|
-
def call(
|
20
|
-
ViteRuby.
|
21
|
-
ViteRuby.commands.clobber if clobber
|
22
|
-
boolean_opts.map { |name, value| args << "--#{ name }" if value }
|
23
|
-
block_given? ? yield(args) : ViteRuby.commands.build_from_task(*args)
|
10
|
+
def call(**options)
|
11
|
+
super { |args| ViteRuby.commands.build_from_task(*args) }
|
24
12
|
end
|
25
13
|
end
|
data/lib/vite_ruby/cli/dev.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
class ViteRuby::CLI::Dev < ViteRuby::CLI::
|
3
|
+
class ViteRuby::CLI::Dev < ViteRuby::CLI::Vite
|
4
4
|
DEFAULT_ENV = CURRENT_ENV || 'development'
|
5
5
|
|
6
6
|
desc 'Start the Vite development server.'
|
@@ -8,6 +8,6 @@ class ViteRuby::CLI::Dev < ViteRuby::CLI::Build
|
|
8
8
|
option(:force, desc: 'Force Vite to re-bundle dependencies', type: :boolean)
|
9
9
|
|
10
10
|
def call(**options)
|
11
|
-
super { |args| ViteRuby.run(args) }
|
11
|
+
super { |args| ViteRuby.run(args, exec: true) }
|
12
12
|
end
|
13
13
|
end
|
@@ -0,0 +1,123 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'pathname'
|
4
|
+
require 'fileutils'
|
5
|
+
|
6
|
+
# NOTE: Extracted from dry-cli version 0.6.0, which later removed this file as
|
7
|
+
# it was refactored and extracted into the more complete (and complex) dry-files.
|
8
|
+
module ViteRuby::CLI::FileUtils
|
9
|
+
class << self
|
10
|
+
# Creates a new file or rewrites the contents of an existing file.
|
11
|
+
#
|
12
|
+
# @since 1.2.11
|
13
|
+
# @api private
|
14
|
+
def write(path, *content)
|
15
|
+
mkdir_p(path)
|
16
|
+
File.open(path, File::CREAT | File::WRONLY | File::TRUNC) do |file|
|
17
|
+
file.write(Array(content).flatten.join)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
# Copies source into destination.
|
22
|
+
#
|
23
|
+
# @since 1.2.11
|
24
|
+
# @api private
|
25
|
+
def cp(source, destination)
|
26
|
+
mkdir_p(destination)
|
27
|
+
FileUtils.cp(source, destination)
|
28
|
+
end
|
29
|
+
|
30
|
+
# Adds a new line at the bottom of the file.
|
31
|
+
#
|
32
|
+
# @since 1.2.11
|
33
|
+
# @api private
|
34
|
+
def append(path, contents)
|
35
|
+
mkdir_p(path)
|
36
|
+
|
37
|
+
content = File.readlines(path)
|
38
|
+
content << "\n" unless content.last.end_with?("\n")
|
39
|
+
content << "#{ contents }\n"
|
40
|
+
|
41
|
+
write(path, content)
|
42
|
+
end
|
43
|
+
|
44
|
+
# Replace first line in `path` that contains `target` with `replacement`.
|
45
|
+
#
|
46
|
+
# @since 1.2.11
|
47
|
+
# @api private
|
48
|
+
def replace_first_line(path, target, replacement)
|
49
|
+
content = File.readlines(path)
|
50
|
+
content[index(content, path, target)] = "#{ replacement }\n"
|
51
|
+
|
52
|
+
write(path, content)
|
53
|
+
end
|
54
|
+
|
55
|
+
# Inject `contents` in `path` before `target`.
|
56
|
+
#
|
57
|
+
# @since 1.2.11
|
58
|
+
# @api private
|
59
|
+
def inject_line_before(path, target, contents)
|
60
|
+
_inject_line_before(path, target, contents, method(:index))
|
61
|
+
end
|
62
|
+
|
63
|
+
# Inject `contents` in `path` after `target`.
|
64
|
+
#
|
65
|
+
# @since 1.2.11
|
66
|
+
# @api private
|
67
|
+
def inject_line_after(path, target, contents)
|
68
|
+
_inject_line_after(path, target, contents, method(:index))
|
69
|
+
end
|
70
|
+
|
71
|
+
# Inject `contents` in `path` after last `target`.
|
72
|
+
#
|
73
|
+
# @since 1.2.11
|
74
|
+
# @api private
|
75
|
+
def inject_line_after_last(path, target, contents)
|
76
|
+
_inject_line_after(path, target, contents, method(:rindex))
|
77
|
+
end
|
78
|
+
|
79
|
+
private
|
80
|
+
|
81
|
+
# Creates all parent directories for the given file path.
|
82
|
+
#
|
83
|
+
# @since 1.2.11
|
84
|
+
# @api private
|
85
|
+
def mkdir_p(path)
|
86
|
+
Pathname.new(path).dirname.mkpath
|
87
|
+
end
|
88
|
+
|
89
|
+
# @since 1.2.11
|
90
|
+
# @api private
|
91
|
+
def index(content, path, target)
|
92
|
+
content.index { |line| line.include?(target) } ||
|
93
|
+
raise(ArgumentError, "Cannot find `#{ target }' inside `#{ path }'.")
|
94
|
+
end
|
95
|
+
|
96
|
+
# @since 1.2.11
|
97
|
+
# @api private
|
98
|
+
def rindex(content, path, target)
|
99
|
+
content.rindex { |line| line.include?(target) } ||
|
100
|
+
raise(ArgumentError, "Cannot find `#{ target }' inside `#{ path }'.")
|
101
|
+
end
|
102
|
+
|
103
|
+
# @since 1.2.11
|
104
|
+
# @api private
|
105
|
+
def _inject_line_before(path, target, contents, finder)
|
106
|
+
content = File.readlines(path)
|
107
|
+
i = finder.call(content, path, target)
|
108
|
+
|
109
|
+
content.insert(i, "#{ contents }\n")
|
110
|
+
write(path, content)
|
111
|
+
end
|
112
|
+
|
113
|
+
# @since 1.2.11
|
114
|
+
# @api private
|
115
|
+
def _inject_line_after(path, target, contents, finder)
|
116
|
+
content = File.readlines(path)
|
117
|
+
i = finder.call(content, path, target)
|
118
|
+
|
119
|
+
content.insert(i + 1, "#{ contents }\n")
|
120
|
+
write(path, content)
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'dry/cli/utils/files'
|
4
3
|
require 'stringio'
|
5
|
-
require 'open3'
|
6
4
|
|
7
5
|
class ViteRuby::CLI::Install < Dry::CLI::Command
|
8
6
|
desc 'Performs the initial configuration setup to get started with Vite Ruby.'
|
@@ -50,9 +48,9 @@ private
|
|
50
48
|
|
51
49
|
def_delegators 'ViteRuby', :config
|
52
50
|
|
53
|
-
%i[append cp inject_line_after inject_line_after_last inject_line_before write].each do |util|
|
51
|
+
%i[append cp inject_line_after inject_line_after_last inject_line_before replace_first_line write].each do |util|
|
54
52
|
define_method(util) { |*args|
|
55
|
-
|
53
|
+
ViteRuby::CLI::FileUtils.send(util, *args) rescue nil
|
56
54
|
}
|
57
55
|
end
|
58
56
|
|
@@ -73,11 +71,12 @@ private
|
|
73
71
|
def install_js_dependencies
|
74
72
|
package_json = root.join('package.json')
|
75
73
|
write(package_json, '{}') unless package_json.exist?
|
74
|
+
|
76
75
|
Dir.chdir(root) do
|
77
76
|
deps = "vite@#{ ViteRuby::DEFAULT_VITE_VERSION } vite-plugin-ruby@#{ ViteRuby::DEFAULT_PLUGIN_VERSION }"
|
78
|
-
|
79
|
-
|
80
|
-
say(
|
77
|
+
_, stderr, status = ViteRuby::IO.capture("npx --package @antfu/ni -- ni -D #{ deps }", stdin_data: "\n")
|
78
|
+
_, stderr, = ViteRuby::IO.capture("yarn add -D #{ deps }") unless status.success?
|
79
|
+
say("Could not install JS dependencies.\n", stderr) unless stderr.to_s.empty?
|
81
80
|
end
|
82
81
|
end
|
83
82
|
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class ViteRuby::CLI::Vite < Dry::CLI::Command
|
4
|
+
CURRENT_ENV = ENV['RACK_ENV'] || ENV['RAILS_ENV']
|
5
|
+
|
6
|
+
def self.shared_options
|
7
|
+
option(:mode, default: self::DEFAULT_ENV, values: %w[development production test], aliases: ['m'], desc: 'The build mode for Vite')
|
8
|
+
option(:clobber, desc: 'Clear cache and previous builds', type: :boolean, aliases: %w[clean clear])
|
9
|
+
option(:debug, desc: 'Run Vite in verbose mode, printing all debugging output', aliases: ['verbose'], type: :boolean)
|
10
|
+
option(:inspect, desc: 'Run Vite in a debugging session with node --inspect-brk', aliases: ['inspect-brk'], type: :boolean)
|
11
|
+
option(:trace_deprecation, desc: 'Run Vite in debugging mode with node --trace-deprecation', aliases: ['trace-deprecation'], type: :boolean)
|
12
|
+
end
|
13
|
+
|
14
|
+
def call(mode:, args: [], clobber: false, **boolean_opts)
|
15
|
+
ViteRuby.env['VITE_RUBY_MODE'] = mode
|
16
|
+
ViteRuby.commands.clobber if clobber
|
17
|
+
boolean_opts.map { |name, value| args << "--#{ name }" if value }
|
18
|
+
yield(args)
|
19
|
+
end
|
20
|
+
end
|
@@ -33,7 +33,7 @@ private
|
|
33
33
|
uri = env.fetch('REQUEST_URI') { [env['PATH_INFO'], env['QUERY_STRING']].reject { |str| str.to_s.strip.empty? }.join('?') }
|
34
34
|
.sub(HOST_WITH_PORT_REGEX, '/') # Hanami adds the host and port.
|
35
35
|
.sub('.ts.js', '.ts') # Hanami's javascript helper always adds the extension.
|
36
|
-
.sub(/(
|
36
|
+
.sub(/(\.(?!min)\w+)\.css$/, '\1') # Rails' stylesheet_link_tag always adds the extension.
|
37
37
|
env['PATH_INFO'], env['QUERY_STRING'] = (env['REQUEST_URI'] = uri).split('?')
|
38
38
|
end
|
39
39
|
|
data/lib/vite_ruby/io.rb
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'open3'
|
4
|
+
|
5
|
+
# Public: Builds on top of Ruby I/O open3 providing a friendlier experience.
|
6
|
+
module ViteRuby::IO
|
7
|
+
class << self
|
8
|
+
# Internal: A modified version of capture3 that can continuosly print stdout.
|
9
|
+
# NOTE: Streaming output provides a better UX when running bin/vite build.
|
10
|
+
def capture(*cmd, with_output: $stdout.method(:puts), stdin_data: '', **opts)
|
11
|
+
return Open3.capture3(*cmd, **opts) unless with_output
|
12
|
+
|
13
|
+
Open3.popen3(*cmd, **opts) { |stdin, stdout, stderr, wait_threads|
|
14
|
+
stdin << stdin_data
|
15
|
+
stdin.close
|
16
|
+
out = Thread.new { read_lines(stdout, &with_output) }
|
17
|
+
err = Thread.new { stderr.read }
|
18
|
+
[out.value, err.value, wait_threads.value]
|
19
|
+
}
|
20
|
+
end
|
21
|
+
|
22
|
+
# Internal: Reads and yield every line in the stream. Returns the full content.
|
23
|
+
def read_lines(io)
|
24
|
+
buffer = +''
|
25
|
+
while line = io.gets
|
26
|
+
buffer << line
|
27
|
+
yield line
|
28
|
+
end
|
29
|
+
buffer
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
data/lib/vite_ruby/runner.rb
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'open3'
|
4
|
-
|
5
3
|
# Public: Executes Vite commands, providing conveniences for debugging.
|
6
4
|
class ViteRuby::Runner
|
7
5
|
def initialize(vite_ruby)
|
@@ -9,10 +7,13 @@ class ViteRuby::Runner
|
|
9
7
|
end
|
10
8
|
|
11
9
|
# Public: Executes Vite with the specified arguments.
|
12
|
-
def run(argv,
|
10
|
+
def run(argv, exec: false)
|
13
11
|
Dir.chdir(config.root) {
|
14
12
|
cmd = command_for(argv)
|
15
|
-
|
13
|
+
return Kernel.exec(*cmd) if exec
|
14
|
+
|
15
|
+
log_or_noop = ->(line) { logger.info('vite') { line } } unless config.hide_build_console_output
|
16
|
+
ViteRuby::IO.capture(*cmd, chdir: config.root, with_output: log_or_noop)
|
16
17
|
}
|
17
18
|
rescue Errno::ENOENT => error
|
18
19
|
raise ViteRuby::MissingExecutableError, error
|
@@ -41,26 +42,4 @@ private
|
|
41
42
|
bin_path = config.vite_bin_path
|
42
43
|
File.exist?(bin_path) ? bin_path : "#{ `npm bin`.chomp }/vite"
|
43
44
|
end
|
44
|
-
|
45
|
-
# Internal: A modified version of capture3 that continuosly prints stdout.
|
46
|
-
# NOTE: This improves the experience of running bin/vite build.
|
47
|
-
def capture3_with_output(*cmd, **opts)
|
48
|
-
return Open3.capture3(*cmd, opts) if config.hide_build_console_output
|
49
|
-
|
50
|
-
Open3.popen3(*cmd, opts) { |_stdin, stdout, stderr, wait_threads|
|
51
|
-
out = Thread.new { read_lines(stdout) { |l| logger.info('vite') { l } } }
|
52
|
-
err = Thread.new { stderr.read }
|
53
|
-
[out.value, err.value, wait_threads.value]
|
54
|
-
}
|
55
|
-
end
|
56
|
-
|
57
|
-
# Internal: Reads and yield every line in the stream. Returns the full content.
|
58
|
-
def read_lines(io)
|
59
|
-
buffer = +''
|
60
|
-
while line = io.gets
|
61
|
-
buffer << line
|
62
|
-
yield line
|
63
|
-
end
|
64
|
-
buffer
|
65
|
-
end
|
66
45
|
end
|
data/lib/vite_ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vite_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Máximo Mussini
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-cli
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.7.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.7.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rack-proxy
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,48 +142,6 @@ dependencies:
|
|
142
142
|
- - "~>"
|
143
143
|
- !ruby/object:Gem::Version
|
144
144
|
version: '13.0'
|
145
|
-
- !ruby/object:Gem::Dependency
|
146
|
-
name: rubocop
|
147
|
-
requirement: !ruby/object:Gem::Requirement
|
148
|
-
requirements:
|
149
|
-
- - "~>"
|
150
|
-
- !ruby/object:Gem::Version
|
151
|
-
version: '1.9'
|
152
|
-
type: :development
|
153
|
-
prerelease: false
|
154
|
-
version_requirements: !ruby/object:Gem::Requirement
|
155
|
-
requirements:
|
156
|
-
- - "~>"
|
157
|
-
- !ruby/object:Gem::Version
|
158
|
-
version: '1.9'
|
159
|
-
- !ruby/object:Gem::Dependency
|
160
|
-
name: rubocop-minitest
|
161
|
-
requirement: !ruby/object:Gem::Requirement
|
162
|
-
requirements:
|
163
|
-
- - "~>"
|
164
|
-
- !ruby/object:Gem::Version
|
165
|
-
version: '0.10'
|
166
|
-
type: :development
|
167
|
-
prerelease: false
|
168
|
-
version_requirements: !ruby/object:Gem::Requirement
|
169
|
-
requirements:
|
170
|
-
- - "~>"
|
171
|
-
- !ruby/object:Gem::Version
|
172
|
-
version: '0.10'
|
173
|
-
- !ruby/object:Gem::Dependency
|
174
|
-
name: rubocop-performance
|
175
|
-
requirement: !ruby/object:Gem::Requirement
|
176
|
-
requirements:
|
177
|
-
- - "~>"
|
178
|
-
- !ruby/object:Gem::Version
|
179
|
-
version: '1.9'
|
180
|
-
type: :development
|
181
|
-
prerelease: false
|
182
|
-
version_requirements: !ruby/object:Gem::Requirement
|
183
|
-
requirements:
|
184
|
-
- - "~>"
|
185
|
-
- !ruby/object:Gem::Version
|
186
|
-
version: '1.9'
|
187
145
|
- !ruby/object:Gem::Dependency
|
188
146
|
name: simplecov
|
189
147
|
requirement: !ruby/object:Gem::Requirement
|
@@ -219,12 +177,15 @@ files:
|
|
219
177
|
- lib/vite_ruby/cli/build.rb
|
220
178
|
- lib/vite_ruby/cli/clobber.rb
|
221
179
|
- lib/vite_ruby/cli/dev.rb
|
180
|
+
- lib/vite_ruby/cli/file_utils.rb
|
222
181
|
- lib/vite_ruby/cli/install.rb
|
223
182
|
- lib/vite_ruby/cli/version.rb
|
183
|
+
- lib/vite_ruby/cli/vite.rb
|
224
184
|
- lib/vite_ruby/commands.rb
|
225
185
|
- lib/vite_ruby/config.rb
|
226
186
|
- lib/vite_ruby/dev_server_proxy.rb
|
227
187
|
- lib/vite_ruby/error.rb
|
188
|
+
- lib/vite_ruby/io.rb
|
228
189
|
- lib/vite_ruby/manifest.rb
|
229
190
|
- lib/vite_ruby/missing_entrypoint_error.rb
|
230
191
|
- lib/vite_ruby/missing_executable_error.rb
|
@@ -237,8 +198,8 @@ homepage: https://github.com/ElMassimo/vite_ruby
|
|
237
198
|
licenses:
|
238
199
|
- MIT
|
239
200
|
metadata:
|
240
|
-
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_ruby@1.2.
|
241
|
-
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_ruby@1.2.
|
201
|
+
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_ruby@1.2.12/vite_ruby
|
202
|
+
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_ruby@1.2.12/vite_ruby/CHANGELOG.md
|
242
203
|
post_install_message:
|
243
204
|
rdoc_options: []
|
244
205
|
require_paths:
|
@@ -247,7 +208,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
247
208
|
requirements:
|
248
209
|
- - ">="
|
249
210
|
- !ruby/object:Gem::Version
|
250
|
-
version: '2.
|
211
|
+
version: '2.4'
|
251
212
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
252
213
|
requirements:
|
253
214
|
- - ">="
|