vite_hanami 0.5.0 → 0.5.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: 8bed5de3195c146f3e7826478b064fdcc2356e76b37ae4f828592babc50a5e79
4
- data.tar.gz: 1ad190f5198116cfdc4227221f07ee948d6651a069c68c3c377108aee2fa60be
3
+ metadata.gz: 96cb8e2c9ebbfbc080f464e164fcee181000c0def5d148bec276dff70e80b1d3
4
+ data.tar.gz: 4db4bb7a2cde40c3b2c92499bf6e694ba9180893fe28563aa6561196ce62d414
5
5
  SHA512:
6
- metadata.gz: b522acfcb73ec7206b497d57ab2dd999e8ad7034bdcc963dbb21b8f2ef72c9e23f5b87ff6fa04fc1735d1b61b90ab2460e432c23d9b289e9850aef1d4c30a1d5
7
- data.tar.gz: 2660390dbef9a773ce0cc566663a22178d197fb33c5fa3073ee28f7a81850f16acd4cb9fb04655a14cb229a721ab61ed94ad0bb94a71d6eda764fea409dedaac
6
+ metadata.gz: 1443b43f6ff6f18d46ceab8c4c19328a219ca633efdb5d5abaf5fcd7031013b6c558b3a1d259cf9c9f94d6f1e26024b5186294a1ebdb4260e3b09c7a11d8f11c
7
+ data.tar.gz: eb73fa46a1140138379c9522b567989af4a851d841b44ed6fa747363537db8a4a30453afe9a5955083079086adb26316592b500ad7e762783365f36237cec79d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
- ## Vite Hanami 1.0.0 (2020-02-09)
1
+ ## Vite Hanami 0.5.1 (2020-02-10)
2
+
3
+ - Install rake tasks in Rakefile by default.
4
+
5
+ ## Vite Hanami 0.5.0 (2020-02-09)
2
6
 
3
7
  - Initial release, includes installation samples and tag helpers.
data/README.md CHANGED
@@ -1,56 +1,65 @@
1
1
  <h1 align="center">
2
- <a href="https://vite-rails.netlify.app/">
3
- <img src="https://raw.githubusercontent.com/ElMassimo/vite_rails/main/docs/public/logo.svg" width="120px"/>
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-rails.netlify.app/">
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/vite_rails/actions">
16
- <img alt="Build Status" src="https://github.com/ElMassimo/vite_rails/workflows/build/badge.svg"/>
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/vite_rails">
19
- <img alt="Maintainability" src="https://codeclimate.com/github/ElMassimo/vite_rails/badges/gpa.svg"/>
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/vite_rails">
22
- <img alt="Test Coverage" src="https://codeclimate.com/github/ElMassimo/vite_rails/badges/coverage.svg"/>
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/vite_rails/blob/master/LICENSE.txt">
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-rails.netlify.app/
34
- [configuration reference]: https://vite-rails.netlify.app/config/
35
- [features]: https://vite-rails.netlify.app/guide/introduction.html
36
- [guides]: https://vite-rails.netlify.app/guide/
37
- [config]: https://vite-rails.netlify.app/config/
38
- [vite_rails]: https://github.com/ElMassimo/vite_rails
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/vite_rails/blob/main/vite-plugin-ruby/default.vite.json
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/vite_rails/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc
45
- [Discussions]: https://github.com/ElMassimo/vite_rails/discussions
46
- [vite_rails]: https://github.com/ElMassimo/vite_rails/tree/main/vite_rails
47
- [vite_ruby]: https://github.com/ElMassimo/vite_rails/tree/main/vite_ruby
48
- [vite_hanami]: https://github.com/ElMassimo/vite_rails/tree/main/vite_hanami
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
- This library provides specific installation scripts for Hanami, as well as idiomatic tag helpers.
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.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ViteHanami
4
- VERSION = '0.5.0'
4
+ VERSION = '0.5.1'
5
5
  end
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.0
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/vite_rails
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/vite_rails/tree/vite_hanami@0.5.0/vite_hanami
90
- changelog_uri: https://github.com/ElMassimo/vite_rails/blob/vite_hanami@0.5.0/vite_hanami/CHANGELOG.md
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: