vite_ruby 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: 9606e4636341971487203132916240e61c6f78de01009ee2cc001ad8cc13f12a
4
- data.tar.gz: 521ccded8cafa3b17ae62408650c0673c78b1441fc669532b240555702b51642
3
+ metadata.gz: 9cdcbf5bc964a78456156b8cd05e946e9f737a20832af1077fc5821c3340b135
4
+ data.tar.gz: 87bbae5376b7873a420e802df908c8fb0f544dd18d6c7b32d9464248acf08bcd
5
5
  SHA512:
6
- metadata.gz: b903a283f653cd02e89272174d66efd5991266c174418e978ed680205ea703d2d2a9384b16a155618788eaaae3748cb900eeca5b354e3e4277de7709a7784605
7
- data.tar.gz: 60e731442205c932f7033317ea75651370474ae419d70f6204fa59059be61d54f472f583d136d93672167ac0777d049a229928f79896b6a96448525b44e5be83
6
+ metadata.gz: c7fdecb430b866c5fcfeca1b93389c35483a2937739b45cbccc15366bfe4f52792e9c3218db44357bbeaa41631894599da44ea22efcf0dcf24a00d25a1448277
7
+ data.tar.gz: d91ec79eb0d1e1f81e4eeb32d3f9a660b76ae5bdf4ed02b393a2b6289bcc2a8627ca4a6e997acd375c05c51a18910269bd01fd86cc588bbd3687aede5864017b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [3.0.2](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.0.1...vite_ruby@3.0.2) (2021-10-29)
2
+
3
+
4
+ ### Features
5
+
6
+ * enable hmr when running tests in development with vite dev server ([e253bba](https://github.com/ElMassimo/vite_ruby/commit/e253bba26d164aabc7a9526df504c207ad2cf6f9))
7
+
8
+
9
+
1
10
  ## [3.0.1](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.0.0...vite_ruby@3.0.1) (2021-10-27)
2
11
 
3
12
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ViteRuby
4
- VERSION = '3.0.1'
4
+ VERSION = '3.0.2'
5
5
 
6
6
  # Internal: Versions used by default when running `vite install`.
7
7
  DEFAULT_VITE_VERSION = '^2.6.13'
data/lib/vite_ruby.rb CHANGED
@@ -97,7 +97,7 @@ class ViteRuby
97
97
 
98
98
  # Public: The proxy for assets should only run in development mode.
99
99
  def run_proxy?
100
- config.mode == 'development'
100
+ config.mode == 'development' || (config.mode == 'test' && !ENV['CI'])
101
101
  rescue StandardError => error
102
102
  logger.error("Failed to check mode for Vite: #{ error.message }")
103
103
  false
@@ -10,6 +10,7 @@
10
10
  },
11
11
  "test": {
12
12
  "autoBuild": true,
13
- "publicOutputDir": "vite-test"
13
+ "publicOutputDir": "vite-test",
14
+ "port": 3037
14
15
  }
15
16
  }
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.1
4
+ version: 3.0.2
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-27 00:00:00.000000000 Z
11
+ date: 2021-10-29 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.1/vite_ruby
205
- changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_ruby@3.0.1/vite_ruby/CHANGELOG.md
204
+ source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_ruby@3.0.2/vite_ruby
205
+ changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_ruby@3.0.2/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: []