vite_ruby 3.0.0.beta.3 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +37 -0
- data/default.vite.json +2 -1
- data/lib/vite_ruby/cli/build.rb +1 -0
- data/lib/vite_ruby/commands.rb +2 -1
- data/lib/vite_ruby/version.rb +3 -3
- data/lib/vite_ruby.rb +2 -1
- data/templates/config/vite.json +2 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23aa04b92951f5416f6c6efdab61f834a69893c5890196181ed3533e3495a1dc
|
4
|
+
data.tar.gz: bc3926785ea462a5f3ac9bb3fa216d2c74eb7997b30ee8be6aeb5191de43a4c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afa2927630c8005cd0510cac26355379870ef0b5c6df0058e4ea337cdd0b0b077c2d847dafb73832fc2290a567fe82dbb955adbf4aa3e5865bc3db80e561a337
|
7
|
+
data.tar.gz: 118cadf8125ef8759fa7251fe8cef36429c498b3ec802d0862e66a716576e7ec5caf7c46e99e49d58f7ed78479ddd740d58df6f3bb0b5028ffe9028c3042ad79
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,40 @@
|
|
1
|
+
## [3.0.3](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.0.2...vite_ruby@3.0.3) (2021-12-09)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* ensure bundler does not keep generating binstubs ([0dc133a](https://github.com/ElMassimo/vite_ruby/commit/0dc133a23f6caa5526fc071e0afd98f91fc1f9f6))
|
7
|
+
* explicitly require socket to enable usage in bare ruby ([cf22165](https://github.com/ElMassimo/vite_ruby/commit/cf22165fa3cc58df4c52bed154372abef4f3eff1))
|
8
|
+
|
9
|
+
|
10
|
+
### Features
|
11
|
+
|
12
|
+
* add 'base' setting ([#152](https://github.com/ElMassimo/vite_ruby/issues/152)) ([fb7642f](https://github.com/ElMassimo/vite_ruby/commit/fb7642f849b7fe879c02e543962a72dcc1b1c48c))
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
## [3.0.2](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.0.1...vite_ruby@3.0.2) (2021-10-29)
|
17
|
+
|
18
|
+
|
19
|
+
### Features
|
20
|
+
|
21
|
+
* enable hmr when running tests in development with vite dev server ([e253bba](https://github.com/ElMassimo/vite_ruby/commit/e253bba26d164aabc7a9526df504c207ad2cf6f9))
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
## [3.0.1](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.0.0...vite_ruby@3.0.1) (2021-10-27)
|
26
|
+
|
27
|
+
|
28
|
+
### Features
|
29
|
+
|
30
|
+
* expose the `--watch` flag for the build command ([4e20d0a](https://github.com/ElMassimo/vite_ruby/commit/4e20d0a7b697b535e13335dac5a75fb8a193a133))
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
# [3.0.0](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@1.2.20...vite_ruby@3.0.0) (2021-08-16)
|
35
|
+
|
36
|
+
See https://github.com/ElMassimo/vite_ruby/pull/116 for features and breaking changes.
|
37
|
+
|
1
38
|
## [1.2.20](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@1.2.18...vite_ruby@1.2.20) (2021-07-30)
|
2
39
|
|
3
40
|
|
data/default.vite.json
CHANGED
data/lib/vite_ruby/cli/build.rb
CHANGED
@@ -6,6 +6,7 @@ class ViteRuby::CLI::Build < ViteRuby::CLI::Vite
|
|
6
6
|
desc 'Bundle all entrypoints using Vite.'
|
7
7
|
shared_options
|
8
8
|
option(:force, desc: 'Force the build even if assets have not changed', type: :boolean)
|
9
|
+
option(:watch, desc: 'Start the Rollup watcher and rebuild on files changes', type: :boolean)
|
9
10
|
|
10
11
|
def call(**options)
|
11
12
|
super { |args| ViteRuby.commands.build_from_task(*args) }
|
data/lib/vite_ruby/commands.rb
CHANGED
@@ -63,6 +63,7 @@ class ViteRuby::Commands
|
|
63
63
|
# Internal: Installs the binstub for the CLI in the appropriate path.
|
64
64
|
def install_binstubs
|
65
65
|
`bundle binstub vite_ruby --path #{ config.root.join('bin') }`
|
66
|
+
`bundle config --delete bin`
|
66
67
|
end
|
67
68
|
|
68
69
|
# Internal: Verifies if ViteRuby is properly installed.
|
@@ -71,7 +72,7 @@ class ViteRuby::Commands
|
|
71
72
|
warn <<~WARN
|
72
73
|
|
73
74
|
vite binstub not found.
|
74
|
-
Have you run `bundle binstub
|
75
|
+
Have you run `bundle binstub vite_ruby`?
|
75
76
|
Make sure the bin directory and bin/vite are not included in .gitignore
|
76
77
|
WARN
|
77
78
|
end
|
data/lib/vite_ruby/version.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
class ViteRuby
|
4
|
-
VERSION = '3.0.
|
4
|
+
VERSION = '3.0.3'
|
5
5
|
|
6
6
|
# Internal: Versions used by default when running `vite install`.
|
7
|
-
DEFAULT_VITE_VERSION = '^2.
|
8
|
-
DEFAULT_PLUGIN_VERSION = '^3.0.
|
7
|
+
DEFAULT_VITE_VERSION = '^2.6.13'
|
8
|
+
DEFAULT_PLUGIN_VERSION = '^3.0.2'
|
9
9
|
end
|
data/lib/vite_ruby.rb
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
require 'logger'
|
4
4
|
require 'forwardable'
|
5
5
|
require 'pathname'
|
6
|
+
require 'socket'
|
6
7
|
|
7
8
|
require 'zeitwerk'
|
8
9
|
loader = Zeitwerk::Loader.for_gem
|
@@ -97,7 +98,7 @@ class ViteRuby
|
|
97
98
|
|
98
99
|
# Public: The proxy for assets should only run in development mode.
|
99
100
|
def run_proxy?
|
100
|
-
config.mode == 'development'
|
101
|
+
config.mode == 'development' || (config.mode == 'test' && !ENV['CI'])
|
101
102
|
rescue StandardError => error
|
102
103
|
logger.error("Failed to check mode for Vite: #{ error.message }")
|
103
104
|
false
|
data/templates/config/vite.json
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vite_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.3
|
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-
|
11
|
+
date: 2021-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-cli
|
@@ -201,8 +201,8 @@ homepage: https://github.com/ElMassimo/vite_ruby
|
|
201
201
|
licenses:
|
202
202
|
- MIT
|
203
203
|
metadata:
|
204
|
-
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_ruby@3.0.
|
205
|
-
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_ruby@3.0.
|
204
|
+
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_ruby@3.0.3/vite_ruby
|
205
|
+
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_ruby@3.0.3/vite_ruby/CHANGELOG.md
|
206
206
|
post_install_message: "Thanks for installing Vite Ruby!\n\nIf you upgraded the gem
|
207
207
|
manually, please run:\n\tbundle exec vite upgrade"
|
208
208
|
rdoc_options: []
|
@@ -215,9 +215,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
215
215
|
version: '2.4'
|
216
216
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
217
|
requirements:
|
218
|
-
- - "
|
218
|
+
- - ">="
|
219
219
|
- !ruby/object:Gem::Version
|
220
|
-
version:
|
220
|
+
version: '0'
|
221
221
|
requirements: []
|
222
222
|
rubygems_version: 3.1.4
|
223
223
|
signing_key:
|