svelte-on-rails 2.0.4 → 2.1.0

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: 44a09da791796df58b0f5a1f5f6e8e0d15fed7cbfdd439b5867ff07fc55d4cd7
4
- data.tar.gz: a8ee90df7d372b9f347c3246bfb34993be0ab14503fc66523d15ceb4ec209d21
3
+ metadata.gz: 6fae4c4bf2119aa220d24e012f464136310c2409da41c1c13efd28dfc66c6221
4
+ data.tar.gz: 931d743b51f07cb28581c93f347499cca8ca4fdf31d6a8c0ac078c90f4446e11
5
5
  SHA512:
6
- metadata.gz: f378ea8a03dc734e06d97b9a085b0c589ffa314e460dd33d0000a91f77a3cfcb6ed955fc9468aa54fb202b47f166fbb76253956582e25ab6c03d4f068361b83c
7
- data.tar.gz: 7ad21772c88ea2247db56032f773fe8285decad38c093ec692fd644e47b112f8180a1deb9626917a3b4e69c0286e892fd7acb3a8db8c9ecfb53e0737babc6881
6
+ metadata.gz: 0cfc39709d7a9e4936aacba08b80d8f159146c8a58a08fe4d760bd75b311339608514fc480bf240044f872255cc3dd081fa5c6c8f5e5b787255613b70c70267f
7
+ data.tar.gz: 5b9931cd49aa1115078f8406a85e3b6c28fe3645b9414ed42ace6bc3ac561c74936b04b355ad5e68d9701c55fd3fb219bb73915e5bab819415235a73c512f8c0
data/README.md CHANGED
@@ -80,8 +80,8 @@ If you have issues, please open one, and contributors are welcome!
80
80
  - if you use special packages (like pug) that requires commonjs, you may need
81
81
  - npm on latest versions
82
82
  - node installed.
83
- - If node is not included on the PATH you can configure your node path by environment variable `SVELTE_ON_RAILS_NODE_BIN`
84
83
  - if `nvm` is installed it gets the path to the node-binary from there.
84
+ - If node is not included on the PATH you can configure your node path by environment variable `SVELTE_ON_RAILS_NODE_BIN`
85
85
 
86
86
  ## Installation from cero ⚙️
87
87
 
@@ -1,13 +1,8 @@
1
1
  if defined?(Rails) && Rake::Task.task_defined?("assets:precompile")
2
2
  Rake::Task["assets:precompile"].enhance do
3
- puts '-' * 80
4
- Dir.chdir(Rails.root) do
5
- cmd = "npm run build:ssr"
6
- puts cmd
7
- puts '-' * 80
8
- puts `#{cmd}`
9
- end
10
- puts '-' * 80
3
+ puts '---- precompile svelte components for server side rendering ----'
4
+ utils = SvelteOnRails::Lib::Utils
5
+ utils.precompile
11
6
  end
12
7
  end
13
8
 
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: 2.0.4
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Sedlmair