vite_ruby 3.2.6 → 3.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +23 -0
- data/lib/vite_ruby/commands.rb +1 -1
- data/lib/vite_ruby/runner.rb +8 -2
- data/lib/vite_ruby/version.rb +3 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a60bbaf0cc05f9069adf63ab3b37c5a5be8128b33a9c78af1d879e3da8a6efad
|
4
|
+
data.tar.gz: 8b9c020b238f9dbef92d0502e5bd52efbf94b296c5dbf8344697def581098670
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86ebf0abc853c732c84cd78c3c667ded2271ed2833751609f71b78c3a2c35a8d443aff7368174005cd10306b8fc31358c56a039daf875657efb7d5b66b13b8b4
|
7
|
+
data.tar.gz: 2ba6da60334959ee8ce5a9a98410a436c6140a06f9d23f4adcf6805ca92e98fd7d090391dc82fad8c4608f9037072229cafcc4b556dddd489a3a8cffbc1abfcf
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,26 @@
|
|
1
|
+
## [3.2.8](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.2.7...vite_ruby@3.2.8) (2022-10-28)
|
2
|
+
|
3
|
+
|
4
|
+
### Features
|
5
|
+
|
6
|
+
* default to vite@3.2.0 ([2ef83a5](https://github.com/ElMassimo/vite_ruby/commit/2ef83a52148f46534c4106015f3f54ec9ee807cb))
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
## [3.2.7](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.2.6...vite_ruby@3.2.7) (2022-10-19)
|
11
|
+
|
12
|
+
|
13
|
+
### Bug Fixes
|
14
|
+
|
15
|
+
* yarn berry pnp mode support ([#278](https://github.com/ElMassimo/vite_ruby/issues/278)) ([1890447](https://github.com/ElMassimo/vite_ruby/commit/189044746e536847cb33fb471cc7c42251a61072))
|
16
|
+
|
17
|
+
|
18
|
+
### Features
|
19
|
+
|
20
|
+
* create vite-plugin-rails, an opinionated version of `vite-plugin-ruby` ([#282](https://github.com/ElMassimo/vite_ruby/issues/282)) ([16375fb](https://github.com/ElMassimo/vite_ruby/commit/16375fb1f6f2bf86dff935ca3aaf91c333a796ff))
|
21
|
+
|
22
|
+
|
23
|
+
|
1
24
|
## [3.2.6](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.2.5...vite_ruby@3.2.6) (2022-10-07)
|
2
25
|
|
3
26
|
|
data/lib/vite_ruby/commands.rb
CHANGED
@@ -143,7 +143,7 @@ private
|
|
143
143
|
|
144
144
|
def versions
|
145
145
|
all_files = Dir.glob("#{ config.build_output_dir }/**/*")
|
146
|
-
entries = all_files -
|
146
|
+
entries = all_files - config.manifest_paths - current_version_files
|
147
147
|
entries.reject { |file| File.directory?(file) }
|
148
148
|
.group_by { |file| File.mtime(file).utc.to_i }
|
149
149
|
.sort.reverse
|
data/lib/vite_ruby/runner.rb
CHANGED
@@ -31,7 +31,7 @@ private
|
|
31
31
|
args = args.clone
|
32
32
|
cmd.push('node', '--inspect-brk') if args.delete('--inspect')
|
33
33
|
cmd.push('node', '--trace-deprecation') if args.delete('--trace_deprecation')
|
34
|
-
cmd.push(vite_executable)
|
34
|
+
cmd.push(*vite_executable)
|
35
35
|
cmd.push(*args)
|
36
36
|
cmd.push('--mode', config.mode) unless args.include?('--mode') || args.include?('-m')
|
37
37
|
end
|
@@ -40,6 +40,12 @@ private
|
|
40
40
|
# Internal: Resolves to an executable for Vite.
|
41
41
|
def vite_executable
|
42
42
|
bin_path = config.vite_bin_path
|
43
|
-
File.exist?(bin_path)
|
43
|
+
return [bin_path] if File.exist?(bin_path)
|
44
|
+
|
45
|
+
if config.root.join('yarn.lock').exist?
|
46
|
+
%w[yarn vite]
|
47
|
+
else
|
48
|
+
["#{ `npm bin`.chomp }/vite"]
|
49
|
+
end
|
44
50
|
end
|
45
51
|
end
|
data/lib/vite_ruby/version.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
class ViteRuby
|
4
|
-
VERSION = '3.2.
|
4
|
+
VERSION = '3.2.8'
|
5
5
|
|
6
6
|
# Internal: Versions used by default when running `vite install`.
|
7
|
-
DEFAULT_VITE_VERSION = '^3.
|
8
|
-
DEFAULT_PLUGIN_VERSION = '^3.1.
|
7
|
+
DEFAULT_VITE_VERSION = '^3.2.0'
|
8
|
+
DEFAULT_PLUGIN_VERSION = '^3.1.2'
|
9
9
|
end
|
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: 3.2.
|
4
|
+
version: 3.2.8
|
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: 2022-10-
|
11
|
+
date: 2022-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-cli
|
@@ -202,8 +202,8 @@ homepage: https://github.com/ElMassimo/vite_ruby
|
|
202
202
|
licenses:
|
203
203
|
- MIT
|
204
204
|
metadata:
|
205
|
-
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_ruby@3.2.
|
206
|
-
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_ruby@3.2.
|
205
|
+
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_ruby@3.2.8/vite_ruby
|
206
|
+
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_ruby@3.2.8/vite_ruby/CHANGELOG.md
|
207
207
|
post_install_message: "Thanks for installing Vite Ruby!\n\nIf you upgraded the gem
|
208
208
|
manually, please run:\n\tbundle exec vite upgrade"
|
209
209
|
rdoc_options: []
|