vite_rails 2.0.5 → 2.0.6
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/vite_rails/installation.rb +9 -0
- data/lib/vite_rails/version.rb +1 -1
- data/templates/entrypoints/application.js +8 -0
- 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: cb3c710a8f422261f267b758138a55eb592b02f97cb7de4714fd35956a40d140
|
|
4
|
+
data.tar.gz: 4ed1b9749d4759d6b3132829a6b1ebb1bd2617b7d2988fc8e812745f4428dec0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dfc702ca803be23639a8a3d3d9a5968846bb07b6b659a4b1d388de5bb92d788c3c903cc7f7f680a6e5a6760418b3bb0484ecda14ebc36be664ba76b9279c3a58
|
|
7
|
+
data.tar.gz: b46ce36b00362b4c47f009f1cbda0c789e0b59db4c819d0b9f5d286549757e6a4f4fd3fc0165b316d72cd127070a376295e4c9312800333c119170890b0fc4a5
|
data/CHANGELOG.md
CHANGED
|
@@ -44,6 +44,15 @@ module ViteRails::Installation
|
|
|
44
44
|
inject_line_before layout_file, '</head>', <<-HTML
|
|
45
45
|
<%= vite_client_tag %>
|
|
46
46
|
<%= vite_javascript_tag 'application' %>
|
|
47
|
+
<!--
|
|
48
|
+
If using a TypeScript entrypoint file:
|
|
49
|
+
vite_typescript_tag 'application'
|
|
50
|
+
|
|
51
|
+
If using a .jsx or .tsx entrypoint, add the extension:
|
|
52
|
+
vite_javascript_tag 'application.jsx'
|
|
53
|
+
|
|
54
|
+
Visit the guide for more information: https://vite-ruby.netlify.app/guide/rails
|
|
55
|
+
-->
|
|
47
56
|
HTML
|
|
48
57
|
end
|
|
49
58
|
end
|
data/lib/vite_rails/version.rb
CHANGED
|
@@ -5,6 +5,14 @@
|
|
|
5
5
|
// <%= vite_javascript_tag 'application' %>
|
|
6
6
|
console.log('Vite ⚡️ Rails')
|
|
7
7
|
|
|
8
|
+
// If using a TypeScript entrypoint file:
|
|
9
|
+
// <%= vite_typecript_tag 'application.jsx' %>
|
|
10
|
+
//
|
|
11
|
+
// If you want to use .jsx or .tsx, add the extension:
|
|
12
|
+
// <%= vite_javascript_tag 'application.jsx' %>
|
|
13
|
+
|
|
14
|
+
console.log('Visit the guide for more information: ', 'https://vite-ruby.netlify.app/guide/rails')
|
|
15
|
+
|
|
8
16
|
// Example: Load Rails libraries in Vite.
|
|
9
17
|
//
|
|
10
18
|
// import '@rails/ujs'
|
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.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Máximo Mussini
|
|
@@ -81,8 +81,8 @@ homepage: https://github.com/ElMassimo/vite_ruby
|
|
|
81
81
|
licenses:
|
|
82
82
|
- MIT
|
|
83
83
|
metadata:
|
|
84
|
-
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@2.0.
|
|
85
|
-
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@2.0.
|
|
84
|
+
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@2.0.6/vite_rails
|
|
85
|
+
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@2.0.6/vite_rails/CHANGELOG.md
|
|
86
86
|
post_install_message:
|
|
87
87
|
rdoc_options: []
|
|
88
88
|
require_paths:
|