svelte-on-rails 2.0.3 → 2.0.5

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: 433a24cebdd461077d7c4ebd071d0f8ccfaa37bf640c38988c1a3b2e6d41b3f1
4
- data.tar.gz: 6746df6083f635e08dd27e3e94c3fa9e25dc5c26632ffabb9da65fc39364b259
3
+ metadata.gz: 81e663138175036c6169bff0342fa83ead42796a7e85ef2ad7753afc1bc48049
4
+ data.tar.gz: a3048577cb5fcc374d53163260b252e87c319d6748274ddb55dfb5582dbc11f7
5
5
  SHA512:
6
- metadata.gz: 57ad22eb8057a368e49653eeb1b9f6abce0151b137c2d8f45c59ec702a14471a1da30b9e265bbac5d5f86a0658849fb18cf338515f05d9d9880f0d5897fbf57b
7
- data.tar.gz: cdca6d74748f650862b5a815e3d7c90d1863b501582128d182578888092c003190b4a1a80893ffcd20e2acd27c6f0ac0b0b06e47efc80541b9e4eeb2cb25e68b
6
+ metadata.gz: c1454df9af536ed79b191bd2b412478ab8417b7afb2ea660dca36161262c9e7ebfc4c677eaca6953f95d1afa19ad4c16956e9f1dd07cfe3fd71f4df4ceadc70b
7
+ data.tar.gz: 02d745f44bbdc4305c34ec4157b6d4ad8fbc79b71d204350952e30567222f264877b21eaed6b0283b59583b7aff5fb944a91328f30b8bf57f698698943f3596e
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
 
@@ -55,7 +55,7 @@ module SvelteOnRails
55
55
 
56
56
  return res
57
57
  rescue JSON::ParserError => e
58
- raise "Render Svelte Server-side: Expected JSON, got: «#{stdout}»"
58
+ raise "Render Svelte Server-side: Expected JSON, got: «#{stdout}»\n\ncmd: «#{cmd}»"
59
59
  end
60
60
  end
61
61
 
@@ -1,13 +1,15 @@
1
1
  if defined?(Rails) && Rake::Task.task_defined?("assets:precompile")
2
2
  Rake::Task["assets:precompile"].enhance do
3
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
4
+ utils = SvelteOnRails::Lib::Utils
5
+ utils.precompile
6
+ # Dir.chdir(Rails.root) do
7
+ # cmd = "npm run build:ssr"
8
+ # puts cmd
9
+ # puts '-' * 80
10
+ # puts `#{cmd}`
11
+ # end
12
+ # puts '-' * 80
11
13
  end
12
14
  end
13
15
 
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.3
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Sedlmair