vite_rails 2.0.13 → 3.0.1

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: 7aeccc7a6aac7af8b23fcd39f6da48291af50b447f6b3e6caeb29edbf19cea55
4
- data.tar.gz: 555f0684fc6c3eb369a047913d7b91228796913fa6950a1ed5c2182d5ad60de0
3
+ metadata.gz: 40fa20a6ed4f4f708d760086d15701248d753b46efc4eb679898b9c48602fe2c
4
+ data.tar.gz: b38147a758c90a6e08d3b6176010de06e6b23ae82ec55b32b1e955fcafbd3c67
5
5
  SHA512:
6
- metadata.gz: ccfbfb3a9d5e9f5342229db3d80debacb9630691d8ecc0d01911ed8c4471d8ff84caa906e9a0bb7c9056b012537b4b1134cef785674245bbbeafad6ab5470e8d
7
- data.tar.gz: 842435df00161005d1ffbf1f7862c638befde2498382af4b8e916f7cae15e7d5016a63394ec7a043da4d5aaf690e255a199095f65c6424f43aee7888974b6bc0
6
+ metadata.gz: c5ba249f0d931e15ec99c5139cb90ad46d3e20429a81335e3e0eaa13bae02bacf4b181fc0c4dc7ca510ba31160addf5166a4407264242da01dd312d92ecf65f7
7
+ data.tar.gz: 3c3dd21dfdd38aa7f204b9857d6a8191b05382a7a8cf32c2470943abea7b9d7812c578bd4d714c5d1197ca18cf977025080fd14d7653fcdfe95c5c7c0aac7620
data/CHANGELOG.md CHANGED
@@ -1,3 +1,25 @@
1
+ ## [3.0.1](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.0...vite_rails@3.0.1) (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
+
10
+ # [3.0.0](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@2.0.13...vite_rails@3.0.0) (2021-08-16)
11
+
12
+ See https://github.com/ElMassimo/vite_ruby/pull/116 for features and breaking changes.
13
+
14
+ ## [2.0.13](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@2.0.12...vite_rails@2.0.13) (2021-07-27)
15
+
16
+
17
+ ### Features
18
+
19
+ * Set config.javascript_path so that zeitwerk ignores frontend files ([bab359f](https://github.com/ElMassimo/vite_ruby/commit/bab359f66a5942904e91e2a1a51b440072ba44af))
20
+
21
+
22
+
1
23
  ## [2.0.12](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@2.0.11...vite_rails@2.0.12) (2021-05-24)
2
24
 
3
25
 
@@ -14,6 +14,7 @@ module ViteRails::Installation
14
14
  replace_first_line config.config_path, 'app/frontend', %( "sourceCodeDir": "#{ dir }",)
15
15
  end
16
16
  setup_content_security_policy root.join('config/initializers/content_security_policy.rb')
17
+ append root.join('Procfile.dev'), 'web: bin/rails s'
17
18
  end
18
19
 
19
20
  # Internal: Configure CSP rules that allow to load @vite/client correctly.
@@ -30,7 +31,7 @@ module ViteRails::Installation
30
31
  CSP
31
32
  inject_line_after csp_file, 'policy.script_src', <<~CSP
32
33
  # Allow @vite/client to hot reload changes in development
33
- # policy.script_src *policy.script_src, :unsafe_eval, "http://#{ ViteRuby.config.host_with_port }" if Rails.env.development?
34
+ # policy.script_src *policy.script_src, :unsafe_eval, "http://\#{ ViteRuby.config.host_with_port }" if Rails.env.development?
34
35
  CSP
35
36
  end
36
37
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ViteRails
4
- VERSION = '2.0.13'
4
+ VERSION = '3.0.1'
5
5
  end
@@ -0,0 +1 @@
1
+ web: bin/rails server
@@ -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_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.13
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Máximo Mussini
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-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: railties
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '1.0'
39
+ version: '3.0'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '1.0'
46
+ version: '3.0'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: spring
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -75,14 +75,15 @@ files:
75
75
  - lib/vite_rails/installation.rb
76
76
  - lib/vite_rails/tag_helpers.rb
77
77
  - lib/vite_rails/version.rb
78
+ - templates/Procfile.dev
78
79
  - templates/config/rails-vite.json
79
80
  - templates/entrypoints/application.js
80
81
  homepage: https://github.com/ElMassimo/vite_ruby
81
82
  licenses:
82
83
  - MIT
83
84
  metadata:
84
- source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@2.0.13/vite_rails
85
- changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@2.0.13/vite_rails/CHANGELOG.md
85
+ source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@3.0.1/vite_rails
86
+ changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@3.0.1/vite_rails/CHANGELOG.md
86
87
  post_install_message:
87
88
  rdoc_options: []
88
89
  require_paths: