vite_padrino 0.5.1 → 3.0.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/README.md +5 -2
- data/lib/vite_padrino/tag_helpers.rb +7 -2
- data/lib/vite_padrino/version.rb +1 -1
- metadata +10 -52
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 139b99e499755c7608641535a6f3fdcd0f5dc014cb0133f76ba04756cc61a9f8
|
4
|
+
data.tar.gz: 5246e78c5d10bf85a4adbc0acdb8468ae6c3296358deeabfa4567c552e33ca57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51cff6ef7392311e69302b03691b273e932f08132a55fd5c1aecdec664d003491d4c8fdbec46049f8b2eb59e4a40becaa0dad0f4d12a90601e4761fc99929161
|
7
|
+
data.tar.gz: dab0ed73d0d39a7cb43045d01a749400be3a123e1bf72a41049f2290e686d6017b58f6c7e78ffc91f17ca0c71ca548de56c1b44bf5c8b2d36bbfc2df0d61a260
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,25 @@
|
|
1
|
+
## [0.5.4](https://github.com/ElMassimo/vite_ruby/compare/vite_padrino@0.5.3...vite_padrino@0.5.4) (2021-04-21)
|
2
|
+
|
3
|
+
|
4
|
+
### Features
|
5
|
+
|
6
|
+
* Add helpers to enable HMR when using @vitejs/plugin-react-refresh ([a80f286](https://github.com/ElMassimo/vite_ruby/commit/a80f286d4305bbae29ea7cea42a4329a530f43fa))
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
## [0.5.3](https://github.com/ElMassimo/vite_ruby/compare/vite_padrino@0.5.2...vite_padrino@0.5.3) (2021-03-18)
|
11
|
+
|
12
|
+
|
13
|
+
### Bug Fixes
|
14
|
+
|
15
|
+
* Using a .jsx extension in a tag helper in development ([a56491b](https://github.com/ElMassimo/vite_ruby/commit/a56491b96720ae537b6b6305aa7efa70cf19e4ee))
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
## [0.5.2](https://github.com/ElMassimo/vite_ruby/compare/vite_padrino@0.5.1...vite_padrino@0.5.2) (2021-03-07)
|
20
|
+
|
21
|
+
- Add a bounded requirement to `vite_ruby` dependency.
|
22
|
+
|
1
23
|
## [0.5.1](https://github.com/ElMassimo/vite_ruby/compare/vite_padrino@0.5.0...vite_padrino@0.5.1) (2021-02-26)
|
2
24
|
|
3
25
|
|
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
|
|
@@ -61,6 +61,8 @@ dev server is extremely __fast to start__, and your changes will be __updated in
|
|
61
61
|
In production, Vite [bundles your code][bundling]
|
62
62
|
with tree-shaking, lazy-loading, and common chunk splitting out of the box, to achieve optimal loading performance.
|
63
63
|
|
64
|
+
It also provides great defaults, and is easier to configure than similar tools like webpack.
|
65
|
+
|
64
66
|
## Features ⚡️
|
65
67
|
|
66
68
|
- 💡 Instant server start
|
@@ -106,6 +108,7 @@ Please use [Issues] to report bugs you find, and [Discussions] to make feature r
|
|
106
108
|
|
107
109
|
Don't hesitate to _⭐️ star the project_ if you find it useful!
|
108
110
|
|
111
|
+
Using it in production? Always love to hear about it! 😃
|
109
112
|
|
110
113
|
## Special Thanks 🙏
|
111
114
|
|
@@ -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,71 +1,29 @@
|
|
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.beta.1
|
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-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: vite_ruby
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 3.0.0.beta.1
|
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:
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: bundler
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 1.3.0
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 1.3.0
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rubocop
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rubocop-performance
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
26
|
+
version: 3.0.0.beta.1
|
69
27
|
description:
|
70
28
|
email:
|
71
29
|
- maximomussini@gmail.com
|
@@ -85,8 +43,8 @@ homepage: https://github.com/ElMassimo/vite_ruby
|
|
85
43
|
licenses:
|
86
44
|
- MIT
|
87
45
|
metadata:
|
88
|
-
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_padrino@0.
|
89
|
-
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.beta.1/vite_padrino
|
47
|
+
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_padrino@3.0.0.beta.1/vite_padrino/CHANGELOG.md
|
90
48
|
post_install_message:
|
91
49
|
rdoc_options: []
|
92
50
|
require_paths:
|
@@ -98,9 +56,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
98
56
|
version: '2.5'
|
99
57
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
58
|
requirements:
|
101
|
-
- - "
|
59
|
+
- - ">"
|
102
60
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
61
|
+
version: 1.3.1
|
104
62
|
requirements: []
|
105
63
|
rubygems_version: 3.1.4
|
106
64
|
signing_key:
|