vite_ruby 3.5.0 → 3.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6024067932bb5062002e46418a1861eb4193916c7454e24245fe3cf83c56795d
4
- data.tar.gz: cfc52727b1e4cde4936254cd0025d97942e3b636c5647742dc1c809fb3a9bba4
3
+ metadata.gz: 184968fc31cdfdcafe5fea4b2ba393155ae968df6a7ffb11fd9ff7c6b30da671
4
+ data.tar.gz: 1cdbbef05db2234af7496421fad1569d3c3a81d86dd5b88ca8fa27fe19159aaa
5
5
  SHA512:
6
- metadata.gz: 489c44241c90ac71fd978a8142554581505e05acce6268a062738a4f1f9c5e88a2cca39778459cea3e7e79d5116bc7f8ea1b4455f65fe9d436a15164ab5704cc
7
- data.tar.gz: 2425fb29d5151d56f2774c435eb2a5b636c765e229aff3a99936300453ec77c281fdac8c85c6885d1cc3ce900a470f3b58cb6135f0a51124ef34c965282d9b38
6
+ metadata.gz: 54c6f374fb5254bad6eccadfc21928f7bceb7871fdc9077261f52837203d1c85855519c824f24d9bbbff243bd2f02bd8ec300fd3323451ea09902b7cd12bf63a
7
+ data.tar.gz: 31c1ab4e450b3ce0619ebffeda6565868fea3f2b197ffec35a5abddc3101940d6fc856967f568fd2196628a3e2171cfd21313ee4ecbe23ca732f79696da055bc
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ # [3.6.0](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.5.0...vite_ruby@3.6.0) (2024-06-07)
2
+
3
+
4
+ ### Features
5
+
6
+ * allow skipping dependency install in assets:precompile ([#451](https://github.com/ElMassimo/vite_ruby/issues/451)) ([5a922b2](https://github.com/ElMassimo/vite_ruby/commit/5a922b2071446e3880b17503474a0c7806eab6a7))
7
+
8
+
9
+
1
10
  # [3.5.0](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.4.0...vite_ruby@3.5.0) (2023-11-16)
2
11
 
3
12
 
data/lib/tasks/vite.rake CHANGED
@@ -59,12 +59,18 @@ unless ENV['VITE_RUBY_SKIP_ASSETS_PRECOMPILE_EXTENSION'] == 'true'
59
59
  if Rake::Task.task_defined?('assets:precompile')
60
60
  Rake::Task['assets:precompile'].enhance do |task|
61
61
  prefix = task.name.split(/#|assets:precompile/).first
62
- Rake::Task["#{ prefix }vite:install_dependencies"].invoke
62
+ unless ENV['VITE_RUBY_SKIP_ASSETS_PRECOMPILE_INSTALL'] == 'true'
63
+ Rake::Task["#{ prefix }vite:install_dependencies"].invoke
64
+ end
63
65
  Rake::Task["#{ prefix }vite:build_all"].invoke
64
66
  end
65
67
  else
66
68
  desc 'Bundle Vite assets'
67
- Rake::Task.define_task('assets:precompile' => ['vite:install_dependencies', 'vite:build_all'])
69
+ if ENV['VITE_RUBY_SKIP_ASSETS_PRECOMPILE_INSTALL'] == 'true'
70
+ Rake::Task.define_task('assets:precompile' => 'vite:build_all')
71
+ else
72
+ Rake::Task.define_task('assets:precompile' => ['vite:install_dependencies', 'vite:build_all'])
73
+ end
68
74
  end
69
75
 
70
76
  unless Rake::Task.task_defined?('assets:clean')
@@ -195,6 +195,7 @@ private
195
195
  postcss.config.js
196
196
  tailwind.config.js
197
197
  vite.config.js
198
+ vite.config.mjs
198
199
  vite.config.ts
199
200
  windi.config.ts
200
201
  yarn.lock
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'ostruct'
4
+
3
5
  # Public: Registry for accessing resources managed by Vite, using a generated
4
6
  # manifest file which maps entrypoint names to file paths.
5
7
  #
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ViteRuby
4
- VERSION = '3.5.0'
4
+ VERSION = '3.6.0'
5
5
 
6
6
  # Internal: Versions used by default when running `vite install`.
7
7
  DEFAULT_VITE_VERSION = '^5.0.0'
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.5.0
4
+ version: 3.6.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: 2023-11-16 00:00:00.000000000 Z
11
+ date: 2024-06-07 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.5.0/vite_ruby
212
- changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_ruby@3.5.0/vite_ruby/CHANGELOG.md
211
+ source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_ruby@3.6.0/vite_ruby
212
+ changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_ruby@3.6.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: []