vite_hanami 0.5.0 → 0.5.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 +5 -1
- data/README.md +33 -24
- data/lib/vite_hanami/installation.rb +4 -0
- data/lib/vite_hanami/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96cb8e2c9ebbfbc080f464e164fcee181000c0def5d148bec276dff70e80b1d3
|
4
|
+
data.tar.gz: 4db4bb7a2cde40c3b2c92499bf6e694ba9180893fe28563aa6561196ce62d414
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1443b43f6ff6f18d46ceab8c4c19328a219ca633efdb5d5abaf5fcd7031013b6c558b3a1d259cf9c9f94d6f1e26024b5186294a1ebdb4260e3b09c7a11d8f11c
|
7
|
+
data.tar.gz: eb73fa46a1140138379c9522b567989af4a851d841b44ed6fa747363537db8a4a30453afe9a5955083079086adb26316592b500ad7e762783365f36237cec79d
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,56 +1,65 @@
|
|
1
1
|
<h1 align="center">
|
2
|
-
<a href="https://vite-
|
3
|
-
<img src="https://raw.githubusercontent.com/ElMassimo/
|
2
|
+
<a href="https://vite-ruby.netlify.app/">
|
3
|
+
<img src="https://raw.githubusercontent.com/ElMassimo/vite_ruby/main/docs/public/logo.svg" width="120px"/>
|
4
4
|
</a>
|
5
5
|
|
6
6
|
<br>
|
7
7
|
|
8
|
-
<a href="https://vite-
|
8
|
+
<a href="https://vite-ruby.netlify.app/">
|
9
9
|
Vite Hanami
|
10
10
|
</a>
|
11
11
|
|
12
12
|
<br>
|
13
13
|
|
14
14
|
<p align="center">
|
15
|
-
<a href="https://github.com/ElMassimo/
|
16
|
-
<img alt="Build Status" src="https://github.com/ElMassimo/
|
15
|
+
<a href="https://github.com/ElMassimo/vite_ruby/actions">
|
16
|
+
<img alt="Build Status" src="https://github.com/ElMassimo/vite_ruby/workflows/build/badge.svg"/>
|
17
17
|
</a>
|
18
|
-
<a href="https://codeclimate.com/github/ElMassimo/
|
19
|
-
<img alt="Maintainability" src="https://codeclimate.com/github/ElMassimo/
|
18
|
+
<a href="https://codeclimate.com/github/ElMassimo/vite_ruby">
|
19
|
+
<img alt="Maintainability" src="https://codeclimate.com/github/ElMassimo/vite_ruby/badges/gpa.svg"/>
|
20
20
|
</a>
|
21
|
-
<a href="https://codeclimate.com/github/ElMassimo/
|
22
|
-
<img alt="Test Coverage" src="https://codeclimate.com/github/ElMassimo/
|
21
|
+
<a href="https://codeclimate.com/github/ElMassimo/vite_ruby">
|
22
|
+
<img alt="Test Coverage" src="https://codeclimate.com/github/ElMassimo/vite_ruby/badges/coverage.svg"/>
|
23
23
|
</a>
|
24
24
|
<a href="https://rubygems.org/gems/vite_hanami">
|
25
25
|
<img alt="Gem Version" src="https://img.shields.io/gem/v/vite_hanami.svg?colorB=e9573f"/>
|
26
26
|
</a>
|
27
|
-
<a href="https://github.com/ElMassimo/
|
27
|
+
<a href="https://github.com/ElMassimo/vite_ruby/blob/master/LICENSE.txt">
|
28
28
|
<img alt="License" src="https://img.shields.io/badge/license-MIT-428F7E.svg"/>
|
29
29
|
</a>
|
30
30
|
</p>
|
31
31
|
</h1>
|
32
32
|
|
33
|
-
[website]: https://vite-
|
34
|
-
[configuration reference]: https://vite-
|
35
|
-
[features]: https://vite-
|
36
|
-
[guides]: https://vite-
|
37
|
-
[config]: https://vite-
|
38
|
-
[vite_rails]: https://github.com/ElMassimo/
|
33
|
+
[website]: https://vite-ruby.netlify.app/
|
34
|
+
[configuration reference]: https://vite-ruby.netlify.app/config/
|
35
|
+
[features]: https://vite-ruby.netlify.app/guide/introduction.html
|
36
|
+
[guides]: https://vite-ruby.netlify.app/guide/
|
37
|
+
[config]: https://vite-ruby.netlify.app/config/
|
38
|
+
[vite_rails]: https://github.com/ElMassimo/vite_ruby
|
39
39
|
[webpacker]: https://github.com/rails/webpacker
|
40
40
|
[vite]: http://vitejs.dev/
|
41
|
-
[config file]: https://github.com/ElMassimo/
|
41
|
+
[config file]: https://github.com/ElMassimo/vite_ruby/blob/main/vite-plugin-ruby/default.vite.json
|
42
42
|
[example app]: https://github.com/ElMassimo/pingcrm-vite
|
43
43
|
[heroku]: https://pingcrm-vite.herokuapp.com/
|
44
|
-
[Issues]: https://github.com/ElMassimo/
|
45
|
-
[Discussions]: https://github.com/ElMassimo/
|
46
|
-
[vite_rails]: https://github.com/ElMassimo/
|
47
|
-
[vite_ruby]: https://github.com/ElMassimo/
|
48
|
-
[vite_hanami]: https://github.com/ElMassimo/
|
49
|
-
|
44
|
+
[Issues]: https://github.com/ElMassimo/vite_ruby/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc
|
45
|
+
[Discussions]: https://github.com/ElMassimo/vite_ruby/discussions
|
46
|
+
[vite_rails]: https://github.com/ElMassimo/vite_ruby/tree/main/vite_rails
|
47
|
+
[vite_ruby]: https://github.com/ElMassimo/vite_ruby/tree/main/vite_ruby
|
48
|
+
[vite_hanami]: https://github.com/ElMassimo/vite_ruby/tree/main/vite_hanami
|
49
|
+
[no bundling]: https://vitejs.dev/guide/introduction.html#the-problem
|
50
|
+
[bundling]: https://vitejs.dev/guide/introduction.html#why-bundle-for-production
|
50
51
|
|
51
52
|
[Vite] is to frontend tooling as Ruby to programming, pure joy! 😍
|
52
53
|
|
53
|
-
|
54
|
+
[__Vite Hanami__][vite_hanami] provides easy setup for Hanami web apps, as well as idiomatic tag helpers.
|
55
|
+
|
56
|
+
## Why Vite? 🤔
|
57
|
+
|
58
|
+
Vite [does not bundle your code during development][no bundling], which means the
|
59
|
+
dev server is extremely __fast to start__, and your changes will be __updated instantly__.
|
60
|
+
|
61
|
+
In production, Vite [bundles your code][bundling]
|
62
|
+
with tree-shaking, lazy-loading, and common chunk splitting out of the box, to achieve optimal loading performance.
|
54
63
|
|
55
64
|
## Features ⚡️
|
56
65
|
|
@@ -20,6 +20,10 @@ module ViteHanami::Installation
|
|
20
20
|
.sub('connect-src', "connect-src ws://\#{ ViteRuby.config.host_with_port }")
|
21
21
|
)
|
22
22
|
CSP
|
23
|
+
append root.join('Rakefile'), <<~RAKE
|
24
|
+
require 'vite_hanami'
|
25
|
+
ViteRuby.install_tasks
|
26
|
+
RAKE
|
23
27
|
end
|
24
28
|
|
25
29
|
# Override: Inject the vite client and sample script to the default HTML template.
|
data/lib/vite_hanami/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vite_hanami
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Máximo Mussini
|
@@ -82,12 +82,12 @@ files:
|
|
82
82
|
- lib/vite_hanami/tag_helpers.rb
|
83
83
|
- lib/vite_hanami/version.rb
|
84
84
|
- templates/config/hanami-vite.json
|
85
|
-
homepage: https://github.com/ElMassimo/
|
85
|
+
homepage: https://github.com/ElMassimo/vite_ruby
|
86
86
|
licenses:
|
87
87
|
- MIT
|
88
88
|
metadata:
|
89
|
-
source_code_uri: https://github.com/ElMassimo/
|
90
|
-
changelog_uri: https://github.com/ElMassimo/
|
89
|
+
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_hanami@0.5.1/vite_hanami
|
90
|
+
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_hanami@0.5.1/vite_hanami/CHANGELOG.md
|
91
91
|
post_install_message:
|
92
92
|
rdoc_options: []
|
93
93
|
require_paths:
|