vite_ruby 3.1.7 → 3.2.1
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/CHANGELOG.md +19 -1
- data/lib/vite_ruby/cli/ssr.rb +9 -1
- data/lib/vite_ruby/version.rb +3 -3
- data/lib/vite_ruby.rb +2 -2
- 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: e9f3a8307948954692558647b69f903eddddaacc69f87344685b85ae14c553a1
|
|
4
|
+
data.tar.gz: 529994b9d274d7b9557294dfe512960dabac52f051037c89ac1e967f59b2036d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 24283d1d9e382812516c345d4f240497f9f09f21270ea963868dbaf476458172b98752eb870a075fc22a76771a57b0456e79401f677fbfc84f75d18fc6c5b5d9
|
|
7
|
+
data.tar.gz: 478d9fc46b3fb1417e808da6ca3470341e9b2b18df4aa92965001ea7892a94a15d881c270951ba7ceb8f9ce07b80eb8d93c88049d2420b73a7b93990bff8185a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,28 @@
|
|
|
1
|
+
## [3.2.1](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.2.0...vite_ruby@3.2.1) (2022-08-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* require the version after defining namespace (close [#239](https://github.com/ElMassimo/vite_ruby/issues/239)) ([7b92062](https://github.com/ElMassimo/vite_ruby/commit/7b920627f0f551166b3ab321e50b6cee746168c2))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# [3.2.0](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.1.7...vite_ruby@3.2.0) (2022-07-13)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* use Vite 3 as the default ([#225](https://github.com/ElMassimo/vite_ruby/issues/225)) ([8fab191](https://github.com/ElMassimo/vite_ruby/commit/8fab1912dc8c7c600854b490c09a603644714266))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
1
19
|
## [3.1.7](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.1.6...vite_ruby@3.1.7) (2022-07-13)
|
|
2
20
|
|
|
3
21
|
|
|
4
22
|
### Bug Fixes
|
|
5
23
|
|
|
6
24
|
* npm deprecation warning on assets:precompile ([#226](https://github.com/ElMassimo/vite_ruby/issues/226)) ([e4f4b75](https://github.com/ElMassimo/vite_ruby/commit/e4f4b7540ef34296f1a8a4d8f1d2838549ee8460)), closes [#220](https://github.com/ElMassimo/vite_ruby/issues/220)
|
|
7
|
-
|
|
25
|
+
# [](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.1.6...vite_ruby@) (2022-07-01)
|
|
8
26
|
|
|
9
27
|
|
|
10
28
|
## [3.1.6](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.1.5...vite_ruby@3.1.6) (2022-06-02)
|
data/lib/vite_ruby/cli/ssr.rb
CHANGED
|
@@ -2,17 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
class ViteRuby::CLI::SSR < ViteRuby::CLI::Vite
|
|
4
4
|
DEFAULT_ENV = CURRENT_ENV || 'production'
|
|
5
|
+
JS_EXTENSIONS = %w[js mjs cjs]
|
|
5
6
|
|
|
6
7
|
desc 'Run the resulting app from building in SSR mode.'
|
|
7
8
|
executable_options
|
|
8
9
|
|
|
9
10
|
def call(mode:, inspect: false, trace_deprecation: false)
|
|
10
11
|
ViteRuby.env['VITE_RUBY_MODE'] = mode
|
|
12
|
+
|
|
13
|
+
ssr_entrypoint = JS_EXTENSIONS
|
|
14
|
+
.map { |ext| ViteRuby.config.ssr_output_dir.join("ssr.#{ ext }") }
|
|
15
|
+
.find(&:exist?)
|
|
16
|
+
|
|
17
|
+
raise ArgumentError, "No ssr entrypoint found `#{ ViteRuby.config.ssr_output_dir.relative_path_from(ViteRuby.config.root) }/ssr.{#{ JS_EXTENSIONS.join(',') }}`. Have you run bin/vite build --ssr?" unless ssr_entrypoint
|
|
18
|
+
|
|
11
19
|
cmd = [
|
|
12
20
|
'node',
|
|
13
21
|
('--inspect-brk' if inspect),
|
|
14
22
|
('--trace-deprecation' if trace_deprecation),
|
|
15
|
-
|
|
23
|
+
ssr_entrypoint,
|
|
16
24
|
]
|
|
17
25
|
Kernel.exec(*cmd.compact.map(&:to_s))
|
|
18
26
|
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.1
|
|
4
|
+
VERSION = '3.2.1'
|
|
5
5
|
|
|
6
6
|
# Internal: Versions used by default when running `vite install`.
|
|
7
|
-
DEFAULT_VITE_VERSION = '^
|
|
8
|
-
DEFAULT_PLUGIN_VERSION = '^3.0
|
|
7
|
+
DEFAULT_VITE_VERSION = '^3.0.0'
|
|
8
|
+
DEFAULT_PLUGIN_VERSION = '^3.1.0'
|
|
9
9
|
end
|
data/lib/vite_ruby.rb
CHANGED
|
@@ -15,8 +15,6 @@ loader.inflector.inflect('ssr' => 'SSR')
|
|
|
15
15
|
loader.inflector.inflect('io' => 'IO')
|
|
16
16
|
loader.setup
|
|
17
17
|
|
|
18
|
-
require 'vite_ruby/version'
|
|
19
|
-
|
|
20
18
|
class ViteRuby
|
|
21
19
|
# Internal: Prefix used for environment variables that modify the configuration.
|
|
22
20
|
ENV_PREFIX = 'VITE_RUBY'
|
|
@@ -142,3 +140,5 @@ class ViteRuby
|
|
|
142
140
|
@manifest ||= ViteRuby::Manifest.new(self)
|
|
143
141
|
end
|
|
144
142
|
end
|
|
143
|
+
|
|
144
|
+
require 'vite_ruby/version'
|
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.1
|
|
4
|
+
version: 3.2.1
|
|
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-
|
|
11
|
+
date: 2022-08-11 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.1
|
|
206
|
-
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_ruby@3.1
|
|
205
|
+
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_ruby@3.2.1/vite_ruby
|
|
206
|
+
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_ruby@3.2.1/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: []
|