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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af8d4bb8fb9c9601a9aaf54fedf5e7f419ce3320b1f729fd35032e10fe3486cf
4
- data.tar.gz: 6fea536491f0493e574a0432a7a2b9f2bbf2d28b8e0dab806585695da011d212
3
+ metadata.gz: f2121111d74eaad3c6860fb874a038bc1c45391b87caad1dc183309f078cc3f6
4
+ data.tar.gz: 9fb8b1e68897f7d058e73c924320e13b3601c70fe37d4077bffbd0e02317544a
5
5
  SHA512:
6
- metadata.gz: ec46124593dc6d40cf8ea051872746bc7070d9e2adec974c1ca7910645030e6324c5f7a280264cef4289dd99fdf60b1dd201291bae55e2aea01189bf5d6ec2fa
7
- data.tar.gz: c7f5a5a822fc1e1f5cb961dcd4158808fdcc1ee8303ba5e2fc0d4a0c52f50cd4abe1fa8b426ea43798bdc4daa777b6fd3165c2f65057471a504fbc46cbba34d9
6
+ metadata.gz: 99e3cd5d5da270bfe4458c05d52ff67e351606c20db9db8423b214ca67b2e49ae00554f5c4226b0117f6583ed079384fbe527f1f0a5031b46fbc6cd640d7439f
7
+ data.tar.gz: af721320b1380e48eb0c0e4aeec447c419d186a70c0ac25003bb0424cb18d4351241725ed9aee7b6bce7530c7db1b540af931e27ef7d01010f039085fbfcc07b
data/README.md CHANGED
@@ -1,4 +1,35 @@
1
- # Svelte on Rails
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svelte-on-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Sedlmair