svelte-on-rails 10.0.1 → 10.0.2
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5f334aa897aeef43edf9b2e6c38d1d50f087ef19e23eeae00287935dd0d606c1
|
|
4
|
+
data.tar.gz: 3149c3289550fc3a45e517d17b9c1f1f43b4950708da271302a81b3f330e65b8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4f3c9d90026f490000b4563e75c2a74c7b4d590a8df3385e221109f58e30e8a8a39fdd393be20884fb3fd2e6332cd0e906c4533743d29221f32343069d1d8297
|
|
7
|
+
data.tar.gz: d16bd8a82546a7d6788c4d99ae5c8b013a35b73ac11c0bf61a3311b671851f622c9a920cbaa75cba3fe6a5f67da407957e14a74969b35af00958ad106c989313
|
|
@@ -1,20 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
#
|
|
3
|
-
#
|
|
1
|
+
vite_source_dir: app/frontend
|
|
2
|
+
# similar to config/vite.json sourceCodeDir
|
|
3
|
+
# the directory which is the root for vite assets
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
# relative
|
|
7
|
-
#
|
|
5
|
+
components_subdir: javascript
|
|
6
|
+
# primary root – supports relative/current-dir first lookup when inside app/views like known from render partials within html.erb
|
|
7
|
+
# relative to javascript_root
|
|
8
|
+
|
|
9
|
+
extra_component_paths:
|
|
10
|
+
- app/views
|
|
11
|
+
# extra search paths (no special relative behavior)
|
|
12
|
+
|
|
13
|
+
default_components_root: components_subdir
|
|
14
|
+
# options: components_subdir or one of the extra_component_paths
|
|
15
|
+
|
|
16
|
+
aliases:
|
|
17
|
+
'@js': app/frontend/javascript
|
|
18
|
+
'@views': app/views
|
|
8
19
|
|
|
9
20
|
ssr: :auto
|
|
10
21
|
# options: true, false, :auto
|
|
11
22
|
# :auto: render server side if request is initial request (works only with turbo, because it checks for the X-Turbo-Request-ID header)
|
|
12
23
|
# when not server-side rendered the components must be built as custom elements, see node-package @csedl/svelte-on-rails
|
|
13
24
|
|
|
14
|
-
|
|
25
|
+
skip_ssr_header: 'X-Turbo-Request-ID'
|
|
15
26
|
# when ssr: :auto =>
|
|
16
|
-
# when this header
|
|
17
|
-
# when this header is empty we assume initial request and doing server-side rendering
|
|
27
|
+
# Skip SSR when this request header is present and non-empty (Turbo / prefetch / XHR requests)
|
|
18
28
|
|
|
19
29
|
# redis_cache_store:
|
|
20
30
|
# url: 'redis://localhost:6379/2'
|
|
@@ -8,7 +8,7 @@ import path from 'path'
|
|
|
8
8
|
function getSvelteEntries(): string[] {
|
|
9
9
|
const patterns = [
|
|
10
10
|
'app/frontend/**/*.svelte',
|
|
11
|
-
'app/views/**/*.svelte'
|
|
11
|
+
//'app/views/**/*.svelte'
|
|
12
12
|
]
|
|
13
13
|
const files = fg.sync(patterns, { absolute: true })
|
|
14
14
|
const entries = files.map(file => path.relative(process.cwd(), file))
|