@jasonshimmy/vite-plugin-cer-app 0.1.0 → 0.1.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.
Files changed (172) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/IMPLEMENTATION_PLAN.md +1 -1
  3. package/README.md +7 -7
  4. package/VITE_PLUGIN_FRAMEWORK_PLAN.md +12 -12
  5. package/commits.txt +1 -3
  6. package/dist/cli/commands/generate.d.ts.map +1 -1
  7. package/dist/cli/commands/generate.js +2 -0
  8. package/dist/cli/commands/generate.js.map +1 -1
  9. package/dist/cli/commands/preview.d.ts.map +1 -1
  10. package/dist/cli/commands/preview.js +21 -2
  11. package/dist/cli/commands/preview.js.map +1 -1
  12. package/dist/cli/create/index.js +2 -2
  13. package/dist/cli/create/index.js.map +1 -1
  14. package/dist/cli/index.js +1 -1
  15. package/dist/cli/index.js.map +1 -1
  16. package/dist/plugin/build-ssg.d.ts.map +1 -1
  17. package/dist/plugin/build-ssg.js +10 -21
  18. package/dist/plugin/build-ssg.js.map +1 -1
  19. package/dist/plugin/build-ssr.d.ts.map +1 -1
  20. package/dist/plugin/build-ssr.js +151 -28
  21. package/dist/plugin/build-ssr.js.map +1 -1
  22. package/dist/plugin/dts-generator.js +4 -4
  23. package/dist/plugin/dts-generator.js.map +1 -1
  24. package/dist/plugin/index.js +2 -2
  25. package/dist/plugin/index.js.map +1 -1
  26. package/dist/plugin/transforms/auto-import.js +3 -3
  27. package/dist/plugin/transforms/auto-import.js.map +1 -1
  28. package/dist/plugin/virtual/components.js +3 -3
  29. package/dist/plugin/virtual/components.js.map +1 -1
  30. package/dist/plugin/virtual/composables.js +3 -3
  31. package/dist/plugin/virtual/composables.js.map +1 -1
  32. package/dist/plugin/virtual/error.js +2 -2
  33. package/dist/plugin/virtual/error.js.map +1 -1
  34. package/dist/plugin/virtual/layouts.js +3 -3
  35. package/dist/plugin/virtual/layouts.js.map +1 -1
  36. package/dist/plugin/virtual/loading.js +2 -2
  37. package/dist/plugin/virtual/loading.js.map +1 -1
  38. package/dist/plugin/virtual/middleware.js +3 -3
  39. package/dist/plugin/virtual/middleware.js.map +1 -1
  40. package/dist/plugin/virtual/plugins.js +3 -3
  41. package/dist/plugin/virtual/plugins.js.map +1 -1
  42. package/dist/plugin/virtual/routes.d.ts.map +1 -1
  43. package/dist/plugin/virtual/routes.js +14 -4
  44. package/dist/plugin/virtual/routes.js.map +1 -1
  45. package/dist/plugin/virtual/server-api.js +3 -3
  46. package/dist/plugin/virtual/server-api.js.map +1 -1
  47. package/dist/plugin/virtual/server-middleware.js +3 -3
  48. package/dist/plugin/virtual/server-middleware.js.map +1 -1
  49. package/dist/runtime/app-template.d.ts +1 -1
  50. package/dist/runtime/app-template.d.ts.map +1 -1
  51. package/dist/runtime/app-template.js +6 -0
  52. package/dist/runtime/app-template.js.map +1 -1
  53. package/dist/runtime/composables/use-page-data.d.ts +15 -6
  54. package/dist/runtime/composables/use-page-data.d.ts.map +1 -1
  55. package/dist/runtime/composables/use-page-data.js +30 -9
  56. package/dist/runtime/composables/use-page-data.js.map +1 -1
  57. package/dist/runtime/entry-server-template.d.ts +1 -1
  58. package/dist/runtime/entry-server-template.d.ts.map +1 -1
  59. package/dist/runtime/entry-server-template.js +138 -17
  60. package/dist/runtime/entry-server-template.js.map +1 -1
  61. package/docs/cli.md +2 -2
  62. package/docs/configuration.md +4 -4
  63. package/docs/data-loading.md +8 -7
  64. package/docs/getting-started.md +5 -5
  65. package/docs/head-management.md +3 -3
  66. package/docs/middleware.md +2 -2
  67. package/docs/plugins.md +1 -1
  68. package/docs/rendering-modes.md +1 -1
  69. package/docs/routing.md +1 -1
  70. package/docs/server-api.md +10 -1
  71. package/docs/testing.md +4 -4
  72. package/package.json +1 -1
  73. package/src/__tests__/index.test.ts +21 -0
  74. package/src/__tests__/plugin/build-ssg.test.ts +265 -0
  75. package/src/__tests__/plugin/build-ssr.test.ts +180 -0
  76. package/src/__tests__/plugin/cer-app-plugin.test.ts +409 -0
  77. package/src/__tests__/plugin/dts-generator.test.ts +246 -0
  78. package/src/__tests__/plugin/resolve-config.test.ts +158 -0
  79. package/src/__tests__/plugin/transforms/auto-import.test.ts +1 -1
  80. package/src/__tests__/plugin/virtual/components.test.ts +1 -1
  81. package/src/__tests__/plugin/virtual/composables.test.ts +1 -1
  82. package/src/__tests__/plugin/virtual/error.test.ts +71 -0
  83. package/src/__tests__/plugin/virtual/layouts.test.ts +1 -1
  84. package/src/__tests__/plugin/virtual/loading.test.ts +72 -0
  85. package/src/__tests__/plugin/virtual/middleware.test.ts +1 -1
  86. package/src/__tests__/plugin/virtual/plugins.test.ts +1 -1
  87. package/src/__tests__/plugin/virtual/routes.test.ts +1 -1
  88. package/src/__tests__/plugin/virtual/server-api.test.ts +1 -1
  89. package/src/__tests__/plugin/virtual/server-middleware.test.ts +102 -0
  90. package/src/__tests__/runtime/use-page-data.test.ts +81 -5
  91. package/src/__tests__/types/config.test.ts +23 -0
  92. package/src/cli/commands/generate.ts +2 -0
  93. package/src/cli/commands/preview.ts +21 -2
  94. package/src/cli/create/index.ts +2 -2
  95. package/src/cli/create/templates/spa/cer.config.ts.tpl +1 -1
  96. package/src/cli/create/templates/spa/package.json.tpl +1 -1
  97. package/src/cli/create/templates/ssg/cer.config.ts.tpl +1 -1
  98. package/src/cli/create/templates/ssg/package.json.tpl +1 -1
  99. package/src/cli/create/templates/ssr/cer.config.ts.tpl +1 -1
  100. package/src/cli/create/templates/ssr/package.json.tpl +1 -1
  101. package/src/cli/index.ts +1 -1
  102. package/src/plugin/build-ssg.ts +9 -22
  103. package/src/plugin/build-ssr.ts +150 -28
  104. package/src/plugin/dts-generator.ts +4 -4
  105. package/src/plugin/index.ts +2 -2
  106. package/src/plugin/transforms/auto-import.ts +3 -3
  107. package/src/plugin/virtual/components.ts +3 -3
  108. package/src/plugin/virtual/composables.ts +3 -3
  109. package/src/plugin/virtual/error.ts +2 -2
  110. package/src/plugin/virtual/layouts.ts +3 -3
  111. package/src/plugin/virtual/loading.ts +2 -2
  112. package/src/plugin/virtual/middleware.ts +3 -3
  113. package/src/plugin/virtual/plugins.ts +3 -3
  114. package/src/plugin/virtual/routes.ts +15 -4
  115. package/src/plugin/virtual/server-api.ts +3 -3
  116. package/src/plugin/virtual/server-middleware.ts +3 -3
  117. package/src/runtime/app-template.ts +6 -0
  118. package/src/runtime/composables/use-page-data.ts +31 -9
  119. package/src/runtime/entry-server-template.ts +138 -17
  120. package/tsconfig.build.json +1 -1
  121. package/dist/__tests__/plugin/path-utils.test.d.ts +0 -2
  122. package/dist/__tests__/plugin/path-utils.test.d.ts.map +0 -1
  123. package/dist/__tests__/plugin/path-utils.test.js +0 -305
  124. package/dist/__tests__/plugin/path-utils.test.js.map +0 -1
  125. package/dist/__tests__/plugin/scanner.test.d.ts +0 -2
  126. package/dist/__tests__/plugin/scanner.test.d.ts.map +0 -1
  127. package/dist/__tests__/plugin/scanner.test.js +0 -143
  128. package/dist/__tests__/plugin/scanner.test.js.map +0 -1
  129. package/dist/__tests__/plugin/transforms/auto-import.test.d.ts +0 -2
  130. package/dist/__tests__/plugin/transforms/auto-import.test.d.ts.map +0 -1
  131. package/dist/__tests__/plugin/transforms/auto-import.test.js +0 -151
  132. package/dist/__tests__/plugin/transforms/auto-import.test.js.map +0 -1
  133. package/dist/__tests__/plugin/transforms/head-inject.test.d.ts +0 -2
  134. package/dist/__tests__/plugin/transforms/head-inject.test.d.ts.map +0 -1
  135. package/dist/__tests__/plugin/transforms/head-inject.test.js +0 -151
  136. package/dist/__tests__/plugin/transforms/head-inject.test.js.map +0 -1
  137. package/dist/__tests__/plugin/virtual/components.test.d.ts +0 -2
  138. package/dist/__tests__/plugin/virtual/components.test.d.ts.map +0 -1
  139. package/dist/__tests__/plugin/virtual/components.test.js +0 -47
  140. package/dist/__tests__/plugin/virtual/components.test.js.map +0 -1
  141. package/dist/__tests__/plugin/virtual/composables.test.d.ts +0 -2
  142. package/dist/__tests__/plugin/virtual/composables.test.d.ts.map +0 -1
  143. package/dist/__tests__/plugin/virtual/composables.test.js +0 -48
  144. package/dist/__tests__/plugin/virtual/composables.test.js.map +0 -1
  145. package/dist/__tests__/plugin/virtual/layouts.test.d.ts +0 -2
  146. package/dist/__tests__/plugin/virtual/layouts.test.d.ts.map +0 -1
  147. package/dist/__tests__/plugin/virtual/layouts.test.js +0 -59
  148. package/dist/__tests__/plugin/virtual/layouts.test.js.map +0 -1
  149. package/dist/__tests__/plugin/virtual/middleware.test.d.ts +0 -2
  150. package/dist/__tests__/plugin/virtual/middleware.test.d.ts.map +0 -1
  151. package/dist/__tests__/plugin/virtual/middleware.test.js +0 -58
  152. package/dist/__tests__/plugin/virtual/middleware.test.js.map +0 -1
  153. package/dist/__tests__/plugin/virtual/plugins.test.d.ts +0 -2
  154. package/dist/__tests__/plugin/virtual/plugins.test.d.ts.map +0 -1
  155. package/dist/__tests__/plugin/virtual/plugins.test.js +0 -73
  156. package/dist/__tests__/plugin/virtual/plugins.test.js.map +0 -1
  157. package/dist/__tests__/plugin/virtual/routes.test.d.ts +0 -2
  158. package/dist/__tests__/plugin/virtual/routes.test.d.ts.map +0 -1
  159. package/dist/__tests__/plugin/virtual/routes.test.js +0 -167
  160. package/dist/__tests__/plugin/virtual/routes.test.js.map +0 -1
  161. package/dist/__tests__/plugin/virtual/server-api.test.d.ts +0 -2
  162. package/dist/__tests__/plugin/virtual/server-api.test.d.ts.map +0 -1
  163. package/dist/__tests__/plugin/virtual/server-api.test.js +0 -72
  164. package/dist/__tests__/plugin/virtual/server-api.test.js.map +0 -1
  165. package/dist/__tests__/runtime/use-head.test.d.ts +0 -2
  166. package/dist/__tests__/runtime/use-head.test.d.ts.map +0 -1
  167. package/dist/__tests__/runtime/use-head.test.js +0 -202
  168. package/dist/__tests__/runtime/use-head.test.js.map +0 -1
  169. package/dist/__tests__/runtime/use-page-data.test.d.ts +0 -2
  170. package/dist/__tests__/runtime/use-page-data.test.d.ts.map +0 -1
  171. package/dist/__tests__/runtime/use-page-data.test.js +0 -41
  172. package/dist/__tests__/runtime/use-page-data.test.js.map +0 -1
@@ -5,27 +5,98 @@
5
5
  * wires up the routing, and exports a handler compatible with
6
6
  * Express/Fastify/Node http.
7
7
  */
8
- export const ENTRY_SERVER_TEMPLATE = `// Server-side entry — AUTO-GENERATED by vite-plugin-cer-app
8
+ export const ENTRY_SERVER_TEMPLATE = `// Server-side entry — AUTO-GENERATED by @jasonshimmy/vite-plugin-cer-app
9
+ import { readFileSync, existsSync } from 'node:fs'
10
+ import { dirname, join } from 'node:path'
11
+ import { fileURLToPath } from 'node:url'
12
+ import { AsyncLocalStorage } from 'node:async_hooks'
9
13
  import 'virtual:cer-components'
10
14
  import routes from 'virtual:cer-routes'
11
15
  import layouts from 'virtual:cer-layouts'
12
16
  import plugins from 'virtual:cer-plugins'
13
17
  import apiRoutes from 'virtual:cer-server-api'
14
- import { html, registerBuiltinComponents } from '@jasonshimmy/custom-elements-runtime'
18
+ import { registerBuiltinComponents } from '@jasonshimmy/custom-elements-runtime'
19
+ import { registerEntityMap, DSD_POLYFILL_SCRIPT } from '@jasonshimmy/custom-elements-runtime/ssr'
20
+ import entitiesJson from '@jasonshimmy/custom-elements-runtime/entities.json'
15
21
  import { initRouter } from '@jasonshimmy/custom-elements-runtime/router'
16
- import { createStreamingSSRHandler } from '@jasonshimmy/custom-elements-runtime/ssr-middleware'
22
+ import { createSSRHandler } from '@jasonshimmy/custom-elements-runtime/ssr-middleware'
17
23
 
18
24
  registerBuiltinComponents()
19
25
 
26
+ // Pre-load the full HTML entity map so named entities like — decode
27
+ // correctly during SSR. Without this the bundled runtime falls back to a
28
+ // minimal set (<, >, & …) and re-escapes everything else.
29
+ registerEntityMap(entitiesJson)
30
+
31
+ // Async-local storage for request-scoped SSR loader data.
32
+ // Using AsyncLocalStorage ensures concurrent SSR renders (e.g. SSG with
33
+ // concurrency > 1) never see each other's data — each request's async chain
34
+ // carries its own store value, so usePageData() is always race-condition-free.
35
+ const _cerDataStore = new AsyncLocalStorage()
36
+ // Expose the store so the usePageData() composable can read it server-side.
37
+ ;(globalThis).__CER_DATA_STORE__ = _cerDataStore
38
+
39
+ // Load the Vite-built client index.html (dist/client/index.html) so every SSR
40
+ // response includes the client-side scripts needed for hydration and routing.
41
+ // The server bundle lives at dist/server/server.js, so ../client resolves correctly.
42
+ const _clientTemplatePath = join(dirname(fileURLToPath(import.meta.url)), '../client/index.html')
43
+ const _clientTemplate = existsSync(_clientTemplatePath)
44
+ ? readFileSync(_clientTemplatePath, 'utf-8')
45
+ : null
46
+
47
+ // Merge the SSR handler's full HTML document with the Vite client shell so the
48
+ // final page contains both pre-rendered DSD content and the client bundle scripts.
49
+ function _mergeWithClientTemplate(ssrHtml, clientTemplate) {
50
+ const headTag = '<head>', headCloseTag = '</head>'
51
+ const bodyTag = '<body>', bodyCloseTag = '</body>'
52
+ const headStart = ssrHtml.indexOf(headTag)
53
+ const headEnd = ssrHtml.indexOf(headCloseTag)
54
+ const bodyStart = ssrHtml.indexOf(bodyTag)
55
+ const bodyEnd = ssrHtml.lastIndexOf(bodyCloseTag)
56
+ const ssrHead = headStart >= 0 && headEnd > headStart
57
+ ? ssrHtml.slice(headStart + headTag.length, headEnd).trim() : ''
58
+ const ssrBody = bodyStart >= 0 && bodyEnd > bodyStart
59
+ ? ssrHtml.slice(bodyStart + bodyTag.length, bodyEnd).trim() : ssrHtml
60
+ // Hoist <style> elements from the SSR body into the document <head> so
61
+ // JIT CSS rules are applied before the layout paints.
62
+ const headParts = ssrHead ? [ssrHead] : []
63
+ let ssrBodyContent = ssrBody
64
+ let pos = 0
65
+ while (pos < ssrBodyContent.length) {
66
+ const styleOpen = ssrBodyContent.indexOf('<style', pos)
67
+ if (styleOpen < 0) break
68
+ const styleClose = ssrBodyContent.indexOf('</style>', styleOpen)
69
+ if (styleClose < 0) break
70
+ headParts.push(ssrBodyContent.slice(styleOpen, styleClose + 8))
71
+ ssrBodyContent = ssrBodyContent.slice(0, styleOpen) + ssrBodyContent.slice(styleClose + 8)
72
+ pos = styleOpen
73
+ }
74
+ ssrBodyContent = ssrBodyContent.trim()
75
+ // Inject the pre-rendered layout+page as light DOM of the app mount element
76
+ // so it is visible before JS boots, then the client router takes over.
77
+ let merged = clientTemplate
78
+ if (merged.includes('<cer-layout-view></cer-layout-view>')) {
79
+ merged = merged.replace('<cer-layout-view></cer-layout-view>',
80
+ '<cer-layout-view>' + ssrBodyContent + '</cer-layout-view>')
81
+ } else if (merged.includes('<div id="app"></div>')) {
82
+ merged = merged.replace('<div id="app"></div>',
83
+ '<div id="app">' + ssrBodyContent + '</div>')
84
+ }
85
+ const headAdditions = headParts.filter(Boolean).join('\\n')
86
+ if (headAdditions) merged = merged.replace('</head>', headAdditions + '\\n</head>')
87
+ return merged
88
+ }
89
+
20
90
  /**
21
91
  * Per-request VNode factory — initializes a fresh router at the request URL,
22
- * resolves the active layout from the matched route's meta, calls the matched
23
- * route's data loader (if any), and injects the serialized result into the
24
- * document head as window.__CER_DATA__ for client-side hydration.
92
+ * resolves the active layout from the matched route's meta, pre-loads the
93
+ * matched page component (bypassing the async router-view so DSD renders
94
+ * synchronously), calls the route's data loader (if any), and injects the
95
+ * serialized result into the document head as window.__CER_DATA__ for
96
+ * client-side hydration.
25
97
  *
26
98
  * createStreamingSSRHandler threads the router through each component's SSR
27
- * context so router-view reads from the per-request instance instead of the
28
- * shared activeRouterProxy singleton. This makes concurrent SSR requests safe.
99
+ * context so concurrent renders never share state.
29
100
  */
30
101
  const vnodeFactory = async (req) => {
31
102
  const router = initRouter({ routes, initialUrl: req.url ?? '/' })
@@ -33,38 +104,88 @@ const vnodeFactory = async (req) => {
33
104
  const { route, params } = router.matchRoute(current.path)
34
105
  const layoutName = route?.meta?.layout ?? 'default'
35
106
  const layoutTag = layouts[layoutName]
36
- const inner = html\`<router-view></router-view>\`
37
- const vnode = layoutTag
38
- ? { tag: layoutTag, props: {}, children: [inner] }
39
- : inner
40
107
 
41
- // Call the route's data loader (if present) and serialize for client hydration.
108
+ // Pre-load the page module so we can embed the component tag directly.
109
+ // This avoids the async router-view (which injects content via script tags
110
+ // and breaks Declarative Shadow DOM on initial parse).
111
+ let pageVnode = { tag: 'div', props: {}, children: [] }
42
112
  let head
43
113
  if (route?.load) {
44
114
  try {
45
115
  const mod = await route.load()
116
+ const pageTag = mod.default
117
+ if (pageTag) {
118
+ pageVnode = { tag: pageTag, props: { attrs: { ...params } }, children: [] }
119
+ }
46
120
  if (typeof mod.loader === 'function') {
47
121
  const query = current.query ?? {}
48
122
  const data = await mod.loader({ params, query, req })
49
123
  if (data !== undefined && data !== null) {
124
+ // Make data available to usePageData() during the SSR render pass.
125
+ // enterWith() scopes the value to the current async context so
126
+ // concurrent renders (SSG concurrency > 1) never share data.
127
+ _cerDataStore.enterWith(data)
50
128
  head = \`<script>window.__CER_DATA__ = \${JSON.stringify(data)}</script>\`
51
129
  }
52
130
  }
53
131
  } catch {
54
- // Loader errors are non-fatal during SSR; the client will refetch.
132
+ // Non-fatal: loader errors fall back to an empty page; client will refetch.
55
133
  }
56
134
  }
57
135
 
136
+ const vnode = layoutTag
137
+ ? { tag: layoutTag, props: {}, children: [pageVnode] }
138
+ : pageVnode
139
+
58
140
  return { vnode, router, head }
59
141
  }
60
142
 
143
+ // Capture the raw SSR handler and wrap it to merge the response with the
144
+ // Vite client template before sending — this injects the JS/CSS asset bundles
145
+ // so the browser can hydrate and enable client-side routing.
146
+ const _rawHandler = createSSRHandler(vnodeFactory, {
147
+ render: { dsd: true, dsdPolyfill: false },
148
+ })
149
+
61
150
  /**
62
151
  * The main request handler.
63
152
  * Compatible with Express, Fastify, and Node's raw http.createServer.
153
+ *
154
+ * Each request is run inside a fresh _cerDataStore.run() context so that
155
+ * concurrent renders (e.g. SSG with concurrency > 1) get isolated stores.
156
+ * vnodeFactory calls _cerDataStore.enterWith(loaderData) from within this
157
+ * context, making the data visible to usePageData() during SSR rendering
158
+ * without any global-state races.
64
159
  */
65
- export const handler = createStreamingSSRHandler(vnodeFactory, {
66
- render: { dsd: true },
67
- })
160
+ export const handler = async (req, res) => {
161
+ if (!_clientTemplate) {
162
+ // No client template — run handler normally, then inject DSD polyfill.
163
+ let _html = ''
164
+ await _cerDataStore.run(null, async () => {
165
+ await _rawHandler(req, { setHeader: () => {}, end: (body) => { _html = body } })
166
+ })
167
+ // Inject DSD polyfill at end of <body>, outside any custom element light DOM.
168
+ const _final = _html.includes('</body>')
169
+ ? _html.replace('</body>', DSD_POLYFILL_SCRIPT + '</body>')
170
+ : _html + DSD_POLYFILL_SCRIPT
171
+ res.setHeader('Content-Type', 'text/html; charset=utf-8')
172
+ return res.end(_final)
173
+ }
174
+ let _capturedHtml = ''
175
+ // Wrap _rawHandler in an isolated async-local-storage context so that
176
+ // vnodeFactory's enterWith() call is scoped to this request only.
177
+ await _cerDataStore.run(null, async () => {
178
+ // Omit write() to force the non-streaming collect-then-end code path.
179
+ await _rawHandler(req, { setHeader: () => {}, end: (body) => { _capturedHtml = body } })
180
+ })
181
+ let _merged = _mergeWithClientTemplate(_capturedHtml, _clientTemplate)
182
+ // Inject DSD polyfill at end of <body>, outside <cer-layout-view> light DOM.
183
+ _merged = _merged.includes('</body>')
184
+ ? _merged.replace('</body>', DSD_POLYFILL_SCRIPT + '</body>')
185
+ : _merged + DSD_POLYFILL_SCRIPT
186
+ res.setHeader('Content-Type', 'text/html; charset=utf-8')
187
+ res.end(_merged)
188
+ }
68
189
 
69
190
  export { apiRoutes, plugins, layouts, routes }
70
191
  export default handler
@@ -6,5 +6,5 @@
6
6
  "outDir": "dist",
7
7
  "rootDir": "src"
8
8
  },
9
- "exclude": ["node_modules", "dist", "src/cli/create/templates"]
9
+ "exclude": ["node_modules", "dist", "src/cli/create/templates", "src/__tests__"]
10
10
  }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=path-utils.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"path-utils.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/plugin/path-utils.test.ts"],"names":[],"mappings":""}
@@ -1,305 +0,0 @@
1
- import { describe, it, expect } from 'vitest';
2
- import { fileToRoutePath, fileToTagName, fileToLayoutTagName, fileToLayoutName, fileToImportAlias, extractPluginOrder, sortPluginFiles, sortRoutes, isRouteDynamic, isRouteCatchAll, buildRouteEntry, } from '../../plugin/path-utils.js';
3
- const PAGES = '/project/app/pages';
4
- const LAYOUTS = '/project/app/layouts';
5
- // ─── fileToRoutePath ────────────────────────────────────────────────────────
6
- describe('fileToRoutePath', () => {
7
- it('maps index.ts to /', () => {
8
- expect(fileToRoutePath(`${PAGES}/index.ts`, PAGES)).toBe('/');
9
- });
10
- it('maps about.ts to /about', () => {
11
- expect(fileToRoutePath(`${PAGES}/about.ts`, PAGES)).toBe('/about');
12
- });
13
- it('maps blog/index.ts to /blog', () => {
14
- expect(fileToRoutePath(`${PAGES}/blog/index.ts`, PAGES)).toBe('/blog');
15
- });
16
- it('maps blog/[slug].ts to /blog/:slug', () => {
17
- expect(fileToRoutePath(`${PAGES}/blog/[slug].ts`, PAGES)).toBe('/blog/:slug');
18
- });
19
- it('maps [...all].ts to /:all*', () => {
20
- expect(fileToRoutePath(`${PAGES}/[...all].ts`, PAGES)).toBe('/:all*');
21
- });
22
- it('maps [...catchAll].ts to /:catchAll*', () => {
23
- expect(fileToRoutePath(`${PAGES}/[...catchAll].ts`, PAGES)).toBe('/:catchAll*');
24
- });
25
- it('strips route group prefix: (auth)/login.ts → /login', () => {
26
- expect(fileToRoutePath(`${PAGES}/(auth)/login.ts`, PAGES)).toBe('/login');
27
- });
28
- it('strips nested route group: (group)/sub/page.ts → /sub/page', () => {
29
- expect(fileToRoutePath(`${PAGES}/(group)/sub/page.ts`, PAGES)).toBe('/sub/page');
30
- });
31
- it('maps [id]/edit.ts → /:id/edit', () => {
32
- expect(fileToRoutePath(`${PAGES}/[id]/edit.ts`, PAGES)).toBe('/:id/edit');
33
- });
34
- it('maps users/[id]/posts/[postId].ts → /users/:id/posts/:postId', () => {
35
- expect(fileToRoutePath(`${PAGES}/users/[id]/posts/[postId].ts`, PAGES)).toBe('/users/:id/posts/:postId');
36
- });
37
- it('normalizes double slashes from route group at root', () => {
38
- expect(fileToRoutePath(`${PAGES}/(group)/index.ts`, PAGES)).toBe('/');
39
- });
40
- it('handles .js extension', () => {
41
- expect(fileToRoutePath(`${PAGES}/about.js`, PAGES)).toBe('/about');
42
- });
43
- it('handles deeply nested static route', () => {
44
- expect(fileToRoutePath(`${PAGES}/a/b/c.ts`, PAGES)).toBe('/a/b/c');
45
- });
46
- it('maps contact/index.ts to /contact (strips trailing index)', () => {
47
- expect(fileToRoutePath(`${PAGES}/contact/index.ts`, PAGES)).toBe('/contact');
48
- });
49
- });
50
- // ─── fileToTagName ───────────────────────────────────────────────────────────
51
- describe('fileToTagName', () => {
52
- it('maps index.ts to page-index', () => {
53
- expect(fileToTagName(`${PAGES}/index.ts`, PAGES)).toBe('page-index');
54
- });
55
- it('maps about.ts to page-about', () => {
56
- expect(fileToTagName(`${PAGES}/about.ts`, PAGES)).toBe('page-about');
57
- });
58
- it('maps blog/[slug].ts to page-blog-slug', () => {
59
- expect(fileToTagName(`${PAGES}/blog/[slug].ts`, PAGES)).toBe('page-blog-slug');
60
- });
61
- it('maps [...all].ts to page-all (strips brackets and dots)', () => {
62
- expect(fileToTagName(`${PAGES}/[...all].ts`, PAGES)).toBe('page-all');
63
- });
64
- it('strips route group from tag name', () => {
65
- expect(fileToTagName(`${PAGES}/(auth)/login.ts`, PAGES)).toBe('page-login');
66
- });
67
- it('converts to lowercase', () => {
68
- expect(fileToTagName(`${PAGES}/MyPage.ts`, PAGES)).toBe('page-mypage');
69
- });
70
- it('maps blog/index.ts to page-blog (strips index when other segments exist)', () => {
71
- expect(fileToTagName(`${PAGES}/blog/index.ts`, PAGES)).toBe('page-blog');
72
- });
73
- it('maps items/index.ts to page-items', () => {
74
- expect(fileToTagName(`${PAGES}/items/index.ts`, PAGES)).toBe('page-items');
75
- });
76
- it('maps [id]/detail.ts to page-id-detail', () => {
77
- expect(fileToTagName(`${PAGES}/[id]/detail.ts`, PAGES)).toBe('page-id-detail');
78
- });
79
- });
80
- // ─── fileToLayoutTagName ─────────────────────────────────────────────────────
81
- describe('fileToLayoutTagName', () => {
82
- it('maps default.ts to layout-default', () => {
83
- expect(fileToLayoutTagName(`${LAYOUTS}/default.ts`, LAYOUTS)).toBe('layout-default');
84
- });
85
- it('maps minimal.ts to layout-minimal', () => {
86
- expect(fileToLayoutTagName(`${LAYOUTS}/minimal.ts`, LAYOUTS)).toBe('layout-minimal');
87
- });
88
- it('maps blog/post.ts to layout-blog-post', () => {
89
- expect(fileToLayoutTagName(`${LAYOUTS}/blog/post.ts`, LAYOUTS)).toBe('layout-blog-post');
90
- });
91
- it('converts to lowercase', () => {
92
- expect(fileToLayoutTagName(`${LAYOUTS}/MyLayout.ts`, LAYOUTS)).toBe('layout-mylayout');
93
- });
94
- });
95
- // ─── fileToLayoutName ────────────────────────────────────────────────────────
96
- describe('fileToLayoutName', () => {
97
- it('maps default.ts to default', () => {
98
- expect(fileToLayoutName(`${LAYOUTS}/default.ts`, LAYOUTS)).toBe('default');
99
- });
100
- it('maps minimal.ts to minimal', () => {
101
- expect(fileToLayoutName(`${LAYOUTS}/minimal.ts`, LAYOUTS)).toBe('minimal');
102
- });
103
- it('maps blog/post.ts to blog-post (slash → dash)', () => {
104
- expect(fileToLayoutName(`${LAYOUTS}/blog/post.ts`, LAYOUTS)).toBe('blog-post');
105
- });
106
- it('converts to lowercase', () => {
107
- expect(fileToLayoutName(`${LAYOUTS}/Admin.ts`, LAYOUTS)).toBe('admin');
108
- });
109
- });
110
- // ─── fileToImportAlias ───────────────────────────────────────────────────────
111
- describe('fileToImportAlias', () => {
112
- it('creates _m_ prefixed alias by default', () => {
113
- expect(fileToImportAlias('/project/app/composables/useTheme.ts')).toBe('_m_useTheme');
114
- });
115
- it('uses custom prefix', () => {
116
- expect(fileToImportAlias('/project/store.ts', '_s')).toBe('_s_store');
117
- });
118
- it('replaces dashes with underscores', () => {
119
- expect(fileToImportAlias('/project/my-util.ts')).toBe('_m_my_util');
120
- });
121
- it('prepends underscore for filenames starting with a digit', () => {
122
- expect(fileToImportAlias('/project/01.store.ts')).toBe('_m__01_store');
123
- });
124
- it('replaces brackets in filename with underscores', () => {
125
- expect(fileToImportAlias('/project/[slug].ts')).toBe('_m__slug_');
126
- });
127
- });
128
- // ─── extractPluginOrder ──────────────────────────────────────────────────────
129
- describe('extractPluginOrder', () => {
130
- it('returns numeric prefix for 01.store.ts', () => {
131
- expect(extractPluginOrder('01.store.ts')).toBe(1);
132
- });
133
- it('returns numeric prefix for 10.auth.ts', () => {
134
- expect(extractPluginOrder('10.auth.ts')).toBe(10);
135
- });
136
- it('returns Infinity for files without numeric prefix', () => {
137
- expect(extractPluginOrder('store.ts')).toBe(Infinity);
138
- });
139
- it('returns Infinity for files with a number but no trailing dot', () => {
140
- expect(extractPluginOrder('1store.ts')).toBe(Infinity);
141
- });
142
- it('works with absolute paths (extracts basename first)', () => {
143
- expect(extractPluginOrder('/project/app/plugins/01.store.ts')).toBe(1);
144
- });
145
- it('returns 0 for 00.first.ts', () => {
146
- expect(extractPluginOrder('00.first.ts')).toBe(0);
147
- });
148
- });
149
- // ─── sortPluginFiles ─────────────────────────────────────────────────────────
150
- describe('sortPluginFiles', () => {
151
- it('sorts by numeric prefix ascending', () => {
152
- const files = ['/p/03.c.ts', '/p/01.a.ts', '/p/02.b.ts'];
153
- expect(sortPluginFiles(files)).toEqual(['/p/01.a.ts', '/p/02.b.ts', '/p/03.c.ts']);
154
- });
155
- it('places numbered files before unnumbered files', () => {
156
- const files = ['/p/zzz.ts', '/p/01.first.ts'];
157
- expect(sortPluginFiles(files)).toEqual(['/p/01.first.ts', '/p/zzz.ts']);
158
- });
159
- it('sorts unnumbered files alphabetically', () => {
160
- const files = ['/p/zoo.ts', '/p/alpha.ts', '/p/beta.ts'];
161
- expect(sortPluginFiles(files)).toEqual(['/p/alpha.ts', '/p/beta.ts', '/p/zoo.ts']);
162
- });
163
- it('does not mutate the original array', () => {
164
- const files = ['/p/b.ts', '/p/a.ts'];
165
- const copy = [...files];
166
- sortPluginFiles(files);
167
- expect(files).toEqual(copy);
168
- });
169
- it('returns empty array for empty input', () => {
170
- expect(sortPluginFiles([])).toEqual([]);
171
- });
172
- it('handles single file', () => {
173
- expect(sortPluginFiles(['/p/store.ts'])).toEqual(['/p/store.ts']);
174
- });
175
- });
176
- // ─── isRouteDynamic ──────────────────────────────────────────────────────────
177
- describe('isRouteDynamic', () => {
178
- it('returns true for routes with :param', () => {
179
- expect(isRouteDynamic('/blog/:slug')).toBe(true);
180
- });
181
- it('returns true for multiple params', () => {
182
- expect(isRouteDynamic('/users/:id/posts/:postId')).toBe(true);
183
- });
184
- it('returns false for static routes', () => {
185
- expect(isRouteDynamic('/about')).toBe(false);
186
- });
187
- it('returns false for root route', () => {
188
- expect(isRouteDynamic('/')).toBe(false);
189
- });
190
- it('returns false for catch-all routes', () => {
191
- expect(isRouteDynamic('/*')).toBe(false);
192
- });
193
- });
194
- // ─── isRouteCatchAll ─────────────────────────────────────────────────────────
195
- describe('isRouteCatchAll', () => {
196
- it('returns true for /* catch-all', () => {
197
- expect(isRouteCatchAll('/*')).toBe(true);
198
- });
199
- it('returns false for static routes', () => {
200
- expect(isRouteCatchAll('/about')).toBe(false);
201
- });
202
- it('returns false for dynamic routes', () => {
203
- expect(isRouteCatchAll('/blog/:slug')).toBe(false);
204
- });
205
- it('returns false for root route', () => {
206
- expect(isRouteCatchAll('/')).toBe(false);
207
- });
208
- });
209
- // ─── sortRoutes ──────────────────────────────────────────────────────────────
210
- describe('sortRoutes', () => {
211
- const makeRoute = (routePath) => ({
212
- filePath: `/pages${routePath}.ts`,
213
- routePath,
214
- tagName: `page${routePath.replace(/[/:*]/g, '-')}`,
215
- isDynamic: isRouteDynamic(routePath),
216
- isCatchAll: isRouteCatchAll(routePath),
217
- });
218
- it('places static routes before dynamic routes', () => {
219
- const routes = [makeRoute('/blog/:slug'), makeRoute('/about')];
220
- const sorted = sortRoutes(routes);
221
- expect(sorted[0].routePath).toBe('/about');
222
- expect(sorted[1].routePath).toBe('/blog/:slug');
223
- });
224
- it('places dynamic routes before catch-all routes', () => {
225
- const routes = [makeRoute('/*'), makeRoute('/blog/:slug')];
226
- const sorted = sortRoutes(routes);
227
- expect(sorted[0].routePath).toBe('/blog/:slug');
228
- expect(sorted[1].routePath).toBe('/*');
229
- });
230
- it('places static routes before catch-all routes', () => {
231
- const routes = [makeRoute('/*'), makeRoute('/about')];
232
- const sorted = sortRoutes(routes);
233
- expect(sorted[0].routePath).toBe('/about');
234
- expect(sorted[1].routePath).toBe('/*');
235
- });
236
- it('sorts static routes alphabetically', () => {
237
- const routes = [makeRoute('/zzz'), makeRoute('/aaa'), makeRoute('/mmm')];
238
- const sorted = sortRoutes(routes);
239
- expect(sorted.map((r) => r.routePath)).toEqual(['/aaa', '/mmm', '/zzz']);
240
- });
241
- it('does not mutate the original array', () => {
242
- const routes = [makeRoute('/about'), makeRoute('/')];
243
- const copy = [...routes];
244
- sortRoutes(routes);
245
- expect(routes).toEqual(copy);
246
- });
247
- it('handles all three tiers together', () => {
248
- const routes = [
249
- makeRoute('/*'),
250
- makeRoute('/blog/:slug'),
251
- makeRoute('/contact'),
252
- makeRoute('/about'),
253
- makeRoute('/:id'),
254
- ];
255
- const sorted = sortRoutes(routes);
256
- // Static first, alphabetically
257
- expect(sorted[0].routePath).toBe('/about');
258
- expect(sorted[1].routePath).toBe('/contact');
259
- // Dynamic next, alphabetically — ':' (58) < 'b' (98), so /:id before /blog/:slug
260
- expect(sorted[2].routePath).toBe('/:id');
261
- expect(sorted[3].routePath).toBe('/blog/:slug');
262
- // Catch-all last
263
- expect(sorted[4].routePath).toBe('/*');
264
- });
265
- it('returns empty array for empty input', () => {
266
- expect(sortRoutes([])).toEqual([]);
267
- });
268
- });
269
- // ─── buildRouteEntry ─────────────────────────────────────────────────────────
270
- describe('buildRouteEntry', () => {
271
- it('builds a complete RouteEntry for a static page', () => {
272
- const entry = buildRouteEntry(`${PAGES}/about.ts`, PAGES);
273
- expect(entry).toEqual({
274
- filePath: `${PAGES}/about.ts`,
275
- routePath: '/about',
276
- tagName: 'page-about',
277
- isDynamic: false,
278
- isCatchAll: false,
279
- });
280
- });
281
- it('builds a complete RouteEntry for a dynamic page', () => {
282
- const entry = buildRouteEntry(`${PAGES}/blog/[slug].ts`, PAGES);
283
- expect(entry).toEqual({
284
- filePath: `${PAGES}/blog/[slug].ts`,
285
- routePath: '/blog/:slug',
286
- tagName: 'page-blog-slug',
287
- isDynamic: true,
288
- isCatchAll: false,
289
- });
290
- });
291
- it('marks catch-all routes correctly (isCatchAll=true, isDynamic=true)', () => {
292
- const entry = buildRouteEntry(`${PAGES}/[...all].ts`, PAGES);
293
- expect(entry.routePath).toBe('/:all*');
294
- expect(entry.isCatchAll).toBe(true);
295
- expect(entry.isDynamic).toBe(true);
296
- });
297
- it('handles index page', () => {
298
- const entry = buildRouteEntry(`${PAGES}/index.ts`, PAGES);
299
- expect(entry.routePath).toBe('/');
300
- expect(entry.tagName).toBe('page-index');
301
- expect(entry.isDynamic).toBe(false);
302
- expect(entry.isCatchAll).toBe(false);
303
- });
304
- });
305
- //# sourceMappingURL=path-utils.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"path-utils.test.js","sourceRoot":"","sources":["../../../src/__tests__/plugin/path-utils.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC7C,OAAO,EACL,eAAe,EACf,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,UAAU,EACV,cAAc,EACd,eAAe,EACf,eAAe,GAChB,MAAM,4BAA4B,CAAA;AAEnC,MAAM,KAAK,GAAG,oBAAoB,CAAA;AAClC,MAAM,OAAO,GAAG,sBAAsB,CAAA;AAEtC,+EAA+E;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test.ts"],"names":[],"mappings":""}