jekyll-vite 1.0.1 → 3.0.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 +4 -0
- data/exe/jekyll-vite +23 -0
- data/lib/jekyll/vite/installation.rb +5 -0
- data/lib/jekyll/vite/version.rb +1 -1
- data/templates/exe/dev +10 -0
- metadata +13 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbf7757c7c7f006a3d527d48a737b6d81424e8b10c0456c0ae3bddfc6ce029ec
|
4
|
+
data.tar.gz: 422332db0c1aa8a56eb7b33e629e6aac83557a966f306eacb51b39aab6147b6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f88640e72373df9c37dfd51d2580628f43ee4f029fc0f3f5fc21220a1e66026a0a3ca9e81b9fa7f56494be737ee28824d212b0e387f9b896aa7ae8e4357e095
|
7
|
+
data.tar.gz: 1d0a1000a88479505fac4d1bb612640850769b1ebcf8ea9207aa0404b61edc58ad151e7f64dae6c2fe9ff35de7a989e2898f711f4d9f3ee094c6b7f773452bd4
|
data/CHANGELOG.md
CHANGED
data/exe/jekyll-vite
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require 'bundler/setup'
|
5
|
+
require 'socket'
|
6
|
+
require 'vite_ruby'
|
7
|
+
|
8
|
+
def wait_for_dev_server(timeout_at:)
|
9
|
+
while Time.now <= timeout_at
|
10
|
+
return if ViteRuby.instance.dev_server_running?
|
11
|
+
|
12
|
+
sleep 1
|
13
|
+
end
|
14
|
+
raise "Timeout: vite dev server is not running on #{ ViteRuby.config.host_with_port }"
|
15
|
+
end
|
16
|
+
|
17
|
+
case cmd = ARGV[0]
|
18
|
+
when 'wait'
|
19
|
+
puts 'Waiting for vite dev server to start'
|
20
|
+
wait_for_dev_server(timeout_at: Time.now + (ENV['VITE_TIMEOUT'] || 10).to_i)
|
21
|
+
else
|
22
|
+
raise ArgumentError, "unknown command #{ cmd.inspect }"
|
23
|
+
end
|
@@ -10,6 +10,10 @@ module Jekyll::Vite::Installation
|
|
10
10
|
# Override: Setup a typical Jekyll site to use Vite.
|
11
11
|
def setup_app_files
|
12
12
|
cp JEKYLL_TEMPLATES.join('config/jekyll-vite.json'), config.config_path
|
13
|
+
append root.join('Procfile.dev'), 'jekyll: bin/jekyll-vite wait && bundle exec jekyll serve --livereload'
|
14
|
+
cp JEKYLL_TEMPLATES.join('exe/dev'), root.join('exe/dev')
|
15
|
+
`bundle binstub jekyll-vite --path #{ root.join('bin') }`
|
16
|
+
`bundle config --delete bin`
|
13
17
|
append root.join('Rakefile'), <<~RAKE
|
14
18
|
require 'jekyll/vite'
|
15
19
|
ViteRuby.install_tasks
|
@@ -25,6 +29,7 @@ module Jekyll::Vite::Installation
|
|
25
29
|
- config
|
26
30
|
- vite.config.ts
|
27
31
|
- tmp
|
32
|
+
- Procfile.dev
|
28
33
|
YML
|
29
34
|
inject_line_before root.join('_layouts/default.html'), '</head>', <<-HTML.chomp("\n")
|
30
35
|
{% vite_client_tag %}
|
data/lib/jekyll/vite/version.rb
CHANGED
data/templates/exe/dev
ADDED
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:
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Máximo Mussini
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -34,22 +34,16 @@ dependencies:
|
|
34
34
|
name: vite_ruby
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: 1.2.14
|
40
|
-
- - "<"
|
37
|
+
- - "~>"
|
41
38
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
39
|
+
version: '3.0'
|
43
40
|
type: :runtime
|
44
41
|
prerelease: false
|
45
42
|
version_requirements: !ruby/object:Gem::Requirement
|
46
43
|
requirements:
|
47
|
-
- - "
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: 1.2.14
|
50
|
-
- - "<"
|
44
|
+
- - "~>"
|
51
45
|
- !ruby/object:Gem::Version
|
52
|
-
version: '
|
46
|
+
version: '3.0'
|
53
47
|
- !ruby/object:Gem::Dependency
|
54
48
|
name: pry-byebug
|
55
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -123,13 +117,15 @@ dependencies:
|
|
123
117
|
description:
|
124
118
|
email:
|
125
119
|
- maximomussini@gmail.com
|
126
|
-
executables:
|
120
|
+
executables:
|
121
|
+
- jekyll-vite
|
127
122
|
extensions: []
|
128
123
|
extra_rdoc_files: []
|
129
124
|
files:
|
130
125
|
- CHANGELOG.md
|
131
126
|
- LICENSE.txt
|
132
127
|
- README.md
|
128
|
+
- exe/jekyll-vite
|
133
129
|
- lib/jekyll/vite.rb
|
134
130
|
- lib/jekyll/vite/config.rb
|
135
131
|
- lib/jekyll/vite/generator.rb
|
@@ -138,12 +134,13 @@ files:
|
|
138
134
|
- lib/jekyll/vite/tags.rb
|
139
135
|
- lib/jekyll/vite/version.rb
|
140
136
|
- templates/config/jekyll-vite.json
|
137
|
+
- templates/exe/dev
|
141
138
|
homepage: https://github.com/ElMassimo/jekyll-vite
|
142
139
|
licenses:
|
143
140
|
- MIT
|
144
141
|
metadata:
|
145
|
-
source_code_uri: https://github.com/ElMassimo/jekyll-vite/tree/
|
146
|
-
changelog_uri: https://github.com/ElMassimo/jekyll-vite/blob/
|
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
|
147
144
|
post_install_message:
|
148
145
|
rdoc_options: []
|
149
146
|
require_paths:
|