svelte-on-rails 1.0.2 → 1.0.3
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 +32 -1
- data/lib/tasks/svelte_on_rails_tasks.rake +0 -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: f2121111d74eaad3c6860fb874a038bc1c45391b87caad1dc183309f078cc3f6
|
4
|
+
data.tar.gz: 9fb8b1e68897f7d058e73c924320e13b3601c70fe37d4077bffbd0e02317544a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99e3cd5d5da270bfe4458c05d52ff67e351606c20db9db8423b214ca67b2e49ae00554f5c4226b0117f6583ed079384fbe527f1f0a5031b46fbc6cd640d7439f
|
7
|
+
data.tar.gz: af721320b1380e48eb0c0e4aeec447c419d186a70c0ac25003bb0424cb18d4351241725ed9aee7b6bce7530c7db1b540af931e27ef7d01010f039085fbfcc07b
|
data/README.md
CHANGED
@@ -1,4 +1,35 @@
|
|
1
|
-
|
1
|
+
<div style="text-align: center;">
|
2
|
+
<img src="./Svelte_Logo.svg.png" alt="Svelte Logo" height="120">
|
3
|
+
</div>
|
4
|
+
|
5
|
+
---
|
6
|
+
|
7
|
+
Svelte is the missing peace for ambitious Rails applications.
|
8
|
+
|
9
|
+
# Why?
|
10
|
+
|
11
|
+
On every app there are parts where you want it to shine. This is where Svelte comes in.
|
12
|
+
|
13
|
+
- Works perfectly with Hotwired/Turbo
|
14
|
+
- Perfect addition to Stimulus
|
15
|
+
- Easy to learn
|
16
|
+
- Powerful
|
17
|
+
- **Compared to Stimulus**
|
18
|
+
- No more writing double logic of the initial HTML state
|
19
|
+
- Stimulus is good for parts where you have simple and little javascript and lots of html
|
20
|
+
- The more complexity, the more you will love svelte
|
21
|
+
- **Compared to React**
|
22
|
+
- No Shadow dom
|
23
|
+
- Slimmer packages
|
24
|
+
- Easier to learn
|
25
|
+
- Faster
|
26
|
+
|
27
|
+
Have a look at this entertaining video [rethinking reactivity](https://svelte.dev/blog/svelte-3-rethinking-reactivity)
|
28
|
+
by Rich Harris, especially from 3:50 to 6:40 and his comparison to react.
|
29
|
+
|
30
|
+
This all fits perfectly with the Rails way of minimalist javascript, but: Where we need it, we have it.
|
31
|
+
|
32
|
+
# Svelte on Rails 👍
|
2
33
|
|
3
34
|
Rock-solid and seamless integration of Svelte Components into Rails views, based on `vite_rails`.
|
4
35
|
|
@@ -12,7 +12,6 @@ if defined?(Rails) && Rake::Task.task_defined?("assets:precompile")
|
|
12
12
|
end
|
13
13
|
|
14
14
|
|
15
|
-
require_relative '../../spec/test_helpers'
|
16
15
|
require_relative '../../lib/svelte_on_rails/installer/hello_world'
|
17
16
|
require_relative '../../lib/generators/svelte_on_rails/install/install_generator'
|
18
17
|
|