vite_rails 2.0.1 → 2.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 +4 -0
- data/lib/vite_rails/installation.rb +6 -1
- data/lib/vite_rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3af3f9fbccd64b18370496ed29bf4314468c29c3cc357439686dca4cb2d7b583
|
4
|
+
data.tar.gz: 1ff2bff5ec79f12b1fa6b08822327b1402900833c9331746427d973d997f7470
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eea23ceec95f3a623a2812a81f28738343e79d43bdf80581a2dbcb8a4e1e2aa95a93b33de17e25170b037695a775a386ad7c151885ba9dd27c398b772b9caf8a
|
7
|
+
data.tar.gz: 5eeb0f3be3d39d8e03b4e9870ac52777641010c672061cf7033ade3120560a0feaf0b9f0755b0136801b8cea44cdb780b24ec8f72e5866a282a4b54a7cceea9d
|
data/CHANGELOG.md
CHANGED
@@ -10,6 +10,9 @@ module ViteRails::Installation
|
|
10
10
|
# Override: Setup a typical apps/web Hanami app to use Vite.
|
11
11
|
def setup_app_files
|
12
12
|
cp RAILS_TEMPLATES.join('config/rails-vite.json'), config.config_path
|
13
|
+
if root.join('app/javascript').exist?
|
14
|
+
Dry::CLI::Utils::Files.replace_first_line config.config_path, 'app/frontend', %( "sourceCodeDir": "app/javascript",)
|
15
|
+
end
|
13
16
|
setup_content_security_policy root.join('config/initializers/content_security_policy.rb')
|
14
17
|
end
|
15
18
|
|
@@ -33,7 +36,9 @@ module ViteRails::Installation
|
|
33
36
|
|
34
37
|
# Override: Create a sample JS file and attempt to inject it in an HTML template.
|
35
38
|
def install_sample_files
|
36
|
-
|
39
|
+
unless config.resolved_entrypoints_dir.join('application.js').exist?
|
40
|
+
cp RAILS_TEMPLATES.join('entrypoints/application.js'), config.resolved_entrypoints_dir.join('application.js')
|
41
|
+
end
|
37
42
|
|
38
43
|
if (layout_file = root.join('app/views/layouts/application.html.erb')).exist?
|
39
44
|
inject_line_before layout_file, '</head>', <<-HTML
|
data/lib/vite_rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vite_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Máximo Mussini
|
@@ -118,8 +118,8 @@ homepage: https://github.com/ElMassimo/vite_ruby
|
|
118
118
|
licenses:
|
119
119
|
- MIT
|
120
120
|
metadata:
|
121
|
-
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@2.0.
|
122
|
-
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@2.0.
|
121
|
+
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@2.0.2/vite_rails
|
122
|
+
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@2.0.2/vite_rails/CHANGELOG.md
|
123
123
|
post_install_message:
|
124
124
|
rdoc_options: []
|
125
125
|
require_paths:
|