vite_roda 0.1.0 → 0.1.1
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 +7 -0
- data/README.md +24 -20
- data/lib/vite_roda/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f86a6fa4c15a7bfedc25667815de449deed04d8e6173bd33a39abf4f4964ed0e
|
|
4
|
+
data.tar.gz: aaeb318218ea341f2893dc85ecbcd727c35729236e7c882fbdd8d1cd3cd411d9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 40d2648bef17b5ef0cc8c5dc972b5ae23b4859169940279a9b42ccc3714052af9b9ac16b344733fd6afd789cb08385640bd762be3e249329b657475608078d29
|
|
7
|
+
data.tar.gz: 826487223dabec3cef09e45acd315271750a06643066ee1bff3b3d9c9099352a0a40a5e8890a7baf47b4c4e3da1173ba635f0c5e480752abe91a00753fb0d827
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.1.1] - 2026-03-20
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Bump vite_ruby dependency to 3.10.0
|
|
13
|
+
|
|
8
14
|
## [0.1.0] - 2025-01-25
|
|
9
15
|
|
|
10
16
|
### Added
|
|
@@ -16,4 +22,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
16
22
|
- Strict mode by default (raises on missing entrypoints)
|
|
17
23
|
- Example apps for React, Svelte, and Tailwind
|
|
18
24
|
|
|
25
|
+
[0.1.1]: https://github.com/holamendi/vite_roda/compare/v0.1.0...v0.1.1
|
|
19
26
|
[0.1.0]: https://github.com/holamendi/vite_roda/releases/tag/v0.1.0
|
data/README.md
CHANGED
|
@@ -19,34 +19,42 @@ bundle exec vite install
|
|
|
19
19
|
|
|
20
20
|
## Usage
|
|
21
21
|
|
|
22
|
+
`app.rb`
|
|
23
|
+
|
|
22
24
|
```ruby
|
|
23
25
|
require "roda"
|
|
24
26
|
require "vite_roda"
|
|
25
27
|
|
|
26
28
|
class App < Roda
|
|
29
|
+
plugin :render
|
|
27
30
|
plugin :vite
|
|
28
31
|
|
|
29
32
|
route do |r|
|
|
30
|
-
|
|
33
|
+
# serve static files (including built vite assets)
|
|
34
|
+
r.public
|
|
31
35
|
|
|
32
36
|
r.root do
|
|
33
|
-
|
|
34
|
-
<!DOCTYPE html>
|
|
35
|
-
<html>
|
|
36
|
-
<head>
|
|
37
|
-
#{vite_client_tag}
|
|
38
|
-
#{vite_javascript_tag "entrypoints/application.js"}
|
|
39
|
-
</head>
|
|
40
|
-
<body>
|
|
41
|
-
<h1>Hello, Vite!</h1>
|
|
42
|
-
</body>
|
|
43
|
-
</html>
|
|
44
|
-
HTML
|
|
37
|
+
view :index
|
|
45
38
|
end
|
|
46
39
|
end
|
|
47
40
|
end
|
|
48
41
|
```
|
|
49
42
|
|
|
43
|
+
`views/index.erb`
|
|
44
|
+
|
|
45
|
+
```erb
|
|
46
|
+
<!DOCTYPE html>
|
|
47
|
+
<html>
|
|
48
|
+
<head>
|
|
49
|
+
<%= vite_client_tag %>
|
|
50
|
+
<%= vite_javascript_tag "entrypoints/application.js" %>
|
|
51
|
+
</head>
|
|
52
|
+
<body>
|
|
53
|
+
<h1>Hello, Vite!</h1>
|
|
54
|
+
</body>
|
|
55
|
+
</html>
|
|
56
|
+
```
|
|
57
|
+
|
|
50
58
|
## View Helpers
|
|
51
59
|
|
|
52
60
|
- `vite_client_tag` - HMR client script (development only)
|
|
@@ -62,11 +70,7 @@ Configuration is handled by vite_ruby via `config/vite.json`. See the [vite_ruby
|
|
|
62
70
|
|
|
63
71
|
```bash
|
|
64
72
|
bundle install
|
|
65
|
-
bundle exec rake
|
|
66
|
-
bundle exec rake test
|
|
67
|
-
bundle exec rake standard:fix #
|
|
73
|
+
bundle exec rake # run linter and tests
|
|
74
|
+
bundle exec rake test # run tests only
|
|
75
|
+
bundle exec rake standard:fix # auto-fix linter issues
|
|
68
76
|
```
|
|
69
|
-
|
|
70
|
-
## License
|
|
71
|
-
|
|
72
|
-
MIT License. See LICENSE.txt.
|
data/lib/vite_roda/version.rb
CHANGED