vite_rails 3.0.0.beta.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +27 -0
- data/lib/vite_rails/tag_helpers.rb +11 -0
- data/lib/vite_rails/version.rb +1 -1
- data/templates/config/rails-vite.json +2 -1
- data/templates/entrypoints/application.js +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e1edf19004f473e3926fd24187617149c3c1d95d7849b2ce6e754bd12c710c8
|
4
|
+
data.tar.gz: 92d282223f58f5109abc2b5766cd670c2a6e78e96f1ffd79646ce5fcf250656a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec1c469414cab1afaf05a841d0a7a7fb00d7314a1960c0d8e40b3707a3c0b31de8d59ca745b4ca39807920ac7a3e45dfc29854c3e830a9b2347eaac6dd984a86
|
7
|
+
data.tar.gz: 86a2cd35794dc28f94ca84d1cbb971874a89e4863f44dbab9efa21bf16463d8f66c4d1f56813f3f6d6440e053734591b517cf2eb853dbf82d00a21d94e4c85fd
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,30 @@
|
|
1
|
+
## [3.0.3](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.2...vite_rails@3.0.3) (2021-12-22)
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
## [3.0.2](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.1...vite_rails@3.0.2) (2021-12-12)
|
6
|
+
|
7
|
+
|
8
|
+
### Bug Fixes
|
9
|
+
|
10
|
+
* add variable declaration to import.meta.globEager (close [#154](https://github.com/ElMassimo/vite_ruby/issues/154)) ([#155](https://github.com/ElMassimo/vite_ruby/issues/155)) ([9ada2e8](https://github.com/ElMassimo/vite_ruby/commit/9ada2e87c68899e8e1bad368c875f8214036abcc))
|
11
|
+
* comment back glob import ([943e7f1](https://github.com/ElMassimo/vite_ruby/commit/943e7f1ca23a8abdee09c1495dc9e96494bc6202))
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
## [3.0.1](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.0...vite_rails@3.0.1) (2021-10-29)
|
16
|
+
|
17
|
+
|
18
|
+
### Features
|
19
|
+
|
20
|
+
* enable hmr when running tests in development with vite dev server ([e253bba](https://github.com/ElMassimo/vite_ruby/commit/e253bba26d164aabc7a9526df504c207ad2cf6f9))
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
# [3.0.0](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@2.0.13...vite_rails@3.0.0) (2021-08-16)
|
25
|
+
|
26
|
+
See https://github.com/ElMassimo/vite_ruby/pull/116 for features and breaking changes.
|
27
|
+
|
1
28
|
## [2.0.13](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@2.0.12...vite_rails@2.0.13) (2021-07-27)
|
2
29
|
|
3
30
|
|
@@ -49,6 +49,17 @@ module ViteRails::TagHelpers
|
|
49
49
|
stylesheet_link_tag(*style_paths, **options)
|
50
50
|
end
|
51
51
|
|
52
|
+
# Public: Renders an <img> tag for the specified Vite asset.
|
53
|
+
def vite_image_tag(name, **options)
|
54
|
+
if options[:srcset] && !options[:srcset].is_a?(String)
|
55
|
+
options[:srcset] = options[:srcset].map do |src_name, size|
|
56
|
+
"#{ vite_asset_path(src_name) } #{ size }"
|
57
|
+
end.join(', ')
|
58
|
+
end
|
59
|
+
|
60
|
+
image_tag(vite_asset_path(name), options)
|
61
|
+
end
|
62
|
+
|
52
63
|
private
|
53
64
|
|
54
65
|
# Internal: Returns the current manifest loaded by Vite Ruby.
|
data/lib/vite_rails/version.rb
CHANGED
@@ -21,7 +21,7 @@ console.log('Visit the guide for more information: ', 'https://vite-ruby.netlify
|
|
21
21
|
// import ActiveStorage from '@rails/activestorage'
|
22
22
|
//
|
23
23
|
// // Import all channels.
|
24
|
-
// import.meta.globEager('./**/*_channel.js')
|
24
|
+
// const channels = import.meta.globEager('./**/*_channel.js')
|
25
25
|
//
|
26
26
|
// Turbolinks.start()
|
27
27
|
// ActiveStorage.start()
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vite_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Máximo Mussini
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -36,14 +36,14 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: 3.0
|
39
|
+
version: '3.0'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 3.0
|
46
|
+
version: '3.0'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: spring
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,8 +82,8 @@ homepage: https://github.com/ElMassimo/vite_ruby
|
|
82
82
|
licenses:
|
83
83
|
- MIT
|
84
84
|
metadata:
|
85
|
-
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@3.0.
|
86
|
-
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@3.0.
|
85
|
+
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@3.0.3/vite_rails
|
86
|
+
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@3.0.3/vite_rails/CHANGELOG.md
|
87
87
|
post_install_message:
|
88
88
|
rdoc_options: []
|
89
89
|
require_paths:
|
@@ -95,9 +95,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
95
95
|
version: '2.5'
|
96
96
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
97
|
requirements:
|
98
|
-
- - "
|
98
|
+
- - ">="
|
99
99
|
- !ruby/object:Gem::Version
|
100
|
-
version:
|
100
|
+
version: '0'
|
101
101
|
requirements: []
|
102
102
|
rubygems_version: 3.1.4
|
103
103
|
signing_key:
|