svelte-on-rails 0.0.15 → 0.0.16
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/README.md +3 -0
- data/lib/tasks/svelte_on_rails_tasks.rake +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 677cbdec13a7a29dad5a6601755976aebce32a9cd5d4d132d62682650887b81d
|
4
|
+
data.tar.gz: 3cd12a78ff280021ff44ba0bc29371a3268a4b50de93264f9388925cc6fdad21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 289186502e09d9e27b75b17f633cd017f066470efeafcaf1c9ab979f716f60705f4b7d7505da496380171d00ef971eef14b22fcfbb83781be810732ed3f4d3dc
|
7
|
+
data.tar.gz: 620d66d405bfea65fc134c837c7832ea3c7dae6c566aaedea3431a2ebb8906700a9255afd088ff65ab607ea5789132760c2b12f3b3e2c4676ce36a6ecf540747
|
data/README.md
CHANGED
@@ -39,7 +39,10 @@ If you have issues, please open one and contributors are welcome!
|
|
39
39
|
If you want to start from a new rails app, follow theese tutorials
|
40
40
|
|
41
41
|
- [Create a new rails app with vite_rails](https://dev.to/chmich/setup-vite-on-rails-7-f1i)
|
42
|
+
- create a controller and a view and you should see `Vite ⚡️ Rails` on the browser console.
|
43
|
+
- make sure vite is on its latest version, sometimes you have to `npm i vite@latest`
|
42
44
|
- [Setup Svelte](https://dev.to/chmich/setup-inertia-and-svelte-on-rails-7-3glk)
|
45
|
+
- and restart the app
|
43
46
|
|
44
47
|
## Installation
|
45
48
|
|
@@ -49,7 +49,7 @@ namespace :svelte_on_rails do
|
|
49
49
|
package_name = "@hotwired/turbo-rails"
|
50
50
|
file_content = File.exist?(pkg_js) ? File.read(pkg_js) : ""
|
51
51
|
|
52
|
-
if file_content.match?(/#{
|
52
|
+
if file_content.match?(/#{package_name}/)
|
53
53
|
puts "#{package_name} is already installed."
|
54
54
|
else
|
55
55
|
puts "Installing #{package_name} via npm..."
|