jekyll-vite 3.0.1 → 3.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fbf7757c7c7f006a3d527d48a737b6d81424e8b10c0456c0ae3bddfc6ce029ec
4
- data.tar.gz: 422332db0c1aa8a56eb7b33e629e6aac83557a966f306eacb51b39aab6147b6c
3
+ metadata.gz: b8d6a36d2e3d0a3fa996320b0a9b78da70936ea0f5f756ce00add44373d7c6b1
4
+ data.tar.gz: 0e8b47814a4127cd75b63ca952fa938867b770df5132cb2561065195fd1dbd42
5
5
  SHA512:
6
- metadata.gz: 3f88640e72373df9c37dfd51d2580628f43ee4f029fc0f3f5fc21220a1e66026a0a3ca9e81b9fa7f56494be737ee28824d212b0e387f9b896aa7ae8e4357e095
7
- data.tar.gz: 1d0a1000a88479505fac4d1bb612640850769b1ebcf8ea9207aa0404b61edc58ad151e7f64dae6c2fe9ff35de7a989e2898f711f4d9f3ee094c6b7f773452bd4
6
+ metadata.gz: 927085e4aded8588f0fac8b81462855b81de335be25e12baee9f3904a88fe83c589afbb17e2840396a40f3679411e5ae621a9e11294a169fd4b88413aff1fc9c
7
+ data.tar.gz: 4342ddc749b0611859214bab9bc18cbc1b59085fc489adcf3111adb267f55bdc6cdfda370b4f3e5b6b59c571ffebd4ac3dcf97057d31c4d2bc10879e3b0527ca
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [3.0.3](https://github.com/ElMassimo/jekyll-vite/compare/v3.0.0...v3.0.3) (2021-08-16
2
+
3
+ * fix: Liquid Exception: missing keyword: :ssr (#9) ([11c10c3](https://github.com/ElMassimo/jekyll-vite/commit/11c10c3)), closes [#9](https://github.com/ElMassimo/jekyll-vite/issues/9)
4
+
1
5
  # [3.0.0](https://github.com/ElMassimo/jekyll-vite/compare/v1.0.0...v3.0.0) (2021-08-16)
2
6
 
3
7
  See ElMassimo/vite_ruby/pull/116 for features and breaking changes.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <h1 align="center">
2
2
  <a href="https://jekyll-vite.netlify.app/">
3
- <img src="https://raw.githubusercontent.com/ElMassimo/vite_ruby/main/docs/public/logo.svg" width="120px"/>
3
+ <img src="https://raw.githubusercontent.com/ElMassimo/vite_ruby/main/logo.svg" width="120px"/>
4
4
  </a>
5
5
 
6
6
  <br>
@@ -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
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'rack'
4
+ require 'rackup'
4
5
  require 'jekyll/commands/serve/servlet'
5
6
 
6
7
  # Internal: Extend the default servlet to add a Rack-based proxy in order to
@@ -45,7 +46,7 @@ private
45
46
  proxy = ViteRuby::DevServerProxy.new(app)
46
47
 
47
48
  # Return a servlet compliant with WEBrick.
48
- Rack::Handler::WEBrick.new(@server, proxy)
49
+ Rackup::Handler::WEBrick.new(@server, proxy)
49
50
  end
50
51
  end
51
52
  end
@@ -73,7 +73,7 @@ protected
73
73
  # Internal: Adding the last build metadata file as a dependency ensures
74
74
  # all pages using Vite assets are regenerated if a Vite build is triggered.
75
75
  def last_build_metadata_path
76
- ViteRuby.instance.builder.send(:last_build_path)
76
+ ViteRuby.instance.builder.send(:last_build_path, ssr: false)
77
77
  end
78
78
  end
79
79
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Vite
5
- VERSION = '3.0.1'
5
+ VERSION = '3.0.4'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
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.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Máximo Mussini
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-10-31 00:00:00.000000000 Z
11
+ date: 2022-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -30,20 +30,34 @@ dependencies:
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '5'
33
+ - !ruby/object:Gem::Dependency
34
+ name: rackup
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '0.2'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '0.2'
33
47
  - !ruby/object:Gem::Dependency
34
48
  name: vite_ruby
35
49
  requirement: !ruby/object:Gem::Requirement
36
50
  requirements:
37
51
  - - "~>"
38
52
  - !ruby/object:Gem::Version
39
- version: '3.0'
53
+ version: '3.2'
40
54
  type: :runtime
41
55
  prerelease: false
42
56
  version_requirements: !ruby/object:Gem::Requirement
43
57
  requirements:
44
58
  - - "~>"
45
59
  - !ruby/object:Gem::Version
46
- version: '3.0'
60
+ version: '3.2'
47
61
  - !ruby/object:Gem::Dependency
48
62
  name: pry-byebug
49
63
  requirement: !ruby/object:Gem::Requirement
@@ -139,8 +153,8 @@ homepage: https://github.com/ElMassimo/jekyll-vite
139
153
  licenses:
140
154
  - MIT
141
155
  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
156
+ source_code_uri: https://github.com/ElMassimo/jekyll-vite/tree/v3.0.4
157
+ changelog_uri: https://github.com/ElMassimo/jekyll-vite/blob/v3.0.4/CHANGELOG.md
144
158
  post_install_message:
145
159
  rdoc_options: []
146
160
  require_paths:
@@ -156,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
170
  - !ruby/object:Gem::Version
157
171
  version: '0'
158
172
  requirements: []
159
- rubygems_version: 3.1.4
173
+ rubygems_version: 3.2.32
160
174
  signing_key:
161
175
  specification_version: 4
162
176
  summary: Use Vite.js in Jekyll and enjoy a modern assets pipeline