vite_padrino 0.5.2 → 3.0.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 +23 -1
- data/README.md +2 -2
- data/lib/vite_padrino/tag_helpers.rb +7 -2
- data/lib/vite_padrino/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e72fe51a3759361ec1b1569d2ebb4cb59a36c5f09defb23d49aecbf514867915
|
4
|
+
data.tar.gz: beb66007c730f51713ffd54abf33bc04bfb62563c19c92fc4b8753cb165ae012
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fbe1adaf4cd0a741e06b543c11c5e4b116fec84dc3bedd0cdcc3a25428ad0bd6bbbee78509b54f1621b00dcbbbe05a10dc41eabddf4200497cd9af2b847cc1b
|
7
|
+
data.tar.gz: '079df3bf2c3172425d319f4384f2d82d4c9ff4934e402081bb6b90607ee8834e34837ef43a1fec71a801c0be223e4e3dc0e176acad58ad361ed789d7459e9809'
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,28 @@
|
|
1
|
-
|
1
|
+
# [3.0.0](https://github.com/ElMassimo/vite_ruby/compare/vite_padrino@0.5.4...vite_padrino@3.0.0) (2021-08-16)
|
2
|
+
|
3
|
+
See https://github.com/ElMassimo/vite_ruby/pull/116 for features and breaking changes.
|
4
|
+
|
5
|
+
## [0.5.4](https://github.com/ElMassimo/vite_ruby/compare/vite_padrino@0.5.3...vite_padrino@0.5.4) (2021-04-21)
|
6
|
+
|
7
|
+
|
8
|
+
### Features
|
9
|
+
|
10
|
+
* Add helpers to enable HMR when using @vitejs/plugin-react-refresh ([a80f286](https://github.com/ElMassimo/vite_ruby/commit/a80f286d4305bbae29ea7cea42a4329a530f43fa))
|
11
|
+
|
12
|
+
|
2
13
|
|
14
|
+
## [0.5.3](https://github.com/ElMassimo/vite_ruby/compare/vite_padrino@0.5.2...vite_padrino@0.5.3) (2021-03-18)
|
15
|
+
|
16
|
+
|
17
|
+
### Bug Fixes
|
18
|
+
|
19
|
+
* Using a .jsx extension in a tag helper in development ([a56491b](https://github.com/ElMassimo/vite_ruby/commit/a56491b96720ae537b6b6305aa7efa70cf19e4ee))
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
## [0.5.2](https://github.com/ElMassimo/vite_ruby/compare/vite_padrino@0.5.1...vite_padrino@0.5.2) (2021-03-07)
|
3
24
|
|
25
|
+
- Add a bounded requirement to `vite_ruby` dependency.
|
4
26
|
|
5
27
|
## [0.5.1](https://github.com/ElMassimo/vite_ruby/compare/vite_padrino@0.5.0...vite_padrino@0.5.1) (2021-02-26)
|
6
28
|
|
data/README.md
CHANGED
@@ -46,8 +46,8 @@
|
|
46
46
|
[vite_rails]: https://github.com/ElMassimo/vite_ruby/tree/main/vite_rails
|
47
47
|
[vite_ruby]: https://github.com/ElMassimo/vite_ruby/tree/main/vite_ruby
|
48
48
|
[vite_padrino]: https://github.com/ElMassimo/vite_ruby/tree/main/vite_padrino
|
49
|
-
[no bundling]: https://vitejs.dev/guide/
|
50
|
-
[bundling]: https://vitejs.dev/guide/
|
49
|
+
[no bundling]: https://vitejs.dev/guide/why.html#the-problems
|
50
|
+
[bundling]: https://vitejs.dev/guide/why.html#why-bundle-for-production
|
51
51
|
|
52
52
|
[Vite] is to frontend tooling as Ruby to programming, pure joy! 😍
|
53
53
|
|
@@ -9,6 +9,11 @@ module VitePadrino::TagHelpers
|
|
9
9
|
content_tag(:script, nil, src: src, type: 'module')
|
10
10
|
end
|
11
11
|
|
12
|
+
# Public: Renders a script tag to enable HMR with React Refresh.
|
13
|
+
def vite_react_refresh_tag
|
14
|
+
vite_manifest.react_refresh_preamble&.html_safe
|
15
|
+
end
|
16
|
+
|
12
17
|
# Public: Resolves the path for the specified Vite asset.
|
13
18
|
#
|
14
19
|
# Example:
|
@@ -26,7 +31,7 @@ module VitePadrino::TagHelpers
|
|
26
31
|
crossorigin: 'anonymous',
|
27
32
|
**options)
|
28
33
|
entries = vite_manifest.resolve_entries(*names, type: asset_type)
|
29
|
-
tags = javascript_include_tag(*entries.fetch(:scripts), crossorigin: crossorigin, type: type, **options)
|
34
|
+
tags = javascript_include_tag(*entries.fetch(:scripts), crossorigin: crossorigin, type: type, extname: false, **options)
|
30
35
|
tags << vite_preload_tag(*entries.fetch(:imports), crossorigin: crossorigin) unless skip_preload_tags
|
31
36
|
tags << stylesheet_link_tag(*entries.fetch(:stylesheets)) unless skip_style_tags
|
32
37
|
tags
|
@@ -34,7 +39,7 @@ module VitePadrino::TagHelpers
|
|
34
39
|
|
35
40
|
# Public: Renders a <script> tag for the specified Vite entrypoints.
|
36
41
|
def vite_typescript_tag(*names, **options)
|
37
|
-
vite_javascript_tag(*names, asset_type: :typescript,
|
42
|
+
vite_javascript_tag(*names, asset_type: :typescript, **options)
|
38
43
|
end
|
39
44
|
|
40
45
|
# Public: Renders a <link> tag for the specified Vite entrypoints.
|
data/lib/vite_padrino/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vite_padrino
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 3.0.0
|
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-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: vite_ruby
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '3.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '3.0'
|
27
27
|
description:
|
28
28
|
email:
|
29
29
|
- maximomussini@gmail.com
|
@@ -43,8 +43,8 @@ homepage: https://github.com/ElMassimo/vite_ruby
|
|
43
43
|
licenses:
|
44
44
|
- MIT
|
45
45
|
metadata:
|
46
|
-
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_padrino@0.
|
47
|
-
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_padrino@0.
|
46
|
+
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_padrino@3.0.0/vite_padrino
|
47
|
+
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_padrino@3.0.0/vite_padrino/CHANGELOG.md
|
48
48
|
post_install_message:
|
49
49
|
rdoc_options: []
|
50
50
|
require_paths:
|