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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3b4d474c4abe71d8f97e07ff2e5734b74413743c59222f9f8834f2db64cc505
4
- data.tar.gz: bda32962a6b7e2b6bb422a8244ca439de4a27685e8ebacc336df64c6eea7ac9c
3
+ metadata.gz: f86a6fa4c15a7bfedc25667815de449deed04d8e6173bd33a39abf4f4964ed0e
4
+ data.tar.gz: aaeb318218ea341f2893dc85ecbcd727c35729236e7c882fbdd8d1cd3cd411d9
5
5
  SHA512:
6
- metadata.gz: 6d21b3e2f88636ef8ea0bdff15fcb32a54a64c3f941aebc754ec0aa6e5d857d8077a9e011bf2b576fdfa08107f3dc01e7a985eac61b86ee9f773ae77f4da2cad
7
- data.tar.gz: 7fa4f27292a93f2d34eedb1aefd81f87ee61da1830488a9ccfd0332659625534288f90e678b604e0dc0aa36f31a31744bd37afa19718fc7f66dd33c95050a31a
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
- r.public # Serve static files (including built vite assets)
33
+ # serve static files (including built vite assets)
34
+ r.public
31
35
 
32
36
  r.root do
33
- <<~HTML
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 # Run linter and tests
66
- bundle exec rake test # Run tests only
67
- bundle exec rake standard:fix # Auto-fix linter issues
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.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ViteRoda
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vite_roda
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pablo Orellana