vite_ruby 3.2.14 → 3.3.0
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 -0
- data/lib/tasks/vite.rake +4 -1
- data/lib/vite_ruby/cli/build.rb +1 -0
- 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: 73124ff2bf0958d7ebba59356dac4083017d31e1ca587e1ae9c9b11a27927d46
|
4
|
+
data.tar.gz: e96ddb6e68f5fb4472bfd16173ca1dddc42c746e5021eaec3eb6bef2409b9da8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0954e248982e529e5af07c45dd656cb2abc9a794a62a65443766dd79829993dca7ba20a6b18bf152951827a54433637115c62a9d95b2a65b568ebe6f582e7a3
|
7
|
+
data.tar.gz: 7d488e99894013eaf84fcd0df53cf091a0e728cdc21a2c59483a0dd1defbc63a42c9a60bbe6bd15675ee799e5e95f01bccacf1f0bfc22082a322334e5ffc2a6c
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,22 @@
|
|
1
|
+
# [3.3.0](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.2.15...vite_ruby@3.3.0) (2023-03-16)
|
2
|
+
|
3
|
+
|
4
|
+
### Features
|
5
|
+
|
6
|
+
* add support for the --profile flag when running vite build ([4a949fd](https://github.com/ElMassimo/vite_ruby/commit/4a949fde1672b899c7c0382e99a669195c7ea639)), closes [#332](https://github.com/ElMassimo/vite_ruby/issues/332)
|
7
|
+
* change defaults to vite@4.2.0 and vite-plugin-ruby@3.2.0 ([e9f5702](https://github.com/ElMassimo/vite_ruby/commit/e9f570294c34682a6dd18fdc2ef13675f33375e6))
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
## [3.2.15](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.2.14...vite_ruby@3.2.15) (2023-03-01)
|
12
|
+
|
13
|
+
|
14
|
+
### Features
|
15
|
+
|
16
|
+
* install dependencies with yarn if npx is not available ([#343](https://github.com/ElMassimo/vite_ruby/issues/343)) ([90c5db2](https://github.com/ElMassimo/vite_ruby/commit/90c5db2e45ed89aedfa02f0f167925e4ccb02d6d)), closes [#342](https://github.com/ElMassimo/vite_ruby/issues/342)
|
17
|
+
|
18
|
+
|
19
|
+
|
1
20
|
## [3.2.14](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.2.13...vite_ruby@3.2.14) (2022-12-22)
|
2
21
|
|
3
22
|
|
data/lib/tasks/vite.rake
CHANGED
@@ -43,7 +43,10 @@ namespace :vite do
|
|
43
43
|
desc 'Ensure build dependencies like Vite are installed before bundling'
|
44
44
|
task :install_dependencies do
|
45
45
|
cmd = ViteRuby.commands.legacy_npm_version? ? 'npx ci --yes' : 'npx --yes ci'
|
46
|
-
system({ 'NODE_ENV' => 'development' }, cmd)
|
46
|
+
result = system({ 'NODE_ENV' => 'development' }, cmd)
|
47
|
+
|
48
|
+
# Fallback to `yarn` if `npx` is not available.
|
49
|
+
system({ 'NODE_ENV' => 'development' }, 'yarn install --frozen-lockfile') if result.nil?
|
47
50
|
end
|
48
51
|
|
49
52
|
desc "Provide information on ViteRuby's environment"
|
data/lib/vite_ruby/cli/build.rb
CHANGED
@@ -8,6 +8,7 @@ class ViteRuby::CLI::Build < ViteRuby::CLI::Vite
|
|
8
8
|
option(:ssr, desc: 'Build the SSR entrypoint instead', type: :boolean)
|
9
9
|
option(:force, desc: 'Force the build even if assets have not changed', type: :boolean)
|
10
10
|
option(:watch, desc: 'Start the Rollup watcher and rebuild on files changes', type: :boolean)
|
11
|
+
option(:profile, desc: 'Gather performance metrics from the build ', type: :boolean)
|
11
12
|
|
12
13
|
def call(**options)
|
13
14
|
super { |args| ViteRuby.commands.build_from_task(*args) }
|
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.
|
4
|
+
VERSION = '3.3.0'
|
5
5
|
|
6
6
|
# Internal: Versions used by default when running `vite install`.
|
7
|
-
DEFAULT_VITE_VERSION = '^4.
|
8
|
-
DEFAULT_PLUGIN_VERSION = '^3.
|
7
|
+
DEFAULT_VITE_VERSION = '^4.2.0'
|
8
|
+
DEFAULT_PLUGIN_VERSION = '^3.2.0'
|
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.
|
4
|
+
version: 3.3.0
|
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:
|
11
|
+
date: 2023-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-cli
|
@@ -208,8 +208,8 @@ homepage: https://github.com/ElMassimo/vite_ruby
|
|
208
208
|
licenses:
|
209
209
|
- MIT
|
210
210
|
metadata:
|
211
|
-
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_ruby@3.
|
212
|
-
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_ruby@3.
|
211
|
+
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_ruby@3.3.0/vite_ruby
|
212
|
+
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_ruby@3.3.0/vite_ruby/CHANGELOG.md
|
213
213
|
post_install_message: "Thanks for installing Vite Ruby!\n\nIf you upgraded the gem
|
214
214
|
manually, please run:\n\tbundle exec vite upgrade"
|
215
215
|
rdoc_options: []
|