jekyll-vite 3.0.1 → 3.0.2

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: fbf7757c7c7f006a3d527d48a737b6d81424e8b10c0456c0ae3bddfc6ce029ec
4
- data.tar.gz: 422332db0c1aa8a56eb7b33e629e6aac83557a966f306eacb51b39aab6147b6c
3
+ metadata.gz: 7ed9ebef8d09568a45a48b58c5c014e772a982a7e0f40c1f2c0be287534c5ea1
4
+ data.tar.gz: 8ab180969518c5a1c1f4cb8617047ab252f9990ae0734d9fc1e53e472b3b1385
5
5
  SHA512:
6
- metadata.gz: 3f88640e72373df9c37dfd51d2580628f43ee4f029fc0f3f5fc21220a1e66026a0a3ca9e81b9fa7f56494be737ee28824d212b0e387f9b896aa7ae8e4357e095
7
- data.tar.gz: 1d0a1000a88479505fac4d1bb612640850769b1ebcf8ea9207aa0404b61edc58ad151e7f64dae6c2fe9ff35de7a989e2898f711f4d9f3ee094c6b7f773452bd4
6
+ metadata.gz: 2a040da2e2fe8b234a5cd0e07fad55dc69e7e57dabd6f5333204102dd55636ef7ddfd139e36f5bf154dda6400a39807f3b964aa8b40c13413fd1d8dc6c923fba
7
+ data.tar.gz: df3b0e91b365aab5afe58ae8d3c6866a3ee744ba0dd3cec103544291e0cd00bebc61ca5fcb30fc51f8dd4d6cc2db06e599bee1f7aca69510f50b63753d732628
@@ -24,6 +24,7 @@ module Jekyll::Vite::Installation
24
24
  def install_sample_files
25
25
  super
26
26
  inject_line_after_last root.join('_config.yml'), 'plugins:', ' - jekyll/vite'
27
+ replace_first_line root.join('_config.yml'), '# exclude:', 'exclude:'
27
28
  inject_line_after_last root.join('_config.yml'), 'exclude:', <<-YML.chomp("\n")
28
29
  - bin
29
30
  - config
@@ -31,7 +32,15 @@ module Jekyll::Vite::Installation
31
32
  - tmp
32
33
  - Procfile.dev
33
34
  YML
34
- inject_line_before root.join('_layouts/default.html'), '</head>', <<-HTML.chomp("\n")
35
+ if root.join('Gemfile').read.include?('minima')
36
+ append root.join('_includes/custom-head.html'), helper_tags
37
+ else
38
+ inject_line_before root.join('_layouts/default.html'), '</head>', helper_tags
39
+ end
40
+ end
41
+
42
+ def helper_tags
43
+ <<-HTML.chomp("\n")
35
44
  {% vite_client_tag %}
36
45
  {% vite_javascript_tag application %}
37
46
  HTML
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Vite
5
- VERSION = '3.0.1'
5
+ VERSION = '3.0.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-vite
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Máximo Mussini
@@ -139,8 +139,8 @@ homepage: https://github.com/ElMassimo/jekyll-vite
139
139
  licenses:
140
140
  - MIT
141
141
  metadata:
142
- source_code_uri: https://github.com/ElMassimo/jekyll-vite/tree/v3.0.1
143
- changelog_uri: https://github.com/ElMassimo/jekyll-vite/blob/v3.0.1/CHANGELOG.md
142
+ source_code_uri: https://github.com/ElMassimo/jekyll-vite/tree/v3.0.2
143
+ changelog_uri: https://github.com/ElMassimo/jekyll-vite/blob/v3.0.2/CHANGELOG.md
144
144
  post_install_message:
145
145
  rdoc_options: []
146
146
  require_paths: