vite_rails 3.0.0.beta.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +23 -0
- data/lib/vite_rails/installation.rb +2 -1
- data/lib/vite_rails/version.rb +1 -1
- data/templates/Procfile.dev +1 -0
- data/templates/config/rails-vite.json +2 -1
- data/templates/entrypoints/application.js +1 -1
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ede7e994b9efc576479fa558cef2b7394becd3da260caec53765e692e0df1301
|
4
|
+
data.tar.gz: 3a999d199170c26c1e8a7764f125209cf3ead26231a14117c517f8b090c42b43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 867c4c13da0539166d095dc3cf7bbb52a6d154bbcedf06b93a6136cf40192323d1d6cd1d528b5144a39e6bd363efa33045a650c9d48ad7a9192f2aad1b533f93
|
7
|
+
data.tar.gz: a93704d6f78a297d00285e9f4b56bd8f6694486a0e451de88fefb44a9fed11c385b74a5b0639ad6d2c1c18e5bebd06eb874745a912b1b1031209ffaf14f1ce4c
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,26 @@
|
|
1
|
+
## [3.0.2](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.1...vite_rails@3.0.2) (2021-12-12)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* add variable declaration to import.meta.globEager (close [#154](https://github.com/ElMassimo/vite_ruby/issues/154)) ([#155](https://github.com/ElMassimo/vite_ruby/issues/155)) ([9ada2e8](https://github.com/ElMassimo/vite_ruby/commit/9ada2e87c68899e8e1bad368c875f8214036abcc))
|
7
|
+
* comment back glob import ([943e7f1](https://github.com/ElMassimo/vite_ruby/commit/943e7f1ca23a8abdee09c1495dc9e96494bc6202))
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
## [3.0.1](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.0...vite_rails@3.0.1) (2021-10-29)
|
12
|
+
|
13
|
+
|
14
|
+
### Features
|
15
|
+
|
16
|
+
* enable hmr when running tests in development with vite dev server ([e253bba](https://github.com/ElMassimo/vite_ruby/commit/e253bba26d164aabc7a9526df504c207ad2cf6f9))
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
# [3.0.0](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@2.0.13...vite_rails@3.0.0) (2021-08-16)
|
21
|
+
|
22
|
+
See https://github.com/ElMassimo/vite_ruby/pull/116 for features and breaking changes.
|
23
|
+
|
1
24
|
## [2.0.13](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@2.0.12...vite_rails@2.0.13) (2021-07-27)
|
2
25
|
|
3
26
|
|
@@ -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
|
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
|
|
data/lib/vite_rails/version.rb
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
web: bin/rails server
|
@@ -21,7 +21,7 @@ console.log('Visit the guide for more information: ', 'https://vite-ruby.netlify
|
|
21
21
|
// import ActiveStorage from '@rails/activestorage'
|
22
22
|
//
|
23
23
|
// // Import all channels.
|
24
|
-
// import.meta.globEager('./**/*_channel.js')
|
24
|
+
// const channels = import.meta.globEager('./**/*_channel.js')
|
25
25
|
//
|
26
26
|
// Turbolinks.start()
|
27
27
|
// ActiveStorage.start()
|
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: 3.0.
|
4
|
+
version: 3.0.2
|
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-
|
11
|
+
date: 2021-12-12 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:
|
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:
|
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@3.0.
|
85
|
-
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@3.0.
|
85
|
+
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@3.0.2/vite_rails
|
86
|
+
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@3.0.2/vite_rails/CHANGELOG.md
|
86
87
|
post_install_message:
|
87
88
|
rdoc_options: []
|
88
89
|
require_paths:
|
@@ -94,9 +95,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
94
95
|
version: '2.5'
|
95
96
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
97
|
requirements:
|
97
|
-
- - "
|
98
|
+
- - ">="
|
98
99
|
- !ruby/object:Gem::Version
|
99
|
-
version:
|
100
|
+
version: '0'
|
100
101
|
requirements: []
|
101
102
|
rubygems_version: 3.1.4
|
102
103
|
signing_key:
|