@analogjs/platform 3.0.0-alpha.7 → 3.0.0-alpha.71

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 (386) hide show
  1. package/migrations/migration.json +7 -1
  2. package/package.json +37 -23
  3. package/src/index.d.ts +11 -2
  4. package/src/index.js +12 -3
  5. package/src/index.js.map +1 -0
  6. package/src/lib/clear-client-page-endpoint.d.ts +1 -1
  7. package/src/lib/clear-client-page-endpoint.js +44 -32
  8. package/src/lib/clear-client-page-endpoint.js.map +1 -0
  9. package/src/lib/content/marked/index.d.ts +5 -5
  10. package/src/lib/content/marked/index.js +10 -6
  11. package/src/lib/content/marked/index.js.map +1 -0
  12. package/src/lib/content/marked/marked-content-highlighter.d.ts +2 -2
  13. package/src/lib/content/marked/marked-content-highlighter.js +6 -3
  14. package/src/lib/content/marked/marked-content-highlighter.js.map +1 -0
  15. package/src/lib/content/marked/marked-setup.service.d.ts +8 -8
  16. package/src/lib/content/marked/marked-setup.service.js +44 -54
  17. package/src/lib/content/marked/marked-setup.service.js.map +1 -0
  18. package/src/lib/content/prism/angular.js +18 -19
  19. package/src/lib/content/prism/angular.js.map +1 -0
  20. package/src/lib/content/prism/index.d.ts +1 -1
  21. package/src/lib/content/prism/index.js +10 -7
  22. package/src/lib/content/prism/index.js.map +1 -0
  23. package/src/lib/content/prism/options.d.ts +1 -1
  24. package/src/lib/content/prism/prism-highlighter.d.ts +5 -5
  25. package/src/lib/content/prism/prism-highlighter.js +33 -33
  26. package/src/lib/content/prism/prism-highlighter.js.map +1 -0
  27. package/src/lib/content/shiki/index.d.ts +3 -3
  28. package/src/lib/content/shiki/index.js +22 -28
  29. package/src/lib/content/shiki/index.js.map +1 -0
  30. package/src/lib/content/shiki/options.d.ts +8 -7
  31. package/src/lib/content/shiki/shiki-highlighter.d.ts +14 -13
  32. package/src/lib/content/shiki/shiki-highlighter.js +49 -43
  33. package/src/lib/content/shiki/shiki-highlighter.js.map +1 -0
  34. package/src/lib/content-plugin.d.ts +19 -19
  35. package/src/lib/content-plugin.js +181 -196
  36. package/src/lib/content-plugin.js.map +1 -0
  37. package/src/lib/deps-plugin.d.ts +2 -2
  38. package/src/lib/deps-plugin.js +84 -82
  39. package/src/lib/deps-plugin.js.map +1 -0
  40. package/src/lib/discover-library-routes.d.ts +22 -0
  41. package/src/lib/discover-library-routes.js +75 -0
  42. package/src/lib/discover-library-routes.js.map +1 -0
  43. package/src/lib/i18n-component-registry-plugin.d.ts +17 -0
  44. package/src/lib/i18n-component-registry-plugin.js +100 -0
  45. package/src/lib/i18n-component-registry-plugin.js.map +1 -0
  46. package/src/lib/i18n-extract-plugin.d.ts +33 -0
  47. package/src/lib/inject-server-fn-ids.d.ts +17 -0
  48. package/src/lib/inject-server-fn-ids.js +94 -0
  49. package/src/lib/inject-server-fn-ids.js.map +1 -0
  50. package/src/lib/json-ld-manifest-plugin.d.ts +41 -0
  51. package/src/lib/json-ld-manifest-plugin.js +84 -0
  52. package/src/lib/json-ld-manifest-plugin.js.map +1 -0
  53. package/src/lib/nitro/analog-nitro-plugin.d.ts +18 -0
  54. package/src/lib/nitro/analog-nitro-plugin.js +555 -0
  55. package/src/lib/nitro/analog-nitro-plugin.js.map +1 -0
  56. package/src/lib/nitro/angular-linker-plugin.d.ts +17 -0
  57. package/src/lib/nitro/angular-linker-plugin.js +51 -0
  58. package/src/lib/nitro/angular-linker-plugin.js.map +1 -0
  59. package/src/lib/nitro/build-sitemap.d.ts +23 -0
  60. package/src/lib/nitro/build-sitemap.js +137 -0
  61. package/src/lib/nitro/build-sitemap.js.map +1 -0
  62. package/src/lib/nitro/debug.d.ts +5 -0
  63. package/src/lib/nitro/debug.js +11 -0
  64. package/src/lib/nitro/debug.js.map +1 -0
  65. package/src/lib/nitro/get-content-files.d.ts +13 -0
  66. package/src/lib/nitro/get-content-files.js +52 -0
  67. package/src/lib/nitro/get-content-files.js.map +1 -0
  68. package/src/lib/nitro/get-page-handlers.d.ts +22 -0
  69. package/src/lib/nitro/get-page-handlers.js +33 -0
  70. package/src/lib/nitro/get-page-handlers.js.map +1 -0
  71. package/src/lib/nitro/i18n-prerender.d.ts +29 -0
  72. package/src/lib/nitro/i18n-prerender.js +61 -0
  73. package/src/lib/nitro/i18n-prerender.js.map +1 -0
  74. package/src/lib/nitro/page-endpoints-plugin.d.ts +7 -0
  75. package/src/lib/nitro/page-endpoints-plugin.js +72 -0
  76. package/src/lib/nitro/page-endpoints-plugin.js.map +1 -0
  77. package/src/lib/nitro/post-rendering-hook.d.ts +2 -0
  78. package/src/lib/nitro/post-rendering-hook.js +10 -0
  79. package/src/lib/nitro/post-rendering-hook.js.map +1 -0
  80. package/src/lib/nitro/renderers.d.ts +33 -0
  81. package/src/lib/nitro/renderers.js +22 -0
  82. package/src/lib/nitro/renderers.js.map +1 -0
  83. package/src/lib/nitro/types.d.ts +122 -0
  84. package/src/lib/nx-plugin/_virtual/_rolldown/runtime.js +23 -0
  85. package/src/lib/nx-plugin/builders.json +15 -0
  86. package/src/lib/nx-plugin/executors.json +13 -5
  87. package/src/lib/nx-plugin/generators.json +25 -0
  88. package/src/lib/nx-plugin/node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/string/camelCase.js +13 -0
  89. package/src/lib/nx-plugin/node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/string/camelCase.js.map +1 -0
  90. package/src/lib/nx-plugin/node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/string/capitalize.js +8 -0
  91. package/src/lib/nx-plugin/node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/string/capitalize.js.map +1 -0
  92. package/src/lib/nx-plugin/node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/string/words.js +9 -0
  93. package/src/lib/nx-plugin/node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/string/words.js.map +1 -0
  94. package/src/lib/nx-plugin/package.json +1 -5
  95. package/src/lib/nx-plugin/src/builders/vite/schema.json +39 -0
  96. package/src/lib/nx-plugin/src/builders/vite/vite-build.d.ts +11 -0
  97. package/src/lib/nx-plugin/src/builders/vite/vite-build.js +18 -0
  98. package/src/lib/nx-plugin/src/builders/vite/vite-build.js.map +1 -0
  99. package/src/lib/nx-plugin/src/builders/vite-dev-server/dev-server.d.ts +7 -0
  100. package/src/lib/nx-plugin/src/builders/vite-dev-server/dev-server.js +14 -0
  101. package/src/lib/nx-plugin/src/builders/vite-dev-server/dev-server.js.map +1 -0
  102. package/src/lib/nx-plugin/src/builders/vite-dev-server/schema.json +27 -0
  103. package/src/lib/nx-plugin/src/executors/vite-dev-server/compat.d.ts +1 -1
  104. package/src/lib/nx-plugin/src/executors/vite-dev-server/compat.js +7 -7
  105. package/src/lib/nx-plugin/src/executors/vite-dev-server/compat.js.map +1 -1
  106. package/src/lib/nx-plugin/src/executors/vite-dev-server/schema.d.ts +1 -1
  107. package/src/lib/nx-plugin/src/executors/vite-dev-server/vite-dev-server.impl.d.ts +1 -1
  108. package/src/lib/nx-plugin/src/executors/vite-dev-server/vite-dev-server.impl.js +6 -4
  109. package/src/lib/nx-plugin/src/executors/vite-dev-server/vite-dev-server.impl.js.map +1 -1
  110. package/src/lib/nx-plugin/src/executors/vitest/compat.d.ts +1 -1
  111. package/src/lib/nx-plugin/src/executors/vitest/compat.js +7 -7
  112. package/src/lib/nx-plugin/src/executors/vitest/compat.js.map +1 -1
  113. package/src/lib/nx-plugin/src/executors/vitest/schema.d.ts +1 -1
  114. package/src/lib/nx-plugin/src/executors/vitest/vitest.impl.d.ts +1 -1
  115. package/src/lib/nx-plugin/src/executors/vitest/vitest.impl.js +6 -4
  116. package/src/lib/nx-plugin/src/executors/vitest/vitest.impl.js.map +1 -1
  117. package/src/lib/nx-plugin/src/generators/app/compat.d.ts +9 -3
  118. package/src/lib/nx-plugin/src/generators/app/compat.js +18 -7
  119. package/src/lib/nx-plugin/src/generators/app/compat.js.map +1 -1
  120. package/src/lib/nx-plugin/src/generators/app/files/agents/AGENTS.md +11 -0
  121. package/src/lib/nx-plugin/src/generators/app/files/agents/CLAUDE.md +1 -0
  122. package/src/lib/nx-plugin/src/generators/app/files/root/tsconfig.base.json +3 -6
  123. package/src/lib/nx-plugin/src/generators/app/files/template-angular/src/test-setup.ts__template__ +1 -0
  124. package/src/lib/nx-plugin/src/generators/app/files/template-angular/tsconfig.app.json__template__ +1 -3
  125. package/src/lib/nx-plugin/src/generators/app/files/template-angular/tsconfig.json__template__ +2 -1
  126. package/src/lib/nx-plugin/src/generators/app/files/template-angular/vite.config.ts__template__ +6 -2
  127. package/src/lib/nx-plugin/src/generators/app/files/template-angular-v17/src/app/app.config.ts__template__ +0 -6
  128. package/src/lib/nx-plugin/src/generators/app/files/template-angular-v17/tsconfig.json__template__ +4 -2
  129. package/src/lib/nx-plugin/src/generators/app/files/template-angular-v17/vite.config.ts__template__ +1 -21
  130. package/src/lib/nx-plugin/src/generators/app/files/template-angular-v18/src/app/app.config.ts__template__ +0 -6
  131. package/src/lib/nx-plugin/src/generators/app/files/template-angular-v18/tsconfig.json__template__ +4 -2
  132. package/src/lib/nx-plugin/src/generators/app/files/template-angular-v18/vite.config.ts__template__ +2 -22
  133. package/src/lib/nx-plugin/src/generators/app/files/template-angular-v19/src/app/app.config.ts__template__ +0 -6
  134. package/src/lib/nx-plugin/src/generators/app/files/template-angular-v19/tsconfig.app.json__template__ +1 -3
  135. package/src/lib/nx-plugin/src/generators/app/files/template-angular-v19/tsconfig.json__template__ +4 -2
  136. package/src/lib/nx-plugin/src/generators/app/files/template-angular-v19/vite.config.ts__template__ +1 -12
  137. package/src/lib/nx-plugin/src/generators/app/generator.d.ts +11 -11
  138. package/src/lib/nx-plugin/src/generators/app/generator.js +81 -92
  139. package/src/lib/nx-plugin/src/generators/app/generator.js.map +1 -1
  140. package/src/lib/nx-plugin/src/generators/app/lib/add-agent-context.d.ts +2 -0
  141. package/src/lib/nx-plugin/src/generators/app/lib/add-agent-context.js +16 -0
  142. package/src/lib/nx-plugin/src/generators/app/lib/add-agent-context.js.map +1 -0
  143. package/src/lib/nx-plugin/src/generators/app/lib/add-analog-dependencies.d.ts +1 -1
  144. package/src/lib/nx-plugin/src/generators/app/lib/add-analog-project-config.d.ts +1 -1
  145. package/src/lib/nx-plugin/src/generators/app/lib/add-analog-project-config.js +73 -81
  146. package/src/lib/nx-plugin/src/generators/app/lib/add-analog-project-config.js.map +1 -1
  147. package/src/lib/nx-plugin/src/generators/app/lib/add-angular-app.d.ts +2 -2
  148. package/src/lib/nx-plugin/src/generators/app/lib/add-angular-app.js +25 -58
  149. package/src/lib/nx-plugin/src/generators/app/lib/add-angular-app.js.map +1 -1
  150. package/src/lib/nx-plugin/src/generators/app/lib/add-eslint.d.ts +2 -2
  151. package/src/lib/nx-plugin/src/generators/app/lib/add-files.d.ts +2 -2
  152. package/src/lib/nx-plugin/src/generators/app/lib/add-files.js +16 -16
  153. package/src/lib/nx-plugin/src/generators/app/lib/add-files.js.map +1 -1
  154. package/src/lib/nx-plugin/src/generators/app/lib/add-home-page.d.ts +2 -2
  155. package/src/lib/nx-plugin/src/generators/app/lib/add-home-page.js +15 -13
  156. package/src/lib/nx-plugin/src/generators/app/lib/add-home-page.js.map +1 -1
  157. package/src/lib/nx-plugin/src/generators/app/lib/add-tailwind-config.d.ts +7 -7
  158. package/src/lib/nx-plugin/src/generators/app/lib/add-tailwind-config.js +19 -29
  159. package/src/lib/nx-plugin/src/generators/app/lib/add-tailwind-config.js.map +1 -1
  160. package/src/lib/nx-plugin/src/generators/app/lib/add-tailwind-helpers.d.ts +4 -5
  161. package/src/lib/nx-plugin/src/generators/app/lib/add-tailwind-helpers.js +61 -103
  162. package/src/lib/nx-plugin/src/generators/app/lib/add-tailwind-helpers.js.map +1 -1
  163. package/src/lib/nx-plugin/src/generators/app/lib/add-vite-plugin.d.ts +1 -1
  164. package/src/lib/nx-plugin/src/generators/app/lib/cleanup-files.d.ts +2 -2
  165. package/src/lib/nx-plugin/src/generators/app/lib/cleanup-files.js +17 -20
  166. package/src/lib/nx-plugin/src/generators/app/lib/cleanup-files.js.map +1 -1
  167. package/src/lib/nx-plugin/src/generators/app/lib/initialize-analog-workspace.d.ts +2 -2
  168. package/src/lib/nx-plugin/src/generators/app/lib/update-index-html.d.ts +1 -1
  169. package/src/lib/nx-plugin/src/generators/app/lib/update-index-html.js +15 -18
  170. package/src/lib/nx-plugin/src/generators/app/lib/update-index-html.js.map +1 -1
  171. package/src/lib/nx-plugin/src/generators/app/schema.d.ts +2 -0
  172. package/src/lib/nx-plugin/src/generators/app/versions/minimum-supported-versions.d.ts +2 -3
  173. package/src/lib/nx-plugin/src/generators/app/versions/minimum-supported-versions.js +7 -10
  174. package/src/lib/nx-plugin/src/generators/app/versions/minimum-supported-versions.js.map +1 -1
  175. package/src/lib/nx-plugin/src/generators/app/versions/nx-dependencies.d.ts +0 -3
  176. package/src/lib/nx-plugin/src/generators/app/versions/nx_17_X/versions.d.ts +1 -6
  177. package/src/lib/nx-plugin/src/generators/app/versions/nx_18_X/versions.d.ts +12 -17
  178. package/src/lib/nx-plugin/src/generators/app/versions/nx_18_X/versions.js +11 -37
  179. package/src/lib/nx-plugin/src/generators/app/versions/nx_18_X/versions.js.map +1 -1
  180. package/src/lib/nx-plugin/src/generators/app/versions/tailwind-dependencies.d.ts +1 -1
  181. package/src/lib/nx-plugin/src/generators/app/versions/tailwind-dependencies.js +11 -15
  182. package/src/lib/nx-plugin/src/generators/app/versions/tailwind-dependencies.js.map +1 -1
  183. package/src/lib/nx-plugin/src/generators/app/versions.d.ts +0 -28
  184. package/src/lib/nx-plugin/src/generators/init/compat.d.ts +9 -3
  185. package/src/lib/nx-plugin/src/generators/init/compat.js +18 -7
  186. package/src/lib/nx-plugin/src/generators/init/compat.js.map +1 -1
  187. package/src/lib/nx-plugin/src/generators/init/files/vite.config.ts__template__ +2 -6
  188. package/src/lib/nx-plugin/src/generators/init/generator.d.ts +3 -3
  189. package/src/lib/nx-plugin/src/generators/init/generator.js +55 -65
  190. package/src/lib/nx-plugin/src/generators/init/generator.js.map +1 -1
  191. package/src/lib/nx-plugin/src/generators/init/lib/add-analog-dependencies.d.ts +1 -1
  192. package/src/lib/nx-plugin/src/generators/init/lib/add-analog-dependencies.js +20 -20
  193. package/src/lib/nx-plugin/src/generators/init/lib/add-analog-dependencies.js.map +1 -1
  194. package/src/lib/nx-plugin/src/generators/init/lib/update-app-tsconfig.d.ts +2 -2
  195. package/src/lib/nx-plugin/src/generators/init/lib/update-app-tsconfig.js +21 -21
  196. package/src/lib/nx-plugin/src/generators/init/lib/update-app-tsconfig.js.map +1 -1
  197. package/src/lib/nx-plugin/src/generators/init/lib/update-build-target.d.ts +2 -2
  198. package/src/lib/nx-plugin/src/generators/init/lib/update-build-target.js +57 -66
  199. package/src/lib/nx-plugin/src/generators/init/lib/update-build-target.js.map +1 -1
  200. package/src/lib/nx-plugin/src/generators/init/lib/update-git-ignore.d.ts +1 -1
  201. package/src/lib/nx-plugin/src/generators/init/lib/update-git-ignore.js +12 -11
  202. package/src/lib/nx-plugin/src/generators/init/lib/update-git-ignore.js.map +1 -1
  203. package/src/lib/nx-plugin/src/generators/init/lib/update-index-html.d.ts +2 -2
  204. package/src/lib/nx-plugin/src/generators/init/lib/update-index-html.js +18 -21
  205. package/src/lib/nx-plugin/src/generators/init/lib/update-index-html.js.map +1 -1
  206. package/src/lib/nx-plugin/src/generators/init/lib/update-main.d.ts +2 -2
  207. package/src/lib/nx-plugin/src/generators/init/lib/update-main.js +13 -15
  208. package/src/lib/nx-plugin/src/generators/init/lib/update-main.js.map +1 -1
  209. package/src/lib/nx-plugin/src/generators/init/lib/update-package-json.d.ts +2 -2
  210. package/src/lib/nx-plugin/src/generators/init/lib/update-package-json.js +20 -31
  211. package/src/lib/nx-plugin/src/generators/init/lib/update-package-json.js.map +1 -1
  212. package/src/lib/nx-plugin/src/generators/init/lib/update-serve-target.d.ts +2 -2
  213. package/src/lib/nx-plugin/src/generators/init/lib/update-serve-target.js +44 -51
  214. package/src/lib/nx-plugin/src/generators/init/lib/update-serve-target.js.map +1 -1
  215. package/src/lib/nx-plugin/src/generators/init/lib/update-test-target.d.ts +2 -2
  216. package/src/lib/nx-plugin/src/generators/init/lib/update-test-target.js +28 -34
  217. package/src/lib/nx-plugin/src/generators/init/lib/update-test-target.js.map +1 -1
  218. package/src/lib/nx-plugin/src/generators/init/lib/update-test-tsconfig.d.ts +2 -2
  219. package/src/lib/nx-plugin/src/generators/init/lib/update-test-tsconfig.js +20 -20
  220. package/src/lib/nx-plugin/src/generators/init/lib/update-test-tsconfig.js.map +1 -1
  221. package/src/lib/nx-plugin/src/generators/init/test-files/src/test-setup.ts__template__ +1 -0
  222. package/src/lib/nx-plugin/src/generators/page/__snapshots__/generator.spec.ts.snap +0 -7
  223. package/src/lib/nx-plugin/src/generators/page/compat.d.ts +9 -0
  224. package/src/lib/nx-plugin/src/generators/page/compat.js +19 -0
  225. package/src/lib/nx-plugin/src/generators/page/compat.js.map +1 -0
  226. package/src/lib/nx-plugin/src/generators/page/files/__fileName__.page.ts__template__ +0 -1
  227. package/src/lib/nx-plugin/src/generators/page/generator.d.ts +3 -4
  228. package/src/lib/nx-plugin/src/generators/page/generator.js +35 -44
  229. package/src/lib/nx-plugin/src/generators/page/generator.js.map +1 -1
  230. package/src/lib/nx-plugin/src/generators/preset/__snapshots__/generator.spec.ts.snap +8 -7
  231. package/src/lib/nx-plugin/src/generators/preset/generator.d.ts +3 -3
  232. package/src/lib/nx-plugin/src/generators/preset/generator.js +24 -43
  233. package/src/lib/nx-plugin/src/generators/preset/generator.js.map +1 -1
  234. package/src/lib/nx-plugin/src/generators/setup-vitest/compat.d.ts +9 -3
  235. package/src/lib/nx-plugin/src/generators/setup-vitest/compat.js +18 -7
  236. package/src/lib/nx-plugin/src/generators/setup-vitest/compat.js.map +1 -1
  237. package/src/lib/nx-plugin/src/generators/setup-vitest/files/src/test-setup.ts__template__ +1 -0
  238. package/src/lib/nx-plugin/src/generators/setup-vitest/files/vite.config.mts__template__ +0 -6
  239. package/src/lib/nx-plugin/src/generators/setup-vitest/generator.d.ts +3 -3
  240. package/src/lib/nx-plugin/src/generators/setup-vitest/generator.js +33 -42
  241. package/src/lib/nx-plugin/src/generators/setup-vitest/generator.js.map +1 -1
  242. package/src/lib/nx-plugin/src/generators/setup-vitest/lib/add-analog-dependencies.d.ts +1 -1
  243. package/src/lib/nx-plugin/src/generators/setup-vitest/lib/add-analog-dependencies.js +8 -7
  244. package/src/lib/nx-plugin/src/generators/setup-vitest/lib/add-analog-dependencies.js.map +1 -1
  245. package/src/lib/nx-plugin/src/generators/setup-vitest/lib/update-test-target.d.ts +2 -2
  246. package/src/lib/nx-plugin/src/generators/setup-vitest/lib/update-test-target.js +21 -27
  247. package/src/lib/nx-plugin/src/generators/setup-vitest/lib/update-test-target.js.map +1 -1
  248. package/src/lib/nx-plugin/src/generators/setup-vitest/lib/update-tsconfig.d.ts +2 -2
  249. package/src/lib/nx-plugin/src/generators/setup-vitest/lib/update-tsconfig.js +20 -22
  250. package/src/lib/nx-plugin/src/generators/setup-vitest/lib/update-tsconfig.js.map +1 -1
  251. package/src/lib/nx-plugin/src/index.js +0 -2
  252. package/src/lib/nx-plugin/src/utils/version-utils.d.ts +1 -1
  253. package/src/lib/nx-plugin/src/utils/version-utils.js +21 -27
  254. package/src/lib/nx-plugin/src/utils/version-utils.js.map +1 -1
  255. package/src/lib/nx-plugin/src/utils/versions/dependencies.js +43 -62
  256. package/src/lib/nx-plugin/src/utils/versions/dependencies.js.map +1 -1
  257. package/src/lib/nx-plugin/src/utils/versions/dev-dependencies.js +50 -83
  258. package/src/lib/nx-plugin/src/utils/versions/dev-dependencies.js.map +1 -1
  259. package/src/lib/nx-plugin/src/utils/versions/ng_17_X/versions.d.ts +1 -1
  260. package/src/lib/nx-plugin/src/utils/versions/ng_17_X/versions.js +33 -20
  261. package/src/lib/nx-plugin/src/utils/versions/ng_17_X/versions.js.map +1 -1
  262. package/src/lib/nx-plugin/src/utils/versions/ng_18_X/versions.d.ts +1 -1
  263. package/src/lib/nx-plugin/src/utils/versions/ng_18_X/versions.js +33 -20
  264. package/src/lib/nx-plugin/src/utils/versions/ng_18_X/versions.js.map +1 -1
  265. package/src/lib/nx-plugin/src/utils/versions/ng_19_X/versions.d.ts +9 -8
  266. package/src/lib/nx-plugin/src/utils/versions/ng_19_X/versions.js +39 -23
  267. package/src/lib/nx-plugin/src/utils/versions/ng_19_X/versions.js.map +1 -1
  268. package/src/lib/options.d.ts +175 -80
  269. package/src/lib/platform-plugin.d.ts +2 -2
  270. package/src/lib/platform-plugin.js +48 -62
  271. package/src/lib/platform-plugin.js.map +1 -0
  272. package/src/lib/route-file-discovery.d.ts +23 -0
  273. package/src/lib/route-file-discovery.js +114 -0
  274. package/src/lib/route-file-discovery.js.map +1 -0
  275. package/src/lib/route-generation-plugin.d.ts +3 -0
  276. package/src/lib/route-generation-plugin.js +45 -0
  277. package/src/lib/route-generation-plugin.js.map +1 -0
  278. package/src/lib/route-idiom-diagnostics.d.ts +13 -0
  279. package/src/lib/route-idiom-diagnostics.js +160 -0
  280. package/src/lib/route-idiom-diagnostics.js.map +1 -0
  281. package/src/lib/route-manifest.d.ts +122 -0
  282. package/src/lib/route-manifest.js +431 -0
  283. package/src/lib/route-manifest.js.map +1 -0
  284. package/src/lib/router-plugin.d.ts +19 -19
  285. package/src/lib/router-plugin.js +234 -176
  286. package/src/lib/router-plugin.js.map +1 -0
  287. package/src/lib/server-fn-client-transform.d.ts +26 -0
  288. package/src/lib/server-fn-client-transform.js +97 -0
  289. package/src/lib/server-fn-client-transform.js.map +1 -0
  290. package/src/lib/server-fn-id.d.ts +25 -0
  291. package/src/lib/server-fn-id.js +37 -0
  292. package/src/lib/server-fn-id.js.map +1 -0
  293. package/src/lib/ssr/defer-streaming-plugin.d.ts +65 -0
  294. package/src/lib/ssr/inject-html-plugin.d.ts +1 -1
  295. package/src/lib/ssr/inject-html-plugin.js +25 -25
  296. package/src/lib/ssr/inject-html-plugin.js.map +1 -0
  297. package/src/lib/ssr/ssr-build-plugin.d.ts +26 -2
  298. package/src/lib/ssr/ssr-build-plugin.js +38 -30
  299. package/src/lib/ssr/ssr-build-plugin.js.map +1 -0
  300. package/src/lib/style-pipeline.d.ts +33 -0
  301. package/src/lib/style-pipeline.js +32 -0
  302. package/src/lib/style-pipeline.js.map +1 -0
  303. package/src/lib/style-preprocessor.d.ts +28 -0
  304. package/src/lib/style-preprocessor.js +35 -0
  305. package/src/lib/style-preprocessor.js.map +1 -0
  306. package/src/lib/tailwind-preprocessor.d.ts +23 -0
  307. package/src/lib/tailwind-preprocessor.js +153 -0
  308. package/src/lib/tailwind-preprocessor.js.map +1 -0
  309. package/src/lib/typed-routes-plugin.d.ts +50 -0
  310. package/src/lib/typed-routes-plugin.js +234 -0
  311. package/src/lib/typed-routes-plugin.js.map +1 -0
  312. package/src/lib/utils/debug-harness.d.ts +23 -0
  313. package/src/lib/utils/debug-harness.js +88 -0
  314. package/src/lib/utils/debug-harness.js.map +1 -0
  315. package/src/lib/utils/debug-log-file.d.ts +5 -0
  316. package/src/lib/utils/debug-log-file.js +56 -0
  317. package/src/lib/utils/debug-log-file.js.map +1 -0
  318. package/src/lib/utils/debug.d.ts +22 -0
  319. package/src/lib/utils/debug.js +27 -0
  320. package/src/lib/utils/debug.js.map +1 -0
  321. package/src/lib/utils/rolldown.d.ts +3 -0
  322. package/src/lib/utils/rolldown.js +15 -0
  323. package/src/lib/utils/rolldown.js.map +1 -0
  324. package/src/server-mode-plugin.d.ts +6 -6
  325. package/src/server-mode-plugin.js +16 -18
  326. package/src/server-mode-plugin.js.map +1 -0
  327. package/src/style-pipeline.d.ts +1 -0
  328. package/src/style-pipeline.js +2 -0
  329. package/src/style-preprocessor.d.ts +1 -0
  330. package/src/style-preprocessor.js +2 -0
  331. package/README.md +0 -5
  332. package/src/lib/content/prism/options.js +0 -1
  333. package/src/lib/content/shiki/options.js +0 -1
  334. package/src/lib/nx-plugin/README.md +0 -23
  335. package/src/lib/nx-plugin/src/executors/vite/compat.d.ts +0 -3
  336. package/src/lib/nx-plugin/src/executors/vite/compat.js +0 -8
  337. package/src/lib/nx-plugin/src/executors/vite/compat.js.map +0 -1
  338. package/src/lib/nx-plugin/src/executors/vite/schema.d.ts +0 -2
  339. package/src/lib/nx-plugin/src/executors/vite/schema.json +0 -147
  340. package/src/lib/nx-plugin/src/executors/vite/vite.impl.d.ts +0 -2
  341. package/src/lib/nx-plugin/src/executors/vite/vite.impl.js +0 -5
  342. package/src/lib/nx-plugin/src/executors/vite/vite.impl.js.map +0 -1
  343. package/src/lib/nx-plugin/src/generators/app/files/tailwind/v4/.postcssrc.json +0 -5
  344. package/src/lib/nx-plugin/src/generators/app/files/tailwind/v4/tailwind.config.ts__template__ +0 -14
  345. package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/index.html__template__ +0 -15
  346. package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/src/app/app.component.spec.ts__template__ +0 -17
  347. package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/src/app/app.component.ts__template__ +0 -10
  348. package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/src/favicon.ico__template__ +0 -0
  349. package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/src/main.providers.ts__template__ +0 -5
  350. package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/src/main.server.ts__template__ +0 -23
  351. package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/src/main.ts__template__ +0 -17
  352. package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/src/public/assets/.gitkeep__template__ +0 -0
  353. package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/src/public/assets/analog.svg__template__ +0 -1
  354. package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/src/public/assets/vite.svg__template__ +0 -1
  355. package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/src/server/routes/v1/hello.ts__template__ +0 -3
  356. package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/src/styles.css__template__ +0 -4
  357. package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/src/test-setup.ts__template__ +0 -12
  358. package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/src/vite-env.d.ts__template__ +0 -1
  359. package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/tsconfig.app.json__template__ +0 -16
  360. package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/tsconfig.editor.json__template__ +0 -7
  361. package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/tsconfig.json__template__ +0 -32
  362. package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/tsconfig.spec.json__template__ +0 -14
  363. package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/vite.config.ts__template__ +0 -69
  364. package/src/lib/nx-plugin/src/generators/app/lib/add-analog-dependencies.js +0 -15
  365. package/src/lib/nx-plugin/src/generators/app/lib/add-analog-dependencies.js.map +0 -1
  366. package/src/lib/nx-plugin/src/generators/app/lib/add-eslint.js +0 -58
  367. package/src/lib/nx-plugin/src/generators/app/lib/add-eslint.js.map +0 -1
  368. package/src/lib/nx-plugin/src/generators/app/lib/add-vite-plugin.js +0 -47
  369. package/src/lib/nx-plugin/src/generators/app/lib/add-vite-plugin.js.map +0 -1
  370. package/src/lib/nx-plugin/src/generators/app/lib/initialize-analog-workspace.js +0 -110
  371. package/src/lib/nx-plugin/src/generators/app/lib/initialize-analog-workspace.js.map +0 -1
  372. package/src/lib/nx-plugin/src/generators/app/versions/dependencies.js +0 -56
  373. package/src/lib/nx-plugin/src/generators/app/versions/dependencies.js.map +0 -1
  374. package/src/lib/nx-plugin/src/generators/app/versions/dev-dependencies.js +0 -72
  375. package/src/lib/nx-plugin/src/generators/app/versions/dev-dependencies.js.map +0 -1
  376. package/src/lib/nx-plugin/src/generators/app/versions/nx-dependencies.js +0 -46
  377. package/src/lib/nx-plugin/src/generators/app/versions/nx-dependencies.js.map +0 -1
  378. package/src/lib/nx-plugin/src/generators/app/versions/nx_17_X/versions.js +0 -37
  379. package/src/lib/nx-plugin/src/generators/app/versions/nx_17_X/versions.js.map +0 -1
  380. package/src/lib/nx-plugin/src/generators/app/versions.js +0 -43
  381. package/src/lib/nx-plugin/src/generators/app/versions.js.map +0 -1
  382. package/src/lib/nx-plugin/src/index.d.ts +0 -0
  383. package/src/lib/nx-plugin/src/index.js.map +0 -1
  384. package/src/lib/options.js +0 -1
  385. package/src/lib/ssr/ssr-xhr-plugin.d.ts +0 -2
  386. package/src/lib/ssr/ssr-xhr-plugin.js +0 -28
@@ -0,0 +1,61 @@
1
+ //#region packages/platform/src/lib/nitro/i18n-prerender.ts
2
+ /**
3
+ * Expands a list of routes to include locale-prefixed variants.
4
+ *
5
+ * For each route and each locale, generates a prefixed route:
6
+ * '/' + locale + route
7
+ *
8
+ * The default locale's routes are included both with and without the prefix
9
+ * so that `/about` and `/en/about` both render.
10
+ */
11
+ function expandRoutesWithLocales(routes, i18n) {
12
+ const expanded = [];
13
+ for (const route of routes) {
14
+ if (route.includes("/_analog/") || route === "/api" || route.startsWith("/api/")) {
15
+ expanded.push(route);
16
+ continue;
17
+ }
18
+ for (const locale of i18n.locales) {
19
+ const prefix = `/${locale}`;
20
+ const localizedRoute = route === "/" ? prefix : `${prefix}${route}`;
21
+ expanded.push(localizedRoute);
22
+ }
23
+ if (!expanded.includes(route)) expanded.push(route);
24
+ }
25
+ return expanded;
26
+ }
27
+ /**
28
+ * Creates a post-rendering hook that injects the `lang` attribute
29
+ * into the `<html>` tag of prerendered pages based on the route's
30
+ * locale prefix.
31
+ */
32
+ function createI18nPostRenderingHook(i18n) {
33
+ return async (route) => {
34
+ if (!route.contents || typeof route.contents !== "string") return;
35
+ const locale = detectLocaleFromRoute(route.route, i18n);
36
+ if (!locale) return;
37
+ route.contents = setHtmlLang(route.contents, locale);
38
+ };
39
+ }
40
+ /**
41
+ * Detects the locale from a prerendered route path by checking
42
+ * the first path segment against the configured locales.
43
+ */
44
+ function detectLocaleFromRoute(route, i18n) {
45
+ const firstSegment = route.split("/").filter(Boolean)[0];
46
+ if (firstSegment && i18n.locales.includes(firstSegment)) return firstSegment;
47
+ return i18n.defaultLocale;
48
+ }
49
+ /**
50
+ * Sets the `lang` attribute on the `<html>` tag in an HTML string.
51
+ * If a `lang` attribute already exists, it is replaced.
52
+ * If no `lang` attribute exists, it is added.
53
+ */
54
+ function setHtmlLang(html, locale) {
55
+ if (/<html[^>]*\slang\s*=\s*["'][^"']*["']/i.test(html)) return html.replace(/(<html[^>]*\s)lang\s*=\s*["'][^"']*["']/i, `$1lang="${locale}"`);
56
+ return html.replace(/<html/i, `<html lang="${locale}"`);
57
+ }
58
+ //#endregion
59
+ export { createI18nPostRenderingHook, expandRoutesWithLocales };
60
+
61
+ //# sourceMappingURL=i18n-prerender.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n-prerender.js","names":[],"sources":["../../../../src/lib/nitro/i18n-prerender.ts"],"sourcesContent":["import type { PrerenderRoute } from 'nitro/types';\nimport type { I18nPrerenderOptions } from './types.js';\n\n/**\n * Expands a list of routes to include locale-prefixed variants.\n *\n * For each route and each locale, generates a prefixed route:\n * '/' + locale + route\n *\n * The default locale's routes are included both with and without the prefix\n * so that `/about` and `/en/about` both render.\n */\nexport function expandRoutesWithLocales(\n routes: string[],\n i18n: I18nPrerenderOptions,\n): string[] {\n const expanded: string[] = [];\n\n for (const route of routes) {\n // Skip locale expansion for internal analog endpoints and API routes.\n // `startsWith('/api/')` alone misses the bare `/api` path, which\n // would otherwise get locale-prefixed and produce phantom routes like\n // `/en/api`.\n if (\n route.includes('/_analog/') ||\n route === '/api' ||\n route.startsWith('/api/')\n ) {\n expanded.push(route);\n continue;\n }\n\n for (const locale of i18n.locales) {\n const prefix = `/${locale}`;\n const localizedRoute = route === '/' ? prefix : `${prefix}${route}`;\n expanded.push(localizedRoute);\n }\n\n if (!expanded.includes(route)) {\n expanded.push(route);\n }\n }\n\n return expanded;\n}\n\n/**\n * Creates a post-rendering hook that injects the `lang` attribute\n * into the `<html>` tag of prerendered pages based on the route's\n * locale prefix.\n */\nexport function createI18nPostRenderingHook(\n i18n: I18nPrerenderOptions,\n): (route: PrerenderRoute) => Promise<void> {\n return async (route: PrerenderRoute) => {\n if (!route.contents || typeof route.contents !== 'string') {\n return;\n }\n\n const locale = detectLocaleFromRoute(route.route, i18n);\n if (!locale) {\n return;\n }\n\n route.contents = setHtmlLang(route.contents, locale);\n };\n}\n\n/**\n * Detects the locale from a prerendered route path by checking\n * the first path segment against the configured locales.\n */\nexport function detectLocaleFromRoute(\n route: string,\n i18n: I18nPrerenderOptions,\n): string {\n const segments = route.split('/').filter(Boolean);\n const firstSegment = segments[0];\n\n if (firstSegment && i18n.locales.includes(firstSegment)) {\n return firstSegment;\n }\n\n return i18n.defaultLocale;\n}\n\n/**\n * Sets the `lang` attribute on the `<html>` tag in an HTML string.\n * If a `lang` attribute already exists, it is replaced.\n * If no `lang` attribute exists, it is added.\n */\nexport function setHtmlLang(html: string, locale: string): string {\n if (/<html[^>]*\\slang\\s*=\\s*[\"'][^\"']*[\"']/i.test(html)) {\n return html.replace(\n /(<html[^>]*\\s)lang\\s*=\\s*[\"'][^\"']*[\"']/i,\n `$1lang=\"${locale}\"`,\n );\n }\n\n return html.replace(/<html/i, `<html lang=\"${locale}\"`);\n}\n"],"mappings":";;;;;;;;;;AAYA,SAAgB,wBACd,QACA,MACU;CACV,MAAM,WAAqB,EAAE;AAE7B,MAAK,MAAM,SAAS,QAAQ;AAK1B,MACE,MAAM,SAAS,YAAY,IAC3B,UAAU,UACV,MAAM,WAAW,QAAQ,EACzB;AACA,YAAS,KAAK,MAAM;AACpB;;AAGF,OAAK,MAAM,UAAU,KAAK,SAAS;GACjC,MAAM,SAAS,IAAI;GACnB,MAAM,iBAAiB,UAAU,MAAM,SAAS,GAAG,SAAS;AAC5D,YAAS,KAAK,eAAe;;AAG/B,MAAI,CAAC,SAAS,SAAS,MAAM,CAC3B,UAAS,KAAK,MAAM;;AAIxB,QAAO;;;;;;;AAQT,SAAgB,4BACd,MAC0C;AAC1C,QAAO,OAAO,UAA0B;AACtC,MAAI,CAAC,MAAM,YAAY,OAAO,MAAM,aAAa,SAC/C;EAGF,MAAM,SAAS,sBAAsB,MAAM,OAAO,KAAK;AACvD,MAAI,CAAC,OACH;AAGF,QAAM,WAAW,YAAY,MAAM,UAAU,OAAO;;;;;;;AAQxD,SAAgB,sBACd,OACA,MACQ;CAER,MAAM,eADW,MAAM,MAAM,IAAI,CAAC,OAAO,QAAQ,CACnB;AAE9B,KAAI,gBAAgB,KAAK,QAAQ,SAAS,aAAa,CACrD,QAAO;AAGT,QAAO,KAAK;;;;;;;AAQd,SAAgB,YAAY,MAAc,QAAwB;AAChE,KAAI,yCAAyC,KAAK,KAAK,CACrD,QAAO,KAAK,QACV,4CACA,WAAW,OAAO,GACnB;AAGH,QAAO,KAAK,QAAQ,UAAU,eAAe,OAAO,GAAG"}
@@ -0,0 +1,7 @@
1
+ export declare function pageEndpointsPlugin(): {
2
+ name: string;
3
+ transform(_code: string, id: string): Promise<{
4
+ code: string;
5
+ map: null;
6
+ } | undefined>;
7
+ };
@@ -0,0 +1,72 @@
1
+ import { SERVER_FETCH_FACTORY_SNIPPET } from "./renderers.js";
2
+ import { normalizePath } from "vite";
3
+ import { parseSync } from "oxc-parser";
4
+ //#region packages/platform/src/lib/nitro/page-endpoints-plugin.ts
5
+ function pageEndpointsPlugin() {
6
+ return {
7
+ name: "analogjs-platform-rollup-page-endpoint",
8
+ async transform(_code, id) {
9
+ if (normalizePath(id).includes("/pages/") && id.endsWith(".server.ts")) {
10
+ const fileExports = parseSync(id, _code, {
11
+ sourceType: "module",
12
+ lang: "ts"
13
+ }).module.staticExports.flatMap((e) => e.entries.filter((entry) => entry.exportName.name !== null).map((entry) => entry.exportName.name));
14
+ return {
15
+ code: `
16
+ import { defineHandler, fetchWithEvent } from 'nitro/h3';
17
+ import { createFetch } from 'ofetch';
18
+
19
+ ${fileExports.includes("load") ? _code : `
20
+ ${_code}
21
+ export const load = () => {
22
+ return {};
23
+ }`}
24
+
25
+ ${fileExports.includes("action") ? "" : `
26
+ export const action = () => {
27
+ return {};
28
+ }
29
+ `}
30
+
31
+ export default defineHandler(async(event) => {
32
+ ${SERVER_FETCH_FACTORY_SNIPPET}
33
+
34
+ if (event.method === 'GET') {
35
+ try {
36
+ return await load({
37
+ params: event.context?.params,
38
+ req: event.node?.req,
39
+ res: event.node?.res,
40
+ fetch: serverFetch,
41
+ event
42
+ });
43
+ } catch(e) {
44
+ console.error(\` An error occurred: \${e}\`)
45
+ throw e;
46
+ }
47
+ } else {
48
+ try {
49
+ return await action({
50
+ params: event.context?.params,
51
+ req: event.node?.req,
52
+ res: event.node?.res,
53
+ fetch: serverFetch,
54
+ event
55
+ });
56
+ } catch(e) {
57
+ console.error(\` An error occurred: \${e}\`)
58
+ throw e;
59
+ }
60
+ }
61
+ });
62
+ `,
63
+ map: null
64
+ };
65
+ }
66
+ }
67
+ };
68
+ }
69
+ //#endregion
70
+ export { pageEndpointsPlugin };
71
+
72
+ //# sourceMappingURL=page-endpoints-plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page-endpoints-plugin.js","names":[],"sources":["../../../../src/lib/nitro/page-endpoints-plugin.ts"],"sourcesContent":["import { parseSync } from 'oxc-parser';\nimport { normalizePath } from 'vite';\nimport { SERVER_FETCH_FACTORY_SNIPPET } from './renderers.js';\n\nexport function pageEndpointsPlugin() {\n return {\n name: 'analogjs-platform-rollup-page-endpoint',\n async transform(\n _code: string,\n id: string,\n ): Promise<{ code: string; map: null } | undefined> {\n if (normalizePath(id).includes('/pages/') && id.endsWith('.server.ts')) {\n const result = parseSync(id, _code, {\n sourceType: 'module',\n lang: 'ts',\n });\n\n const fileExports: string[] = result.module.staticExports.flatMap((e) =>\n e.entries\n .filter((entry) => entry.exportName.name !== null)\n .map((entry) => entry.exportName.name as string),\n );\n\n // In h3 v2 / Nitro v3, event.node is undefined during prerendering\n // (which uses the fetch-based pipeline, not Node.js http), and\n // event.context is undefined for sub-handler dispatches that\n // didn't go through the router params layer. We use optional\n // chaining on both so page endpoints work in Node.js server,\n // fetch-based prerender, and internal `fetchWithEvent` paths.\n //\n // Page loaders expect Nitro-style `$fetch` semantics (parsed data plus\n // internal relative-route support), so we construct a request-local\n // fetch using `createFetch` from ofetch + `fetchWithEvent` from h3.\n const code = `\n import { defineHandler, fetchWithEvent } from 'nitro/h3';\n import { createFetch } from 'ofetch';\n\n ${\n fileExports.includes('load')\n ? _code\n : `\n ${_code}\n export const load = () => {\n return {};\n }`\n }\n\n ${\n fileExports.includes('action')\n ? ''\n : `\n export const action = () => {\n return {};\n }\n `\n }\n\n export default defineHandler(async(event) => {\n ${SERVER_FETCH_FACTORY_SNIPPET}\n\n if (event.method === 'GET') {\n try {\n return await load({\n params: event.context?.params,\n req: event.node?.req,\n res: event.node?.res,\n fetch: serverFetch,\n event\n });\n } catch(e) {\n console.error(\\` An error occurred: \\${e}\\`)\n throw e;\n }\n } else {\n try {\n return await action({\n params: event.context?.params,\n req: event.node?.req,\n res: event.node?.res,\n fetch: serverFetch,\n event\n });\n } catch(e) {\n console.error(\\` An error occurred: \\${e}\\`)\n throw e;\n }\n }\n });\n `;\n\n return {\n code,\n map: null,\n };\n }\n\n return;\n },\n };\n}\n"],"mappings":";;;;AAIA,SAAgB,sBAAsB;AACpC,QAAO;EACL,MAAM;EACN,MAAM,UACJ,OACA,IACkD;AAClD,OAAI,cAAc,GAAG,CAAC,SAAS,UAAU,IAAI,GAAG,SAAS,aAAa,EAAE;IAMtE,MAAM,cALS,UAAU,IAAI,OAAO;KAClC,YAAY;KACZ,MAAM;KACP,CAAC,CAEmC,OAAO,cAAc,SAAS,MACjE,EAAE,QACC,QAAQ,UAAU,MAAM,WAAW,SAAS,KAAK,CACjD,KAAK,UAAU,MAAM,WAAW,KAAe,CACnD;AAqED,WAAO;KACL,MA1DW;;;;cAKP,YAAY,SAAS,OAAO,GACxB,QACA;kBACA,MAAM;;;mBAIX;;cAGC,YAAY,SAAS,SAAS,GAC1B,KACA;;;;gBAKL;;;gBAGG,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkCnC,KAAK;KACN;;;EAKN"}
@@ -0,0 +1,2 @@
1
+ import type { Nitro, PrerenderRoute } from "nitro/types";
2
+ export declare function addPostRenderingHooks(nitro: Nitro, hooks: ((pr: PrerenderRoute) => Promise<void> | void)[]): void;
@@ -0,0 +1,10 @@
1
+ //#region packages/platform/src/lib/nitro/post-rendering-hook.ts
2
+ function addPostRenderingHooks(nitro, hooks) {
3
+ for (const hook of hooks) nitro.hooks.hook("prerender:generate", async (route) => {
4
+ await hook(route);
5
+ });
6
+ }
7
+ //#endregion
8
+ export { addPostRenderingHooks };
9
+
10
+ //# sourceMappingURL=post-rendering-hook.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"post-rendering-hook.js","names":[],"sources":["../../../../src/lib/nitro/post-rendering-hook.ts"],"sourcesContent":["import type { Nitro, PrerenderRoute } from 'nitro/types';\n\nexport function addPostRenderingHooks(\n nitro: Nitro,\n hooks: ((pr: PrerenderRoute) => Promise<void> | void)[],\n): void {\n for (const hook of hooks) {\n nitro.hooks.hook('prerender:generate', async (route: PrerenderRoute) => {\n await hook(route);\n });\n }\n}\n"],"mappings":";AAEA,SAAgB,sBACd,OACA,OACM;AACN,MAAK,MAAM,QAAQ,MACjB,OAAM,MAAM,KAAK,sBAAsB,OAAO,UAA0B;AACtE,QAAM,KAAK,MAAM;GACjB"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Code snippet emitted into virtual modules to create a request-scoped
3
+ * fetch using ofetch's `createFetch` + h3's `fetchWithEvent`.
4
+ *
5
+ * Shared between the SSR renderer and page-endpoint virtual modules so
6
+ * the fetch-wiring logic stays in sync.
7
+ *
8
+ * The emitted variable is named `serverFetch` — callers should reference it
9
+ * by that name.
10
+ */
11
+ export declare const SERVER_FETCH_FACTORY_SNIPPET = "\n const serverFetch = createFetch({\n fetch: (resource, init) => {\n const url = resource instanceof Request ? resource.url : resource.toString();\n return fetchWithEvent(event, url, init);\n }\n });";
12
+ /**
13
+ * SSR renderer virtual module content.
14
+ *
15
+ * This code runs inside Nitro's server runtime (Node.js context) where
16
+ * event.node is always populated. In h3 v2, event.node is typed as optional,
17
+ * so we use h3's first-class event properties (event.path, event.method) where
18
+ * possible and apply optional chaining when accessing the Node.js context for
19
+ * the Angular renderer which requires raw req/res objects.
20
+ *
21
+ * h3 v2 idiomatic APIs used:
22
+ * - defineHandler (replaces defineEventHandler / eventHandler)
23
+ * - event.path (replaces event.node.req.url)
24
+ * - getResponseHeader compat shim (still available in h3 v2)
25
+ */
26
+ export declare function ssrRenderer(): string;
27
+ /**
28
+ * Client-only renderer virtual module content.
29
+ *
30
+ * Used when SSR is disabled — simply serves the static index.html template
31
+ * for every route, letting the client-side Angular router handle navigation.
32
+ */
33
+ export declare function clientRenderer(): string;
@@ -0,0 +1,22 @@
1
+ //#region packages/platform/src/lib/nitro/renderers.ts
2
+ /**
3
+ * Code snippet emitted into virtual modules to create a request-scoped
4
+ * fetch using ofetch's `createFetch` + h3's `fetchWithEvent`.
5
+ *
6
+ * Shared between the SSR renderer and page-endpoint virtual modules so
7
+ * the fetch-wiring logic stays in sync.
8
+ *
9
+ * The emitted variable is named `serverFetch` — callers should reference it
10
+ * by that name.
11
+ */
12
+ var SERVER_FETCH_FACTORY_SNIPPET = `
13
+ const serverFetch = createFetch({
14
+ fetch: (resource, init) => {
15
+ const url = resource instanceof Request ? resource.url : resource.toString();
16
+ return fetchWithEvent(event, url, init);
17
+ }
18
+ });`;
19
+ //#endregion
20
+ export { SERVER_FETCH_FACTORY_SNIPPET };
21
+
22
+ //# sourceMappingURL=renderers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderers.js","names":[],"sources":["../../../../src/lib/nitro/renderers.ts"],"sourcesContent":["/**\n * Code snippet emitted into virtual modules to create a request-scoped\n * fetch using ofetch's `createFetch` + h3's `fetchWithEvent`.\n *\n * Shared between the SSR renderer and page-endpoint virtual modules so\n * the fetch-wiring logic stays in sync.\n *\n * The emitted variable is named `serverFetch` — callers should reference it\n * by that name.\n */\nexport const SERVER_FETCH_FACTORY_SNIPPET = `\n const serverFetch = createFetch({\n fetch: (resource, init) => {\n const url = resource instanceof Request ? resource.url : resource.toString();\n return fetchWithEvent(event, url, init);\n }\n });`;\n\n/**\n * SSR renderer virtual module content.\n *\n * This code runs inside Nitro's server runtime (Node.js context) where\n * event.node is always populated. In h3 v2, event.node is typed as optional,\n * so we use h3's first-class event properties (event.path, event.method) where\n * possible and apply optional chaining when accessing the Node.js context for\n * the Angular renderer which requires raw req/res objects.\n *\n * h3 v2 idiomatic APIs used:\n * - defineHandler (replaces defineEventHandler / eventHandler)\n * - event.path (replaces event.node.req.url)\n * - getResponseHeader compat shim (still available in h3 v2)\n */\nexport function ssrRenderer() {\n return `\nimport { createFetch } from 'ofetch';\nimport { defineHandler, fetchWithEvent } from 'nitro/h3';\n// @ts-ignore\nimport renderer from '#analog/ssr';\nimport template from '#analog/index';\n\nconst normalizeHtmlRequestUrl = (url) =>\n url.replace(/\\\\/index\\\\.html(?=$|[?#])/, '/');\n\nexport default defineHandler(async (event) => {\n event.res.headers.set('content-type', 'text/html; charset=utf-8');\n const noSSR = event.res.headers.get('x-analog-no-ssr');\n const requestPath = normalizeHtmlRequestUrl(event.path);\n\n if (noSSR === 'true') {\n return template;\n }\n\n // event.path is the canonical h3 v2 way to access the request URL.\n // event.node?.req and event.node?.res are needed by the Angular SSR renderer\n // which operates on raw Node.js request/response objects.\n // During prerendering (Nitro v3 fetch-based pipeline), event.node is undefined.\n // The Angular renderer requires a req object with at least { headers, url },\n // so we provide a minimal stub to avoid runtime errors in prerender context.\n const req = event.node?.req\n ? {\n ...event.node.req,\n url: requestPath,\n originalUrl: requestPath,\n }\n : {\n headers: { host: 'localhost' },\n url: requestPath,\n originalUrl: requestPath,\n connection: {},\n };\n const res = event.node?.res;\n${SERVER_FETCH_FACTORY_SNIPPET}\n\n const html = await renderer(requestPath, template, { req, res, fetch: serverFetch });\n\n return html;\n});`;\n}\n\n/**\n * Client-only renderer virtual module content.\n *\n * Used when SSR is disabled — simply serves the static index.html template\n * for every route, letting the client-side Angular router handle navigation.\n */\nexport function clientRenderer() {\n return `\nimport { defineHandler } from 'nitro/h3';\nimport template from '#analog/index';\n\nexport default defineHandler(async (event) => {\n event.res.headers.set('content-type', 'text/html; charset=utf-8');\n return template;\n});\n`;\n}\n"],"mappings":";;;;;;;;;;;AAUA,IAAa,+BAA+B"}
@@ -0,0 +1,122 @@
1
+ import type { PrerenderRoute } from "nitro/types";
2
+ export interface I18nPrerenderOptions {
3
+ /**
4
+ * The default/source locale for the application.
5
+ */
6
+ defaultLocale: string;
7
+ /**
8
+ * List of supported locale identifiers.
9
+ * Each route will be prerendered once per locale with a locale prefix.
10
+ */
11
+ locales: string[];
12
+ }
13
+ export interface PrerenderOptions {
14
+ /**
15
+ * Add additional routes to prerender through crawling page links.
16
+ */
17
+ discover?: boolean;
18
+ /**
19
+ * List of routes to prerender resolved statically or dynamically.
20
+ */
21
+ routes?: (string | PrerenderContentDir | PrerenderRouteConfig)[] | (() => Promise<(string | PrerenderContentDir | PrerenderRouteConfig | undefined)[]>);
22
+ sitemap?: SitemapConfig;
23
+ /** List of functions that run for each route after pre-rendering is complete. */
24
+ postRenderingHooks?: ((routes: PrerenderRoute) => Promise<void>)[];
25
+ }
26
+ export type SitemapPriority = number | `${number}`;
27
+ export interface SitemapRouteDefinition {
28
+ route: string;
29
+ lastmod?: string;
30
+ changefreq?: "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | "never";
31
+ priority?: SitemapPriority;
32
+ }
33
+ export interface SitemapEntry extends SitemapRouteDefinition {
34
+ loc: string;
35
+ }
36
+ export type SitemapRouteInput = string | SitemapRouteDefinition | undefined;
37
+ export type SitemapRouteSource = SitemapRouteInput[] | (() => Promise<SitemapRouteInput[]>);
38
+ export type SitemapExcludeRule = string | RegExp | ((entry: SitemapEntry) => boolean | Promise<boolean>);
39
+ export type SitemapTransform = (entry: SitemapEntry) => SitemapRouteDefinition | false | Promise<SitemapRouteDefinition | false>;
40
+ export interface SitemapConfig {
41
+ host: string;
42
+ include?: SitemapRouteSource;
43
+ exclude?: SitemapExcludeRule[];
44
+ defaults?: PrerenderSitemapConfig;
45
+ transform?: SitemapTransform;
46
+ }
47
+ export interface PrerenderContentDir {
48
+ /**
49
+ * The directory where files should be grabbed from.
50
+ * @example `/src/contents/blog`
51
+ */
52
+ contentDir: string;
53
+ /**
54
+ * Transform the matching content files path into a route.
55
+ * The function is called for each matching content file within the specified contentDir.
56
+ * @param file information of the matching file (`path`, `name`, `extension`, `attributes`, `content`)
57
+ * @returns a string with the route should be returned (e. g. `/blog/<slug>`) or the value `false`, when the route should not be prerendered.
58
+ */
59
+ transform: (file: PrerenderContentFile) => string | false;
60
+ /**
61
+ * Customize the sitemap definition for the prerendered route
62
+ *
63
+ * https://www.sitemaps.org/protocol.html#xmlTagDefinitions
64
+ */
65
+ sitemap?: PrerenderSitemapConfig | ((file: PrerenderContentFile) => PrerenderSitemapConfig);
66
+ /**
67
+ * Output the source markdown content alongside the prerendered route.
68
+ * The source file will be accessible at the route path with a .md extension.
69
+ * @param file information of the matching file including its content
70
+ * @returns the markdown content string to output, or `false` to skip outputting for this file
71
+ */
72
+ outputSourceFile?: (file: PrerenderContentFile) => string | false;
73
+ /**
74
+ * Recurse into subdirectories of `contentDir` when discovering files.
75
+ * When enabled, the matching file's directory relative to `contentDir`
76
+ * is exposed via `PrerenderContentFile.relativePath` so transforms can
77
+ * disambiguate identically-named files across subdirectories.
78
+ * @default false
79
+ */
80
+ recursive?: boolean;
81
+ }
82
+ /**
83
+ * @param path the path to the content file
84
+ * @param name the basename of the matching content file without the file extension
85
+ * @param extension the file extension
86
+ * @param attributes the frontmatter attributes extracted from the frontmatter section of the file
87
+ * @param content the raw file content including frontmatter
88
+ * @param relativePath when `recursive` is enabled, the directory of the file relative to `contentDir` (empty string for files at the top level)
89
+ * @returns a string with the route should be returned (e. g. `/blog/<slug>`) or the value `false`, when the route should not be prerendered.
90
+ */
91
+ export interface PrerenderContentFile {
92
+ path: string;
93
+ attributes: Record<string, any>;
94
+ name: string;
95
+ extension: string;
96
+ content: string;
97
+ relativePath?: string;
98
+ }
99
+ export interface PrerenderSitemapConfig {
100
+ lastmod?: string;
101
+ changefreq?: "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | "never";
102
+ priority?: SitemapPriority;
103
+ }
104
+ export interface PrerenderRouteConfig {
105
+ route: string;
106
+ /**
107
+ * Customize the sitemap definition for the prerendered route
108
+ *
109
+ * https://www.sitemaps.org/protocol.html#xmlTagDefinitions
110
+ */
111
+ sitemap?: PrerenderSitemapConfig | (() => PrerenderSitemapConfig);
112
+ /**
113
+ * Prerender static data for the prerendered route
114
+ */
115
+ staticData?: boolean;
116
+ /**
117
+ * Path to the source markdown file to output alongside the prerendered route.
118
+ * The source file will be accessible at the route path with a .md extension.
119
+ * @example 'src/content/overview.md'
120
+ */
121
+ outputSourceFile?: string;
122
+ }
@@ -0,0 +1,23 @@
1
+ //#region \0rolldown/runtime.js
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
10
+ key = keys[i];
11
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
12
+ get: ((k) => from[k]).bind(null, key),
13
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
14
+ });
15
+ }
16
+ return to;
17
+ };
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
19
+ value: mod,
20
+ enumerable: true
21
+ }) : target, mod));
22
+ //#endregion
23
+ exports.__toESM = __toESM;
@@ -0,0 +1,15 @@
1
+ {
2
+ "builders": {
3
+ "vite-dev-server": {
4
+ "implementation": "./src/builders/vite-dev-server/dev-server.js",
5
+ "schema": "./src/builders/vite-dev-server/schema.json",
6
+ "description": "Vite dev server."
7
+ },
8
+ "vite": {
9
+ "implementation": "./src/builders/vite/vite-build.js",
10
+ "schema": "./src/builders/vite/schema.json",
11
+ "description": "Build with Vite."
12
+ },
13
+ "vitest": "@analogjs/vitest-angular:test"
14
+ }
15
+ }
@@ -1,15 +1,23 @@
1
1
  {
2
- "executors": {
2
+ "builders": {
3
3
  "vite-dev-server": {
4
- "implementation": "./src/executors/vite-dev-server/vite-dev-server.impl",
5
- "schema": "./src/executors/vite-dev-server/schema.json",
4
+ "implementation": "./src/builders/vite-dev-server/dev-server.js",
5
+ "schema": "./src/builders/vite-dev-server/schema.json",
6
6
  "description": "Vite dev server."
7
7
  },
8
8
  "vite": {
9
- "implementation": "./src/executors/vite/vite.impl",
10
- "schema": "./src/executors/vite/schema.json",
9
+ "implementation": "./src/builders/vite/vite-build.js",
10
+ "schema": "./src/builders/vite/schema.json",
11
11
  "description": "Build with Vite."
12
12
  },
13
+ "vitest": "@analogjs/vitest-angular:test"
14
+ },
15
+ "executors": {
16
+ "vite-dev-server": {
17
+ "implementation": "./src/executors/vite-dev-server/vite-dev-server.impl",
18
+ "schema": "./src/executors/vite-dev-server/schema.json",
19
+ "description": "Vite dev server."
20
+ },
13
21
  "vitest": {
14
22
  "implementation": "./src/executors/vitest/vitest.impl",
15
23
  "schema": "./src/executors/vitest/schema.json",
@@ -33,5 +33,30 @@
33
33
  "description": "Migrate and configure an Angular SPA to use Analog.",
34
34
  "aliases": ["migrate"]
35
35
  }
36
+ },
37
+ "schematics": {
38
+ "application": {
39
+ "factory": "./src/generators/app/compat#applicationSchematic",
40
+ "schema": "./src/generators/app/schema.json",
41
+ "description": "Generates an Analog application",
42
+ "aliases": ["app"]
43
+ },
44
+ "page": {
45
+ "factory": "./src/generators/page/compat#pageSchematic",
46
+ "schema": "./src/generators/page/schema.json",
47
+ "description": "Creates a new Analog page in the given or default project.",
48
+ "aliases": ["p"]
49
+ },
50
+ "setup-vitest": {
51
+ "factory": "./src/generators/setup-vitest/compat#setupVitestSchematic",
52
+ "schema": "./src/generators/setup-vitest/schema.json",
53
+ "description": "Setup the Vitest configuration."
54
+ },
55
+ "init": {
56
+ "factory": "./src/generators/init/compat#initSchematic",
57
+ "schema": "./src/generators/init/schema.json",
58
+ "description": "Migrate and configure an Angular SPA to use Analog.",
59
+ "aliases": ["migrate"]
60
+ }
36
61
  }
37
62
  }
@@ -0,0 +1,13 @@
1
+ const require_capitalize = require("./capitalize.js");
2
+ const require_words = require("./words.js");
3
+ //#region node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/string/camelCase.mjs
4
+ function camelCase(str) {
5
+ const words$1 = require_words.words(str);
6
+ if (words$1.length === 0) return "";
7
+ const [first, ...rest] = words$1;
8
+ return `${first.toLowerCase()}${rest.map((word) => require_capitalize.capitalize(word)).join("")}`;
9
+ }
10
+ //#endregion
11
+ exports.camelCase = camelCase;
12
+
13
+ //# sourceMappingURL=camelCase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"camelCase.js","names":["words","capitalize"],"sources":["../../../../../../../../../../../../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/string/camelCase.mjs"],"sourcesContent":["import { capitalize } from './capitalize.mjs';\nimport { words } from './words.mjs';\n\nfunction camelCase(str) {\n const words$1 = words(str);\n if (words$1.length === 0) {\n return '';\n }\n const [first, ...rest] = words$1;\n return `${first.toLowerCase()}${rest.map(word => capitalize(word)).join('')}`;\n}\n\nexport { camelCase };\n"],"x_google_ignoreList":[0],"mappings":";;;AAGA,SAAS,UAAU,KAAK;CACpB,MAAM,UAAUA,cAAAA,MAAM,IAAI;AAC1B,KAAI,QAAQ,WAAW,EACnB,QAAO;CAEX,MAAM,CAAC,OAAO,GAAG,QAAQ;AACzB,QAAO,GAAG,MAAM,aAAa,GAAG,KAAK,KAAI,SAAQC,mBAAAA,WAAW,KAAK,CAAC,CAAC,KAAK,GAAG"}
@@ -0,0 +1,8 @@
1
+ //#region node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/string/capitalize.mjs
2
+ function capitalize(str) {
3
+ return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();
4
+ }
5
+ //#endregion
6
+ exports.capitalize = capitalize;
7
+
8
+ //# sourceMappingURL=capitalize.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capitalize.js","names":[],"sources":["../../../../../../../../../../../../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/string/capitalize.mjs"],"sourcesContent":["function capitalize(str) {\n return (str.charAt(0).toUpperCase() + str.slice(1).toLowerCase());\n}\n\nexport { capitalize };\n"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAS,WAAW,KAAK;AACrB,QAAQ,IAAI,OAAO,EAAE,CAAC,aAAa,GAAG,IAAI,MAAM,EAAE,CAAC,aAAa"}
@@ -0,0 +1,9 @@
1
+ //#region node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/string/words.mjs
2
+ var CASE_SPLIT_PATTERN = /\p{Lu}?\p{Ll}+|[0-9]+|\p{Lu}+(?!\p{Ll})|\p{Emoji_Presentation}|\p{Extended_Pictographic}|\p{L}+/gu;
3
+ function words(str) {
4
+ return Array.from(str.match(CASE_SPLIT_PATTERN) ?? []);
5
+ }
6
+ //#endregion
7
+ exports.words = words;
8
+
9
+ //# sourceMappingURL=words.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"words.js","names":[],"sources":["../../../../../../../../../../../../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/string/words.mjs"],"sourcesContent":["const CASE_SPLIT_PATTERN = /\\p{Lu}?\\p{Ll}+|[0-9]+|\\p{Lu}+(?!\\p{Ll})|\\p{Emoji_Presentation}|\\p{Extended_Pictographic}|\\p{L}+/gu;\nfunction words(str) {\n return Array.from(str.match(CASE_SPLIT_PATTERN) ?? []);\n}\n\nexport { CASE_SPLIT_PATTERN, words };\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAM,qBAAqB;AAC3B,SAAS,MAAM,KAAK;AAChB,QAAO,MAAM,KAAK,IAAI,MAAM,mBAAmB,IAAI,EAAE,CAAC"}
@@ -1,7 +1,3 @@
1
1
  {
2
- "name": "@analogjs/nx",
3
- "version": "0.0.1",
4
- "main": "src/index.js",
5
- "types": "./src/index.d.ts",
6
2
  "type": "commonjs"
7
- }
3
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "version": 2,
3
+ "outputCapture": "direct-nodejs",
4
+ "title": "Vite Prod Builder",
5
+ "cli": "nx",
6
+ "description": "Builds a Vite.js application for production.",
7
+ "type": "object",
8
+ "properties": {
9
+ "outputPath": {
10
+ "type": "string",
11
+ "description": "The output path of the generated files.",
12
+ "x-completion-type": "directory",
13
+ "x-priority": "important"
14
+ },
15
+ "configFile": {
16
+ "type": "string",
17
+ "description": "The name of the Vite.js configuration file.",
18
+ "x-completion-type": "file",
19
+ "x-completion-glob": "vite.config.@(js|ts)"
20
+ },
21
+ "sourcemap": {
22
+ "description": "Output sourcemaps. Use 'hidden' for use with error reporting tools without generating sourcemap comment.",
23
+ "oneOf": [
24
+ {
25
+ "type": "boolean"
26
+ },
27
+ {
28
+ "type": "string"
29
+ }
30
+ ]
31
+ },
32
+ "mode": {
33
+ "type": "string",
34
+ "description": "Mode to run the build in."
35
+ }
36
+ },
37
+ "definitions": {},
38
+ "required": ["outputPath"]
39
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Thin shim that re-exports the Angular Devkit Architect build builder
3
+ * shipped by `@analogjs/vite-plugin-angular`. Architect resolves the
4
+ * implementation from the local `builders.json` entry without traversing a
5
+ * cross-package string redirect, so the user-facing `@analogjs/platform:vite`
6
+ * identifier stays stable while the real implementation continues to live in
7
+ * `@analogjs/vite-plugin-angular`. Mirrors `@analogjs/storybook-angular`'s
8
+ * pattern for surfacing `@storybook/angular`'s builders.
9
+ */
10
+ import viteBuilder from "@analogjs/vite-plugin-angular/builders/vite";
11
+ export default viteBuilder;
@@ -0,0 +1,18 @@
1
+ const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
2
+ let _analogjs_vite_plugin_angular_builders_vite = require("@analogjs/vite-plugin-angular/builders/vite");
3
+ _analogjs_vite_plugin_angular_builders_vite = require_runtime.__toESM(_analogjs_vite_plugin_angular_builders_vite);
4
+ //#region packages/nx-plugin/src/builders/vite/vite-build.ts
5
+ /**
6
+ * Thin shim that re-exports the Angular Devkit Architect build builder
7
+ * shipped by `@analogjs/vite-plugin-angular`. Architect resolves the
8
+ * implementation from the local `builders.json` entry without traversing a
9
+ * cross-package string redirect, so the user-facing `@analogjs/platform:vite`
10
+ * identifier stays stable while the real implementation continues to live in
11
+ * `@analogjs/vite-plugin-angular`. Mirrors `@analogjs/storybook-angular`'s
12
+ * pattern for surfacing `@storybook/angular`'s builders.
13
+ */
14
+ var vite_build_default = _analogjs_vite_plugin_angular_builders_vite.default;
15
+ //#endregion
16
+ module.exports = vite_build_default;
17
+
18
+ //# sourceMappingURL=vite-build.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vite-build.js","names":[],"sources":["../../../../../../../../nx-plugin/src/builders/vite/vite-build.ts"],"sourcesContent":["/**\n * Thin shim that re-exports the Angular Devkit Architect build builder\n * shipped by `@analogjs/vite-plugin-angular`. Architect resolves the\n * implementation from the local `builders.json` entry without traversing a\n * cross-package string redirect, so the user-facing `@analogjs/platform:vite`\n * identifier stays stable while the real implementation continues to live in\n * `@analogjs/vite-plugin-angular`. Mirrors `@analogjs/storybook-angular`'s\n * pattern for surfacing `@storybook/angular`'s builders.\n */\nimport viteBuilder from '@analogjs/vite-plugin-angular/builders/vite';\n\nexport default viteBuilder;\n"],"mappings":";;;;;;;;;;;;;AAWA,IAAA,qBAAe,4CAAA"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Thin shim that re-exports the Angular Devkit Architect dev-server builder
3
+ * shipped by `@analogjs/vite-plugin-angular`. See `../vite/vite-build.ts` for
4
+ * the rationale; mirrors `@analogjs/storybook-angular`'s pattern.
5
+ */
6
+ import devServerBuilder from "@analogjs/vite-plugin-angular/builders/vite-dev-server";
7
+ export default devServerBuilder;
@@ -0,0 +1,14 @@
1
+ const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
2
+ let _analogjs_vite_plugin_angular_builders_vite_dev_server = require("@analogjs/vite-plugin-angular/builders/vite-dev-server");
3
+ _analogjs_vite_plugin_angular_builders_vite_dev_server = require_runtime.__toESM(_analogjs_vite_plugin_angular_builders_vite_dev_server);
4
+ //#region packages/nx-plugin/src/builders/vite-dev-server/dev-server.ts
5
+ /**
6
+ * Thin shim that re-exports the Angular Devkit Architect dev-server builder
7
+ * shipped by `@analogjs/vite-plugin-angular`. See `../vite/vite-build.ts` for
8
+ * the rationale; mirrors `@analogjs/storybook-angular`'s pattern.
9
+ */
10
+ var dev_server_default = _analogjs_vite_plugin_angular_builders_vite_dev_server.default;
11
+ //#endregion
12
+ module.exports = dev_server_default;
13
+
14
+ //# sourceMappingURL=dev-server.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dev-server.js","names":[],"sources":["../../../../../../../../nx-plugin/src/builders/vite-dev-server/dev-server.ts"],"sourcesContent":["/**\n * Thin shim that re-exports the Angular Devkit Architect dev-server builder\n * shipped by `@analogjs/vite-plugin-angular`. See `../vite/vite-build.ts` for\n * the rationale; mirrors `@analogjs/storybook-angular`'s pattern.\n */\nimport devServerBuilder from '@analogjs/vite-plugin-angular/builders/vite-dev-server';\n\nexport default devServerBuilder;\n"],"mappings":";;;;;;;;;AAOA,IAAA,qBAAe,uDAAA"}