@ykdz/template 0.0.22 → 0.0.24

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 (452) hide show
  1. package/dist/cli.js +4 -575
  2. package/dist/main.d.ts +1 -0
  3. package/dist/main.js +370 -0
  4. package/node_modules/@typescript/old/LICENSE.txt +55 -0
  5. package/node_modules/@typescript/old/README.md +50 -0
  6. package/node_modules/@typescript/old/SECURITY.md +39 -0
  7. package/node_modules/@typescript/old/ThirdPartyNoticeText.txt +193 -0
  8. package/node_modules/@typescript/old/bin/tsc +2 -0
  9. package/node_modules/@typescript/old/bin/tsserver +2 -0
  10. package/node_modules/@typescript/old/lib/_tsc.js +134465 -0
  11. package/node_modules/@typescript/old/lib/_tsserver.js +659 -0
  12. package/node_modules/@typescript/old/lib/_typingsInstaller.js +222 -0
  13. package/node_modules/@typescript/old/lib/cs/diagnosticMessages.generated.json +2129 -0
  14. package/node_modules/@typescript/old/lib/de/diagnosticMessages.generated.json +2125 -0
  15. package/node_modules/@typescript/old/lib/es/diagnosticMessages.generated.json +2129 -0
  16. package/node_modules/@typescript/old/lib/fr/diagnosticMessages.generated.json +2129 -0
  17. package/node_modules/@typescript/old/lib/it/diagnosticMessages.generated.json +2125 -0
  18. package/node_modules/@typescript/old/lib/ja/diagnosticMessages.generated.json +2129 -0
  19. package/node_modules/@typescript/old/lib/ko/diagnosticMessages.generated.json +2129 -0
  20. package/node_modules/@typescript/old/lib/lib.d.ts +20 -0
  21. package/node_modules/@typescript/old/lib/lib.decorators.d.ts +382 -0
  22. package/node_modules/@typescript/old/lib/lib.decorators.legacy.d.ts +20 -0
  23. package/node_modules/@typescript/old/lib/lib.dom.asynciterable.d.ts +18 -0
  24. package/node_modules/@typescript/old/lib/lib.dom.d.ts +45125 -0
  25. package/node_modules/@typescript/old/lib/lib.dom.iterable.d.ts +18 -0
  26. package/node_modules/@typescript/old/lib/lib.es2015.collection.d.ts +150 -0
  27. package/node_modules/@typescript/old/lib/lib.es2015.core.d.ts +595 -0
  28. package/node_modules/@typescript/old/lib/lib.es2015.d.ts +26 -0
  29. package/node_modules/@typescript/old/lib/lib.es2015.generator.d.ts +75 -0
  30. package/node_modules/@typescript/old/lib/lib.es2015.iterable.d.ts +603 -0
  31. package/node_modules/@typescript/old/lib/lib.es2015.promise.d.ts +79 -0
  32. package/node_modules/@typescript/old/lib/lib.es2015.proxy.d.ts +126 -0
  33. package/node_modules/@typescript/old/lib/lib.es2015.reflect.d.ts +142 -0
  34. package/node_modules/@typescript/old/lib/lib.es2015.symbol.d.ts +44 -0
  35. package/node_modules/@typescript/old/lib/lib.es2015.symbol.wellknown.d.ts +324 -0
  36. package/node_modules/@typescript/old/lib/lib.es2016.array.include.d.ts +114 -0
  37. package/node_modules/@typescript/old/lib/lib.es2016.d.ts +19 -0
  38. package/node_modules/@typescript/old/lib/lib.es2016.full.d.ts +21 -0
  39. package/node_modules/@typescript/old/lib/lib.es2016.intl.d.ts +29 -0
  40. package/node_modules/@typescript/old/lib/lib.es2017.arraybuffer.d.ts +19 -0
  41. package/node_modules/@typescript/old/lib/lib.es2017.d.ts +24 -0
  42. package/node_modules/@typescript/old/lib/lib.es2017.date.d.ts +29 -0
  43. package/node_modules/@typescript/old/lib/lib.es2017.full.d.ts +21 -0
  44. package/node_modules/@typescript/old/lib/lib.es2017.intl.d.ts +42 -0
  45. package/node_modules/@typescript/old/lib/lib.es2017.object.d.ts +47 -0
  46. package/node_modules/@typescript/old/lib/lib.es2017.sharedmemory.d.ts +133 -0
  47. package/node_modules/@typescript/old/lib/lib.es2017.string.d.ts +43 -0
  48. package/node_modules/@typescript/old/lib/lib.es2017.typedarrays.d.ts +51 -0
  49. package/node_modules/@typescript/old/lib/lib.es2018.asyncgenerator.d.ts +75 -0
  50. package/node_modules/@typescript/old/lib/lib.es2018.asynciterable.d.ts +51 -0
  51. package/node_modules/@typescript/old/lib/lib.es2018.d.ts +22 -0
  52. package/node_modules/@typescript/old/lib/lib.es2018.full.d.ts +22 -0
  53. package/node_modules/@typescript/old/lib/lib.es2018.intl.d.ts +81 -0
  54. package/node_modules/@typescript/old/lib/lib.es2018.promise.d.ts +28 -0
  55. package/node_modules/@typescript/old/lib/lib.es2018.regexp.d.ts +35 -0
  56. package/node_modules/@typescript/old/lib/lib.es2019.array.d.ts +77 -0
  57. package/node_modules/@typescript/old/lib/lib.es2019.d.ts +22 -0
  58. package/node_modules/@typescript/old/lib/lib.es2019.full.d.ts +22 -0
  59. package/node_modules/@typescript/old/lib/lib.es2019.intl.d.ts +21 -0
  60. package/node_modules/@typescript/old/lib/lib.es2019.object.d.ts +31 -0
  61. package/node_modules/@typescript/old/lib/lib.es2019.string.d.ts +35 -0
  62. package/node_modules/@typescript/old/lib/lib.es2019.symbol.d.ts +22 -0
  63. package/node_modules/@typescript/old/lib/lib.es2020.bigint.d.ts +763 -0
  64. package/node_modules/@typescript/old/lib/lib.es2020.d.ts +25 -0
  65. package/node_modules/@typescript/old/lib/lib.es2020.date.d.ts +40 -0
  66. package/node_modules/@typescript/old/lib/lib.es2020.full.d.ts +22 -0
  67. package/node_modules/@typescript/old/lib/lib.es2020.intl.d.ts +472 -0
  68. package/node_modules/@typescript/old/lib/lib.es2020.number.d.ts +26 -0
  69. package/node_modules/@typescript/old/lib/lib.es2020.promise.d.ts +45 -0
  70. package/node_modules/@typescript/old/lib/lib.es2020.sharedmemory.d.ts +97 -0
  71. package/node_modules/@typescript/old/lib/lib.es2020.string.d.ts +42 -0
  72. package/node_modules/@typescript/old/lib/lib.es2020.symbol.wellknown.d.ts +39 -0
  73. package/node_modules/@typescript/old/lib/lib.es2021.d.ts +21 -0
  74. package/node_modules/@typescript/old/lib/lib.es2021.full.d.ts +22 -0
  75. package/node_modules/@typescript/old/lib/lib.es2021.intl.d.ts +164 -0
  76. package/node_modules/@typescript/old/lib/lib.es2021.promise.d.ts +46 -0
  77. package/node_modules/@typescript/old/lib/lib.es2021.string.d.ts +31 -0
  78. package/node_modules/@typescript/old/lib/lib.es2021.weakref.d.ts +76 -0
  79. package/node_modules/@typescript/old/lib/lib.es2022.array.d.ts +119 -0
  80. package/node_modules/@typescript/old/lib/lib.es2022.d.ts +23 -0
  81. package/node_modules/@typescript/old/lib/lib.es2022.error.d.ts +73 -0
  82. package/node_modules/@typescript/old/lib/lib.es2022.full.d.ts +22 -0
  83. package/node_modules/@typescript/old/lib/lib.es2022.intl.d.ts +143 -0
  84. package/node_modules/@typescript/old/lib/lib.es2022.object.d.ts +24 -0
  85. package/node_modules/@typescript/old/lib/lib.es2022.regexp.d.ts +37 -0
  86. package/node_modules/@typescript/old/lib/lib.es2022.string.d.ts +23 -0
  87. package/node_modules/@typescript/old/lib/lib.es2023.array.d.ts +922 -0
  88. package/node_modules/@typescript/old/lib/lib.es2023.collection.d.ts +19 -0
  89. package/node_modules/@typescript/old/lib/lib.es2023.d.ts +20 -0
  90. package/node_modules/@typescript/old/lib/lib.es2023.full.d.ts +22 -0
  91. package/node_modules/@typescript/old/lib/lib.es2023.intl.d.ts +62 -0
  92. package/node_modules/@typescript/old/lib/lib.es2024.arraybuffer.d.ts +63 -0
  93. package/node_modules/@typescript/old/lib/lib.es2024.collection.d.ts +27 -0
  94. package/node_modules/@typescript/old/lib/lib.es2024.d.ts +24 -0
  95. package/node_modules/@typescript/old/lib/lib.es2024.full.d.ts +22 -0
  96. package/node_modules/@typescript/old/lib/lib.es2024.object.d.ts +27 -0
  97. package/node_modules/@typescript/old/lib/lib.es2024.promise.d.ts +33 -0
  98. package/node_modules/@typescript/old/lib/lib.es2024.regexp.d.ts +23 -0
  99. package/node_modules/@typescript/old/lib/lib.es2024.sharedmemory.d.ts +66 -0
  100. package/node_modules/@typescript/old/lib/lib.es2024.string.d.ts +27 -0
  101. package/node_modules/@typescript/old/lib/lib.es2025.collection.d.ts +94 -0
  102. package/node_modules/@typescript/old/lib/lib.es2025.d.ts +23 -0
  103. package/node_modules/@typescript/old/lib/lib.es2025.float16.d.ts +443 -0
  104. package/node_modules/@typescript/old/lib/lib.es2025.full.d.ts +22 -0
  105. package/node_modules/@typescript/old/lib/lib.es2025.intl.d.ts +200 -0
  106. package/node_modules/@typescript/old/lib/lib.es2025.iterator.d.ts +146 -0
  107. package/node_modules/@typescript/old/lib/lib.es2025.promise.d.ts +32 -0
  108. package/node_modules/@typescript/old/lib/lib.es2025.regexp.d.ts +30 -0
  109. package/node_modules/@typescript/old/lib/lib.es5.d.ts +4599 -0
  110. package/node_modules/@typescript/old/lib/lib.es6.d.ts +21 -0
  111. package/node_modules/@typescript/old/lib/lib.esnext.array.d.ts +33 -0
  112. package/node_modules/@typescript/old/lib/lib.esnext.collection.d.ts +47 -0
  113. package/node_modules/@typescript/old/lib/lib.esnext.d.ts +27 -0
  114. package/node_modules/@typescript/old/lib/lib.esnext.date.d.ts +21 -0
  115. package/node_modules/@typescript/old/lib/lib.esnext.decorators.d.ts +26 -0
  116. package/node_modules/@typescript/old/lib/lib.esnext.disposable.d.ts +191 -0
  117. package/node_modules/@typescript/old/lib/lib.esnext.error.d.ts +22 -0
  118. package/node_modules/@typescript/old/lib/lib.esnext.full.d.ts +22 -0
  119. package/node_modules/@typescript/old/lib/lib.esnext.intl.d.ts +107 -0
  120. package/node_modules/@typescript/old/lib/lib.esnext.sharedmemory.d.ts +23 -0
  121. package/node_modules/@typescript/old/lib/lib.esnext.temporal.d.ts +485 -0
  122. package/node_modules/@typescript/old/lib/lib.esnext.typedarrays.d.ts +90 -0
  123. package/node_modules/@typescript/old/lib/lib.scripthost.d.ts +320 -0
  124. package/node_modules/@typescript/old/lib/lib.webworker.asynciterable.d.ts +18 -0
  125. package/node_modules/@typescript/old/lib/lib.webworker.d.ts +15606 -0
  126. package/node_modules/@typescript/old/lib/lib.webworker.importscripts.d.ts +21 -0
  127. package/node_modules/@typescript/old/lib/lib.webworker.iterable.d.ts +18 -0
  128. package/node_modules/@typescript/old/lib/pl/diagnosticMessages.generated.json +2129 -0
  129. package/node_modules/@typescript/old/lib/pt-br/diagnosticMessages.generated.json +2129 -0
  130. package/node_modules/@typescript/old/lib/ru/diagnosticMessages.generated.json +2125 -0
  131. package/node_modules/@typescript/old/lib/tr/diagnosticMessages.generated.json +2129 -0
  132. package/node_modules/@typescript/old/lib/tsc.js +8 -0
  133. package/node_modules/@typescript/old/lib/tsserver.js +8 -0
  134. package/node_modules/@typescript/old/lib/tsserverlibrary.d.ts +17 -0
  135. package/node_modules/@typescript/old/lib/tsserverlibrary.js +21 -0
  136. package/node_modules/@typescript/old/lib/typesMap.json +497 -0
  137. package/node_modules/@typescript/old/lib/typescript.d.ts +11448 -0
  138. package/node_modules/@typescript/old/lib/typescript.js +201039 -0
  139. package/node_modules/@typescript/old/lib/typingsInstaller.js +8 -0
  140. package/node_modules/@typescript/old/lib/watchGuard.js +53 -0
  141. package/node_modules/@typescript/old/lib/zh-cn/diagnosticMessages.generated.json +2129 -0
  142. package/node_modules/@typescript/old/lib/zh-tw/diagnosticMessages.generated.json +2125 -0
  143. package/node_modules/@typescript/old/package.json +118 -0
  144. package/node_modules/@ykdz/template-builtin-presets/dist/src/foundation.d.ts +85 -0
  145. package/node_modules/@ykdz/template-builtin-presets/dist/src/foundation.js +797 -0
  146. package/node_modules/@ykdz/template-builtin-presets/dist/src/index.d.ts +3 -0
  147. package/node_modules/@ykdz/template-builtin-presets/dist/src/index.js +2 -0
  148. package/node_modules/@ykdz/template-builtin-presets/dist/src/rust-bin/definition.d.ts +2 -0
  149. package/node_modules/@ykdz/template-builtin-presets/dist/src/rust-bin/definition.js +134 -0
  150. package/node_modules/@ykdz/template-builtin-presets/dist/src/shared/vue.d.ts +36 -0
  151. package/node_modules/@ykdz/template-builtin-presets/dist/src/shared/vue.js +106 -0
  152. package/node_modules/@ykdz/template-builtin-presets/dist/src/template-sources.d.ts +14 -0
  153. package/node_modules/@ykdz/template-builtin-presets/dist/src/template-sources.js +26 -0
  154. package/node_modules/@ykdz/template-builtin-presets/dist/src/ts-lib/definition.d.ts +2 -0
  155. package/node_modules/@ykdz/template-builtin-presets/dist/src/ts-lib/definition.js +138 -0
  156. package/node_modules/@ykdz/template-builtin-presets/dist/src/vike-app/definition.d.ts +2 -0
  157. package/node_modules/@ykdz/template-builtin-presets/dist/src/vike-app/definition.js +408 -0
  158. package/node_modules/@ykdz/template-builtin-presets/dist/src/vue-app/definition.d.ts +2 -0
  159. package/node_modules/@ykdz/template-builtin-presets/dist/src/vue-app/definition.js +94 -0
  160. package/node_modules/@ykdz/template-builtin-presets/dist/src/vue-hono-app/definition.d.ts +2 -0
  161. package/node_modules/@ykdz/template-builtin-presets/dist/src/vue-hono-app/definition.js +179 -0
  162. package/node_modules/@ykdz/template-builtin-presets/package.json +67 -0
  163. package/node_modules/@ykdz/{template-builtin-source/templates/vue-app/.github/dependabot.yml → template-builtin-presets/templates/foundation/.github/dependabot-rust.yml} +13 -0
  164. package/node_modules/@ykdz/template-builtin-presets/templates/foundation/.github/dependabot.dynamic.template +4 -0
  165. package/node_modules/@ykdz/{template-builtin-source/templates/ts-lib → template-builtin-presets/templates/foundation}/.github/dependabot.yml +5 -0
  166. package/node_modules/@ykdz/template-builtin-presets/templates/foundation/.github/workflows/check.dynamic.template +19 -0
  167. package/node_modules/@ykdz/template-builtin-presets/templates/foundation/.pnpmfile.cts +14 -0
  168. package/node_modules/@ykdz/template-builtin-presets/templates/foundation/TODO.md.template +5 -0
  169. package/node_modules/@ykdz/template-builtin-presets/templates/foundation/devcontainer.json +16 -0
  170. package/node_modules/@ykdz/template-builtin-presets/templates/foundation/gitignore +8 -0
  171. package/node_modules/@ykdz/template-builtin-presets/templates/foundation/pnpm-workspace.dynamic.txt +23 -0
  172. package/node_modules/@ykdz/template-builtin-presets/templates/foundation/pnpm-workspace.yaml +29 -0
  173. package/node_modules/@ykdz/template-builtin-presets/templates/foundation/rust/.vscode/extensions.json +3 -0
  174. package/node_modules/@ykdz/template-builtin-presets/templates/foundation/rust/.vscode/settings.json +5 -0
  175. package/node_modules/@ykdz/template-builtin-presets/templates/foundation/rust/devcontainer/devcontainer.json +21 -0
  176. package/node_modules/@ykdz/template-builtin-presets/templates/foundation/tsconfig.json +4 -0
  177. package/node_modules/@ykdz/template-builtin-presets/templates/foundation/turbo.json +18 -0
  178. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/rust-bin/.github/dependabot.yml +5 -0
  179. package/node_modules/@ykdz/template-builtin-presets/templates/rust-bin/.github/workflows/check.yml +23 -0
  180. package/node_modules/@ykdz/template-builtin-presets/templates/rust-bin/.vscode/extensions.json +3 -0
  181. package/node_modules/@ykdz/template-builtin-presets/templates/rust-bin/.vscode/settings.json +5 -0
  182. package/node_modules/@ykdz/template-builtin-presets/templates/rust-bin/Cargo.lock +16 -0
  183. package/node_modules/@ykdz/template-builtin-presets/templates/rust-bin/Cargo.toml +27 -0
  184. package/node_modules/@ykdz/template-builtin-presets/templates/rust-bin/devcontainer/devcontainer.json +21 -0
  185. package/node_modules/@ykdz/template-builtin-presets/templates/rust-bin/devcontainer/rust.Dockerfile +16 -0
  186. package/node_modules/@ykdz/template-builtin-presets/templates/rust-bin/rust-toolchain.toml +3 -0
  187. package/node_modules/@ykdz/template-builtin-presets/templates/shared/devcontainer/node-pnpm.Dockerfile +12 -0
  188. package/node_modules/@ykdz/template-builtin-presets/templates/shared/devcontainer/shellcheck.Dockerfile +3 -0
  189. package/node_modules/@ykdz/template-builtin-presets/templates/shared/editor-customization/capabilities.json +38 -0
  190. package/node_modules/@ykdz/template-builtin-presets/templates/shared/oxc/node/oxlint.config.ts +6 -0
  191. package/node_modules/@ykdz/template-builtin-presets/templates/shared/oxc/oxfmt.config.ts +3 -0
  192. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/shared/oxc/tsconfig.config.json +2 -2
  193. package/node_modules/@ykdz/template-builtin-presets/templates/shared/vue/tsconfig.app.json +25 -0
  194. package/node_modules/@ykdz/template-builtin-presets/templates/shared/vue/tsconfig.json +8 -0
  195. package/node_modules/@ykdz/template-builtin-presets/templates/shared/vue/tsconfig.node.json +30 -0
  196. package/node_modules/@ykdz/template-builtin-presets/templates/shared/vue/tsconfig.test.json +9 -0
  197. package/node_modules/@ykdz/template-builtin-presets/templates/shared/vue/typescript/run-vue-tsc.ts +12 -0
  198. package/node_modules/@ykdz/{template-builtin-source/templates/vue-hono-app → template-builtin-presets/templates/ts-lib}/.github/dependabot.yml +5 -0
  199. package/node_modules/@ykdz/template-builtin-presets/templates/ts-lib/.github/workflows/check.yml +19 -0
  200. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/ts-lib/src/index.ts +1 -3
  201. package/node_modules/@ykdz/template-builtin-presets/templates/ts-lib/tsconfig.json +13 -0
  202. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/db/src/readiness.ts +2 -2
  203. package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db/src/types.d.ts +1 -0
  204. package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db/tsconfig.json +26 -0
  205. package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db-migrations/drizzle.config.ts +17 -0
  206. package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db-migrations/scripts/prepare-database.ts +45 -0
  207. package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db-migrations/tsconfig.json +22 -0
  208. package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db-migrations/turbo.json +10 -0
  209. package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/Dockerfile +74 -0
  210. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/web/pages/index/+Page.telefunc.ts +1 -4
  211. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/web/pages/index/+Page.vue +2 -1
  212. package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/playwright.config.ts +79 -0
  213. package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/scripts/check-standalone-deployment.ts +511 -0
  214. package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/scripts/container-entrypoint.sh +33 -0
  215. package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/scripts/run-playwright.ts +151 -0
  216. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/web/test/e2e/app.spec.ts +3 -1
  217. package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/tsconfig.app.json +34 -0
  218. package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/tsconfig.json +9 -0
  219. package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/tsconfig.node.json +31 -0
  220. package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/tsconfig.test.json +11 -0
  221. package/node_modules/@ykdz/{template-builtin-source/templates/vue-app → template-builtin-presets/templates/vike-app/web}/turbo.json +1 -0
  222. package/node_modules/@ykdz/{template-builtin-source/templates/vike-app → template-builtin-presets/templates/vue-app}/.github/dependabot.yml +5 -4
  223. package/node_modules/@ykdz/{template-builtin-source/templates/vue-hono-app/web → template-builtin-presets/templates/vue-app}/turbo.json +2 -1
  224. package/node_modules/@ykdz/template-builtin-presets/templates/vue-app/typescript/tsconfig.json +8 -0
  225. package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/api/src/index.ts +3 -0
  226. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vue-hono-app/api/src/server.ts +1 -1
  227. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vue-hono-app/api/test/app.test.ts +1 -1
  228. package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/api/tsconfig.build.json +9 -0
  229. package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/api/tsconfig.json +25 -0
  230. package/node_modules/@ykdz/template-core/dist/Cargo.toml +1 -1
  231. package/node_modules/@ykdz/template-core/dist/dependency-catalog.d.ts +9 -0
  232. package/node_modules/@ykdz/template-core/dist/dependency-catalog.js +56 -1
  233. package/node_modules/@ykdz/template-core/dist/devcontainer.d.ts +11 -3
  234. package/node_modules/@ykdz/template-core/dist/devcontainer.js +17 -3
  235. package/node_modules/@ykdz/template-core/dist/editor-customization.d.ts +5 -9
  236. package/node_modules/@ykdz/template-core/dist/editor-customization.js +8 -46
  237. package/node_modules/@ykdz/template-core/dist/module-graph.d.ts +43 -2
  238. package/node_modules/@ykdz/template-core/dist/module-graph.js +58 -0
  239. package/node_modules/@ykdz/template-core/dist/package-contribution.d.ts +43 -0
  240. package/node_modules/@ykdz/template-core/dist/package-contribution.js +24 -0
  241. package/node_modules/@ykdz/template-core/dist/pnpm-workspace.yaml +28 -9
  242. package/node_modules/@ykdz/template-core/dist/preset-definition.d.ts +42 -0
  243. package/node_modules/@ykdz/template-core/dist/preset-definition.js +1 -0
  244. package/node_modules/@ykdz/template-core/dist/project-blueprint-v2.d.ts +33 -0
  245. package/node_modules/@ykdz/template-core/dist/project-blueprint-v2.js +161 -0
  246. package/node_modules/@ykdz/template-core/dist/project-github.d.ts +8 -9
  247. package/node_modules/@ykdz/template-core/dist/project-github.js +94 -9
  248. package/node_modules/@ykdz/template-core/dist/project-linking-v2.d.ts +20 -0
  249. package/node_modules/@ykdz/template-core/dist/project-linking-v2.js +37 -0
  250. package/node_modules/@ykdz/template-core/dist/renderer.d.ts +40 -5
  251. package/node_modules/@ykdz/template-core/dist/renderer.js +114 -29
  252. package/node_modules/@ykdz/template-core/dist/template-boundary-check.d.ts +21 -15
  253. package/node_modules/@ykdz/template-core/dist/template-boundary-check.js +99 -49
  254. package/node_modules/@ykdz/template-core/dist/toolchain-baseline-update.d.ts +45 -0
  255. package/node_modules/@ykdz/template-core/dist/toolchain-baseline-update.js +27 -0
  256. package/node_modules/@ykdz/template-core/dist/toolchain-resolution.d.ts +1 -0
  257. package/node_modules/@ykdz/template-core/dist/toolchain-resolution.js +50 -52
  258. package/node_modules/@ykdz/template-core/package.json +9 -6
  259. package/node_modules/semver/LICENSE +15 -0
  260. package/node_modules/semver/README.md +680 -0
  261. package/node_modules/semver/bin/semver.js +195 -0
  262. package/node_modules/semver/classes/comparator.js +143 -0
  263. package/node_modules/semver/classes/index.js +7 -0
  264. package/node_modules/semver/classes/range.js +577 -0
  265. package/node_modules/semver/classes/semver.js +350 -0
  266. package/node_modules/semver/functions/clean.js +8 -0
  267. package/node_modules/semver/functions/cmp.js +54 -0
  268. package/node_modules/semver/functions/coerce.js +62 -0
  269. package/node_modules/semver/functions/compare-build.js +9 -0
  270. package/node_modules/semver/functions/compare-loose.js +5 -0
  271. package/node_modules/semver/functions/compare.js +7 -0
  272. package/node_modules/semver/functions/diff.js +60 -0
  273. package/node_modules/semver/functions/eq.js +5 -0
  274. package/node_modules/semver/functions/gt.js +5 -0
  275. package/node_modules/semver/functions/gte.js +5 -0
  276. package/node_modules/semver/functions/inc.js +21 -0
  277. package/node_modules/semver/functions/lt.js +5 -0
  278. package/node_modules/semver/functions/lte.js +5 -0
  279. package/node_modules/semver/functions/major.js +5 -0
  280. package/node_modules/semver/functions/minor.js +5 -0
  281. package/node_modules/semver/functions/neq.js +5 -0
  282. package/node_modules/semver/functions/parse.js +18 -0
  283. package/node_modules/semver/functions/patch.js +5 -0
  284. package/node_modules/semver/functions/prerelease.js +8 -0
  285. package/node_modules/semver/functions/rcompare.js +5 -0
  286. package/node_modules/semver/functions/rsort.js +5 -0
  287. package/node_modules/semver/functions/satisfies.js +12 -0
  288. package/node_modules/semver/functions/sort.js +5 -0
  289. package/node_modules/semver/functions/truncate.js +48 -0
  290. package/node_modules/semver/functions/valid.js +8 -0
  291. package/node_modules/semver/index.js +93 -0
  292. package/node_modules/semver/internal/constants.js +37 -0
  293. package/node_modules/semver/internal/debug.js +11 -0
  294. package/node_modules/semver/internal/identifiers.js +29 -0
  295. package/node_modules/semver/internal/lrucache.js +42 -0
  296. package/node_modules/semver/internal/parse-options.js +17 -0
  297. package/node_modules/semver/internal/re.js +223 -0
  298. package/node_modules/semver/package.json +78 -0
  299. package/node_modules/semver/preload.js +4 -0
  300. package/node_modules/semver/range.bnf +17 -0
  301. package/node_modules/semver/ranges/gtr.js +6 -0
  302. package/node_modules/semver/ranges/intersects.js +9 -0
  303. package/node_modules/semver/ranges/ltr.js +6 -0
  304. package/node_modules/semver/ranges/max-satisfying.js +27 -0
  305. package/node_modules/semver/ranges/min-satisfying.js +26 -0
  306. package/node_modules/semver/ranges/min-version.js +63 -0
  307. package/node_modules/semver/ranges/outside.js +82 -0
  308. package/node_modules/semver/ranges/simplify.js +49 -0
  309. package/node_modules/semver/ranges/subset.js +249 -0
  310. package/node_modules/semver/ranges/to-comparators.js +10 -0
  311. package/node_modules/semver/ranges/valid.js +13 -0
  312. package/node_modules/typescript/LICENSE.txt +55 -0
  313. package/node_modules/typescript/README.md +9 -0
  314. package/node_modules/typescript/bin/tsc6 +2 -0
  315. package/node_modules/typescript/lib/tsc.js +1 -0
  316. package/node_modules/typescript/lib/tsserverlibrary.d.ts +2 -0
  317. package/node_modules/typescript/lib/tsserverlibrary.js +1 -0
  318. package/node_modules/typescript/lib/typescript.d.ts +2 -0
  319. package/node_modules/typescript/lib/typescript.js +1 -0
  320. package/node_modules/typescript/package.json +39 -0
  321. package/node_modules/valibot/LICENSE.md +9 -0
  322. package/node_modules/valibot/README.md +94 -0
  323. package/node_modules/valibot/dist/index.cjs +7974 -0
  324. package/node_modules/valibot/dist/index.d.cts +16184 -0
  325. package/node_modules/valibot/dist/index.d.mts +16184 -0
  326. package/node_modules/valibot/dist/index.min.cjs +2 -0
  327. package/node_modules/valibot/dist/index.min.mjs +2 -0
  328. package/node_modules/valibot/dist/index.mjs +7663 -0
  329. package/node_modules/valibot/package.json +79 -0
  330. package/package.json +20 -13
  331. package/LICENSE +0 -21
  332. package/node_modules/@ykdz/template-builtin-source/dist/src/index.d.ts +0 -22
  333. package/node_modules/@ykdz/template-builtin-source/dist/src/index.js +0 -103
  334. package/node_modules/@ykdz/template-builtin-source/dist/templates/projection-plans.d.ts +0 -7
  335. package/node_modules/@ykdz/template-builtin-source/dist/templates/projection-plans.js +0 -98
  336. package/node_modules/@ykdz/template-builtin-source/dist/templates/registry.d.ts +0 -2
  337. package/node_modules/@ykdz/template-builtin-source/dist/templates/registry.js +0 -15
  338. package/node_modules/@ykdz/template-builtin-source/dist/templates/rust-bin/projection.d.ts +0 -9
  339. package/node_modules/@ykdz/template-builtin-source/dist/templates/rust-bin/projection.js +0 -105
  340. package/node_modules/@ykdz/template-builtin-source/dist/templates/ts-lib/projection.d.ts +0 -6
  341. package/node_modules/@ykdz/template-builtin-source/dist/templates/ts-lib/projection.js +0 -197
  342. package/node_modules/@ykdz/template-builtin-source/dist/templates/vike-app/projection.d.ts +0 -5
  343. package/node_modules/@ykdz/template-builtin-source/dist/templates/vike-app/projection.js +0 -71
  344. package/node_modules/@ykdz/template-builtin-source/dist/templates/vue-app/projection.d.ts +0 -6
  345. package/node_modules/@ykdz/template-builtin-source/dist/templates/vue-app/projection.js +0 -281
  346. package/node_modules/@ykdz/template-builtin-source/dist/templates/vue-hono-app/projection.d.ts +0 -8
  347. package/node_modules/@ykdz/template-builtin-source/dist/templates/vue-hono-app/projection.js +0 -154
  348. package/node_modules/@ykdz/template-builtin-source/package.json +0 -93
  349. package/node_modules/@ykdz/template-builtin-source/templates/preset-source.json +0 -517
  350. package/node_modules/@ykdz/template-builtin-source/templates/shared/devcontainer/node-pnpm.Dockerfile +0 -6
  351. package/node_modules/@ykdz/template-builtin-source/templates/shared/editor-customization/capabilities.json +0 -56
  352. package/node_modules/@ykdz/template-builtin-source/templates/shared/oxc/node/oxlint.config.ts +0 -34
  353. package/node_modules/@ykdz/template-builtin-source/templates/shared/oxc/oxfmt.config.ts +0 -8
  354. package/node_modules/@ykdz/template-builtin-source/templates/shared/oxc/vue/oxlint.config.ts +0 -36
  355. package/node_modules/@ykdz/template-builtin-source/templates/vike-app/.github/workflows/check.yml +0 -28
  356. package/node_modules/@ykdz/template-builtin-source/templates/vike-app/db/drizzle.config.ts +0 -10
  357. package/node_modules/@ykdz/template-builtin-source/templates/vike-app/web/Dockerfile +0 -47
  358. package/node_modules/@ykdz/template-builtin-source/templates/vike-app/web/playwright.config.ts +0 -43
  359. package/node_modules/@ykdz/template-builtin-source/templates/vike-app/web/scripts/run-playwright.ts +0 -81
  360. package/node_modules/@ykdz/template-builtin-source/templates/vue-hono-app/api/src/index.ts +0 -3
  361. package/node_modules/@ykdz/template-builtin-source/templates/vue-hono-app/web/src/main.ts +0 -8
  362. package/node_modules/@ykdz/template-builtin-source/templates/vue-hono-app/web/src/stores/counter.ts +0 -12
  363. package/node_modules/@ykdz/template-builtin-source/templates/vue-hono-app/web/src/style.css +0 -1
  364. package/node_modules/@ykdz/template-builtin-source/templates/vue-hono-app/web/test/app.test.ts +0 -14
  365. package/node_modules/@ykdz/template-core/dist/declarations.d.ts +0 -2
  366. package/node_modules/@ykdz/template-core/dist/declarations.js +0 -1
  367. package/node_modules/@ykdz/template-core/dist/generated-scenarios.d.ts +0 -75
  368. package/node_modules/@ykdz/template-core/dist/generated-scenarios.js +0 -572
  369. package/node_modules/@ykdz/template-core/dist/generation-context.d.ts +0 -23
  370. package/node_modules/@ykdz/template-core/dist/generation-context.js +0 -20
  371. package/node_modules/@ykdz/template-core/dist/next-step-instructions.d.ts +0 -30
  372. package/node_modules/@ykdz/template-core/dist/next-step-instructions.js +0 -181
  373. package/node_modules/@ykdz/template-core/dist/package-addition-support.d.ts +0 -6
  374. package/node_modules/@ykdz/template-core/dist/package-addition-support.js +0 -2
  375. package/node_modules/@ykdz/template-core/dist/package-addition.d.ts +0 -12
  376. package/node_modules/@ykdz/template-core/dist/package-addition.js +0 -665
  377. package/node_modules/@ykdz/template-core/dist/package-linking.d.ts +0 -75
  378. package/node_modules/@ykdz/template-core/dist/package-linking.js +0 -157
  379. package/node_modules/@ykdz/template-core/dist/preset-projection.d.ts +0 -69
  380. package/node_modules/@ykdz/template-core/dist/preset-projection.js +0 -8
  381. package/node_modules/@ykdz/template-core/dist/preset-source.d.ts +0 -14
  382. package/node_modules/@ykdz/template-core/dist/preset-source.js +0 -294
  383. package/node_modules/@ykdz/template-core/dist/projection-capabilities.d.ts +0 -31
  384. package/node_modules/@ykdz/template-core/dist/projection-capabilities.js +0 -2168
  385. package/node_modules/@ykdz/template-core/dist/runtime-paths.d.ts +0 -1
  386. package/node_modules/@ykdz/template-core/dist/runtime-paths.js +0 -13
  387. package/node_modules/@ykdz/template-shared/dist/index.d.ts +0 -645
  388. package/node_modules/@ykdz/template-shared/dist/index.js +0 -1408
  389. package/node_modules/@ykdz/template-shared/package.json +0 -36
  390. package/node_modules/@ykdz/{template-builtin-source/templates/vue-app/.github/workflows/check.yml → template-builtin-presets/templates/foundation/.github/workflows/check-playwright.yml} +0 -0
  391. package/node_modules/@ykdz/{template-builtin-source/templates/rust-bin/.github/workflows/check.yml → template-builtin-presets/templates/foundation/.github/workflows/check-rust.yml} +0 -0
  392. package/node_modules/@ykdz/{template-builtin-source/templates/ts-lib → template-builtin-presets/templates/foundation}/.github/workflows/check.yml +0 -0
  393. package/node_modules/@ykdz/{template-builtin-source/templates/shared → template-builtin-presets/templates/foundation/rust}/devcontainer/rust.Dockerfile +0 -0
  394. package/node_modules/@ykdz/{template-builtin-source/templates/rust-bin → template-builtin-presets/templates/foundation/rust}/rust-toolchain.toml +0 -0
  395. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/rust-bin/rustfmt.toml +0 -0
  396. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/rust-bin/src/main.rs +0 -0
  397. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/rust-bin/turbo.json +0 -0
  398. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/shared/devcontainer/browser-test.Dockerfile +0 -0
  399. package/node_modules/@ykdz/{template-builtin-source/templates/vue-app → template-builtin-presets/templates/shared/vue}/src/main.ts +0 -0
  400. package/node_modules/@ykdz/{template-builtin-source/templates/vue-app → template-builtin-presets/templates/shared/vue}/src/stores/counter.ts +0 -0
  401. package/node_modules/@ykdz/{template-builtin-source/templates/vue-app → template-builtin-presets/templates/shared/vue}/src/style.css +0 -0
  402. package/node_modules/@ykdz/{template-builtin-source/templates/vue-app → template-builtin-presets/templates/shared/vue}/test/app.test.ts +0 -0
  403. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/ts-lib/src/name-schema.ts +0 -0
  404. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/ts-lib/turbo.json +0 -0
  405. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/db/scripts/seed-example.ts +0 -0
  406. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/db/src/db.ts +0 -0
  407. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/db/src/index.ts +0 -0
  408. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/db/src/queries/todos.ts +0 -0
  409. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/db/src/schema.ts +0 -0
  410. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/db/src/seed/example.ts +0 -0
  411. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/db/test/todos.test.ts +0 -0
  412. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/db/turbo.json +0 -0
  413. package/node_modules/@ykdz/{template-builtin-source/templates/vike-app/db → template-builtin-presets/templates/vike-app/db-migrations}/drizzle/migrations/20260709120325_old_captain_flint/migration.sql +0 -0
  414. package/node_modules/@ykdz/{template-builtin-source/templates/vike-app/db → template-builtin-presets/templates/vike-app/db-migrations}/drizzle/migrations/20260709120325_old_captain_flint/snapshot.json +0 -0
  415. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/web/+server.ts +0 -0
  416. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/web/.env.example +0 -0
  417. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/web/Dockerfile.dockerignore +0 -0
  418. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/web/assets/logo.svg +0 -0
  419. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/web/components/CounterButton.vue +0 -0
  420. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/web/components/PageShell.vue +0 -0
  421. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/web/pages/+Head.vue +0 -0
  422. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/web/pages/+Layout.vue +0 -0
  423. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/web/pages/+config.ts +0 -0
  424. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/web/pages/tailwind.css +0 -0
  425. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/web/server/api.ts +0 -0
  426. package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/web/server/app.ts +1 -1
  427. /package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/web/types/env.d.ts +0 -0
  428. /package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/web/types/global.d.ts +0 -0
  429. /package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/web/vite.config.ts +0 -0
  430. /package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/web/vitest.config.ts +0 -0
  431. /package/node_modules/@ykdz/{template-builtin-source/templates/vue-hono-app → template-builtin-presets/templates/vue-app}/.github/workflows/check.yml +0 -0
  432. /package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vue-app/env.d.ts +0 -0
  433. /package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vue-app/index.html +0 -0
  434. /package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vue-app/playwright.config.ts +0 -0
  435. /package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vue-app/scripts/run-playwright.ts +0 -0
  436. /package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vue-app/src/App.vue +0 -0
  437. /package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vue-app/test/e2e/app.spec.ts +0 -0
  438. /package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vue-app/vite.config.ts +0 -0
  439. /package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vue-app/vitest.config.ts +0 -0
  440. /package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vue-hono-app/api/src/runtime.ts +0 -0
  441. /package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vue-hono-app/api/turbo.json +0 -0
  442. /package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vue-hono-app/api/vitest.config.ts +0 -0
  443. /package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vue-hono-app/web/env.d.ts +0 -0
  444. /package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vue-hono-app/web/index.html +0 -0
  445. /package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vue-hono-app/web/playwright.config.ts +0 -0
  446. /package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vue-hono-app/web/scripts/run-playwright.ts +0 -0
  447. /package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vue-hono-app/web/src/App.vue +0 -0
  448. /package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vue-hono-app/web/src/api.ts +0 -0
  449. /package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vue-hono-app/web/test/e2e/app.spec.ts +0 -0
  450. /package/node_modules/@ykdz/{template-builtin-source/templates/vike-app → template-builtin-presets/templates/vue-hono-app}/web/turbo.json +0 -0
  451. /package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vue-hono-app/web/vite.config.ts +0 -0
  452. /package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vue-hono-app/web/vitest.config.ts +0 -0
@@ -0,0 +1,408 @@
1
+ import { fileURLToPath } from "node:url";
2
+ import { playwrightBrowserAssetsEnvironmentNeed, shellCheckEnvironmentNeed, } from "@ykdz/template-core/module-graph";
3
+ import { vueTypecheckRunnerSourceOperation } from "../shared/vue.js";
4
+ import { templateSources } from "../template-sources.js";
5
+ function definitions(context) {
6
+ return {
7
+ web: {
8
+ name: `@${context.scope}/web`,
9
+ path: "apps/web",
10
+ role: "runtime-service",
11
+ },
12
+ db: {
13
+ name: `@${context.scope}/db`,
14
+ path: "packages/db",
15
+ role: "shared-library",
16
+ },
17
+ migrations: {
18
+ name: `@${context.scope}/db-migrations`,
19
+ path: "packages/db-migrations",
20
+ role: "shared-library",
21
+ },
22
+ };
23
+ }
24
+ function foundation() {
25
+ return {
26
+ toolchains: {},
27
+ editorCapabilities: ["oxc-format-lint", "vue", "tailwind", "vitest"],
28
+ dependencyMaintenance: {
29
+ ecosystems: ["npm", "github-actions", "docker"],
30
+ directories: { npm: "/", docker: "/.devcontainer" },
31
+ extraDirectories: { docker: ["/apps/web"] },
32
+ interval: "weekly",
33
+ },
34
+ workspacePackageGlobs: ["apps/*", "packages/*"],
35
+ };
36
+ }
37
+ function checks(packagePath, options = {}) {
38
+ const owner = { kind: "package-boundary", path: packagePath };
39
+ return [
40
+ { kind: "typescript-typecheck", owner },
41
+ { kind: "oxc-lint", owner },
42
+ { kind: "oxc-format-check", owner },
43
+ { kind: "build", owner },
44
+ ...((options.unit ?? true) ? [{ kind: "unit-test", owner }] : []),
45
+ ...(options.browser ? [{ kind: "e2e-test", owner }] : []),
46
+ ];
47
+ }
48
+ function fixes(packagePath) {
49
+ const owner = { kind: "package-boundary", path: packagePath };
50
+ return [
51
+ { kind: "oxc-format-write", owner },
52
+ { kind: "oxc-lint-fix", owner },
53
+ ];
54
+ }
55
+ function webScripts() {
56
+ const prepareDatabase = "DATABASE_FILE=../../apps/web/data/app.sqlite pnpm --dir ../../packages/db-migrations run db:prepare:dev";
57
+ return {
58
+ "build:run": "vike build",
59
+ "check:deployment": "node scripts/check-standalone-deployment.ts",
60
+ dev: `${prepareDatabase} && vike dev`,
61
+ "format:check:run": "oxfmt --list-different --config ../../oxfmt.config.ts .",
62
+ "format:write:run": "oxfmt --write --config ../../oxfmt.config.ts .",
63
+ "lint:run": "shellcheck scripts/container-entrypoint.sh && oxlint --quiet --format=unix --type-aware --config ../../oxlint.config.ts .",
64
+ "lint:fix:run": "oxlint --type-aware --format=unix --config ../../oxlint.config.ts . --fix",
65
+ preview: `${prepareDatabase} && vike preview`,
66
+ start: "node ./dist/server/index.mjs",
67
+ "test:run": "vitest run --reporter=agent --silent=passed-only --passWithNoTests",
68
+ "test:e2e:run": "node scripts/run-playwright.ts",
69
+ "typecheck:run": "node scripts/run-vue-tsc.ts --build --noEmit --pretty false",
70
+ };
71
+ }
72
+ function databaseScripts() {
73
+ return {
74
+ "build:run": "tsc -p tsconfig.json --noEmit",
75
+ "db:seed:example": "node scripts/seed-example.ts",
76
+ "format:check:run": "oxfmt --list-different --config ../../oxfmt.config.ts .",
77
+ "format:write:run": "oxfmt --write --config ../../oxfmt.config.ts .",
78
+ "lint:run": "oxlint --quiet --format=unix --config ../../oxlint.config.ts .",
79
+ "lint:fix:run": "oxlint --format=unix --config ../../oxlint.config.ts . --fix",
80
+ "test:run": 'DATABASE_FILE="$(pwd)/node_modules/.tmp/test.sqlite" pnpm --dir ../db-migrations run db:prepare:test && DATABASE_FILE="$(pwd)/node_modules/.tmp/test.sqlite" vitest run --reporter=agent --silent=passed-only; status=$?; rm -f ./node_modules/.tmp/test.sqlite; exit $status',
81
+ "typecheck:run": "tsc -p tsconfig.json --noEmit --pretty false",
82
+ };
83
+ }
84
+ function migrationScripts(databasePackageName) {
85
+ const withDatabasePackage = (command) => `DATABASE_PACKAGE_NAME=${databasePackageName} ${command}`;
86
+ return {
87
+ "build:run": "tsc -p tsconfig.json --noEmit",
88
+ "db:generate": withDatabasePackage("drizzle-kit generate"),
89
+ "db:migrate": withDatabasePackage("drizzle-kit migrate"),
90
+ "db:prepare:deploy": "pnpm run db:migrate",
91
+ "db:prepare:dev": `DATABASE_PACKAGE_NAME=${databasePackageName} node scripts/prepare-database.ts dev`,
92
+ "db:prepare:test": `DATABASE_PACKAGE_NAME=${databasePackageName} node scripts/prepare-database.ts test`,
93
+ "db:push": withDatabasePackage("mkdir -p data node_modules/.tmp && drizzle-kit push"),
94
+ "db:studio": withDatabasePackage("drizzle-kit studio"),
95
+ "format:check:run": "oxfmt --list-different --config ../../oxfmt.config.ts .",
96
+ "format:write:run": "oxfmt --write --config ../../oxfmt.config.ts .",
97
+ "lint:run": "oxlint --quiet --format=unix --config ../../oxlint.config.ts .",
98
+ "lint:fix:run": "oxlint --format=unix --config ../../oxlint.config.ts . --fix",
99
+ "typecheck:run": "tsc -p tsconfig.json --noEmit --pretty false",
100
+ };
101
+ }
102
+ function copyOperations(packagePath, sourceFiles) {
103
+ return sourceFiles.map((from) => ({
104
+ kind: "copyFile",
105
+ source: templateSources.vikeApp,
106
+ from,
107
+ to: `${packagePath}/${from.replace(/^(?:web|db|db-migrations)\//, "")}`,
108
+ }));
109
+ }
110
+ function webContribution(context) {
111
+ const { web, db } = definitions(context);
112
+ const sourceFiles = [
113
+ "web/+server.ts",
114
+ "web/.env.example",
115
+ "web/Dockerfile.dockerignore",
116
+ "web/assets/logo.svg",
117
+ "web/components/CounterButton.vue",
118
+ "web/components/PageShell.vue",
119
+ "web/pages/+Head.vue",
120
+ "web/pages/+Layout.vue",
121
+ "web/pages/+config.ts",
122
+ "web/pages/index/+Page.vue",
123
+ "web/pages/tailwind.css",
124
+ "web/playwright.config.ts",
125
+ "web/scripts/check-standalone-deployment.ts",
126
+ "web/scripts/container-entrypoint.sh",
127
+ "web/scripts/run-playwright.ts",
128
+ "web/server/api.ts",
129
+ "web/test/e2e/app.spec.ts",
130
+ "web/turbo.json",
131
+ "web/types/env.d.ts",
132
+ "web/vite.config.ts",
133
+ "web/vitest.config.ts",
134
+ "web/tsconfig.json",
135
+ "web/tsconfig.app.json",
136
+ "web/tsconfig.test.json",
137
+ "web/tsconfig.node.json",
138
+ ];
139
+ const operations = [
140
+ {
141
+ kind: "writeJson",
142
+ to: `${web.path}/package.json`,
143
+ value: {},
144
+ multilineArrays: ["files"],
145
+ },
146
+ ...copyOperations(web.path, sourceFiles),
147
+ {
148
+ kind: "writeTextTemplate",
149
+ source: templateSources.vikeApp,
150
+ from: "web/Dockerfile",
151
+ to: `${web.path}/Dockerfile`,
152
+ replacements: {
153
+ NODE_VERSION: context.toolchain.nodeLtsMajor,
154
+ PACKAGE_MANAGER_PIN: context.toolchain.packageManagerPin,
155
+ DB_PACKAGE_NAME: definitions(context).db.name,
156
+ DB_MIGRATIONS_PACKAGE_NAME: definitions(context).migrations.name,
157
+ WEB_PACKAGE_NAME: web.name,
158
+ },
159
+ },
160
+ {
161
+ kind: "copyFile",
162
+ source: templateSources.vikeApp,
163
+ from: "web/pages/index/+Page.telefunc.ts",
164
+ to: `${web.path}/pages/index/+Page.telefunc.ts`,
165
+ },
166
+ {
167
+ kind: "replaceAnchors",
168
+ path: `${web.path}/pages/index/+Page.telefunc.ts`,
169
+ language: "typescript",
170
+ replacements: {
171
+ "db-package-import": `import { createTodo, listTodos } from "${db.name}/queries/todos";`,
172
+ },
173
+ },
174
+ {
175
+ kind: "copyFile",
176
+ source: templateSources.vikeApp,
177
+ from: "web/server/app.ts",
178
+ to: `${web.path}/server/app.ts`,
179
+ },
180
+ {
181
+ kind: "replaceAnchors",
182
+ path: `${web.path}/server/app.ts`,
183
+ language: "typescript",
184
+ replacements: {
185
+ "db-package-import": `import { createDatabase } from "${db.name}";\nimport { assertDatabaseReady } from "${db.name}/readiness";`,
186
+ },
187
+ },
188
+ {
189
+ kind: "copyFile",
190
+ source: templateSources.vikeApp,
191
+ from: "web/types/global.d.ts",
192
+ to: `${web.path}/types/global.d.ts`,
193
+ },
194
+ {
195
+ kind: "replaceAnchors",
196
+ path: `${web.path}/types/global.d.ts`,
197
+ language: "typescript",
198
+ replacements: {
199
+ "db-package-import": `import type { Database } from "${db.name}";`,
200
+ },
201
+ },
202
+ vueTypecheckRunnerSourceOperation(web.path),
203
+ {
204
+ kind: "setExecutable",
205
+ path: `${web.path}/scripts/container-entrypoint.sh`,
206
+ executable: true,
207
+ },
208
+ ];
209
+ const owner = { kind: "package-boundary", path: web.path };
210
+ return {
211
+ definition: web,
212
+ exposure: {
213
+ exports: {},
214
+ imports: {
215
+ "#/*": { default: "./*.ts", types: "./*.ts" },
216
+ "#db/*": { default: `${db.name}/*`, types: `${db.name}/*` },
217
+ },
218
+ },
219
+ manifest: {
220
+ name: web.name,
221
+ version: "0.0.0",
222
+ private: true,
223
+ type: "module",
224
+ files: ["dist"],
225
+ imports: {
226
+ "#/*": { default: "./*.ts", types: "./*.ts" },
227
+ "#db/*": { default: `${db.name}/*`, types: `${db.name}/*` },
228
+ },
229
+ scripts: webScripts(),
230
+ dependencies: {
231
+ "@vikejs/hono": "catalog:",
232
+ hono: "catalog:",
233
+ srvx: "catalog:",
234
+ telefunc: "catalog:",
235
+ vike: "catalog:",
236
+ "vike-vue": "catalog:",
237
+ vue: "catalog:",
238
+ },
239
+ devDependencies: {
240
+ "@playwright/test": "catalog:",
241
+ "@tailwindcss/vite": "catalog:",
242
+ "@types/node": "catalog:",
243
+ "@vitejs/plugin-vue": "catalog:",
244
+ "@vue/tsconfig": "catalog:",
245
+ oxfmt: "catalog:",
246
+ oxlint: "catalog:",
247
+ "oxlint-tsgolint": "catalog:",
248
+ tailwindcss: "catalog:",
249
+ turbo: "catalog:",
250
+ typescript: "catalog:",
251
+ vite: "catalog:",
252
+ vitest: "catalog:",
253
+ "vue-tsc": "catalog:",
254
+ },
255
+ engines: { node: context.toolchain.nodeLtsMajor },
256
+ packageManager: context.toolchain.packageManagerPin,
257
+ },
258
+ operations,
259
+ checks: checks(web.path, { browser: true }),
260
+ fixes: fixes(web.path),
261
+ environmentNeeds: [
262
+ playwrightBrowserAssetsEnvironmentNeed({ browser: "chromium", owner }),
263
+ shellCheckEnvironmentNeed(owner),
264
+ ],
265
+ deploymentChecks: [{ kind: "deployment-image", owner }],
266
+ foundation: foundation(),
267
+ };
268
+ }
269
+ function databaseContribution(context) {
270
+ const { db } = definitions(context);
271
+ const sourceFiles = [
272
+ "db/turbo.json",
273
+ "db/tsconfig.json",
274
+ "db/scripts/seed-example.ts",
275
+ "db/src/db.ts",
276
+ "db/src/index.ts",
277
+ "db/src/queries/todos.ts",
278
+ "db/src/readiness.ts",
279
+ "db/src/seed/example.ts",
280
+ "db/src/schema.ts",
281
+ "db/src/types.d.ts",
282
+ "db/test/todos.test.ts",
283
+ ];
284
+ const exposure = {
285
+ exports: {
286
+ ".": { default: "./src/index.ts", types: "./src/index.ts" },
287
+ "./schema": { default: "./src/schema.ts", types: "./src/schema.ts" },
288
+ "./types": { default: "./src/types.d.ts", types: "./src/types.d.ts" },
289
+ "./queries/todos": {
290
+ default: "./src/queries/todos.ts",
291
+ types: "./src/queries/todos.ts",
292
+ },
293
+ "./readiness": {
294
+ default: "./src/readiness.ts",
295
+ types: "./src/readiness.ts",
296
+ },
297
+ },
298
+ imports: { "#db/*": { default: "./src/*.ts", types: "./src/*.ts" } },
299
+ };
300
+ return {
301
+ definition: db,
302
+ exposure,
303
+ manifest: {
304
+ name: db.name,
305
+ version: "0.0.0",
306
+ private: true,
307
+ type: "module",
308
+ ...exposure,
309
+ scripts: databaseScripts(),
310
+ dependencies: { "drizzle-orm": "catalog:" },
311
+ devDependencies: {
312
+ "@types/node": "catalog:",
313
+ oxfmt: "catalog:",
314
+ oxlint: "catalog:",
315
+ "oxlint-tsgolint": "catalog:",
316
+ "typescript-7": "catalog:",
317
+ vitest: "catalog:",
318
+ },
319
+ engines: { node: context.toolchain.nodeLtsMajor },
320
+ },
321
+ operations: [
322
+ { kind: "writeJson", to: `${db.path}/package.json`, value: {} },
323
+ ...copyOperations(db.path, sourceFiles),
324
+ ],
325
+ checks: checks(db.path),
326
+ fixes: fixes(db.path),
327
+ environmentNeeds: [],
328
+ foundation: foundation(),
329
+ };
330
+ }
331
+ function migrationsContribution(context) {
332
+ const { db, migrations } = definitions(context);
333
+ const sourceFiles = [
334
+ "db-migrations/drizzle.config.ts",
335
+ "db-migrations/tsconfig.json",
336
+ "db-migrations/drizzle/migrations/20260709120325_old_captain_flint/migration.sql",
337
+ "db-migrations/drizzle/migrations/20260709120325_old_captain_flint/snapshot.json",
338
+ "db-migrations/scripts/prepare-database.ts",
339
+ "db-migrations/turbo.json",
340
+ ];
341
+ return {
342
+ definition: migrations,
343
+ exposure: { exports: {}, imports: {} },
344
+ manifest: {
345
+ name: migrations.name,
346
+ version: "0.0.0",
347
+ private: true,
348
+ type: "module",
349
+ files: ["drizzle.config.ts", "drizzle/migrations"],
350
+ scripts: migrationScripts(db.name),
351
+ dependencies: { "drizzle-kit": "catalog:", "drizzle-orm": "catalog:" },
352
+ devDependencies: {
353
+ "@types/node": "catalog:",
354
+ oxfmt: "catalog:",
355
+ oxlint: "catalog:",
356
+ "oxlint-tsgolint": "catalog:",
357
+ "typescript-7": "catalog:",
358
+ },
359
+ engines: { node: context.toolchain.nodeLtsMajor },
360
+ },
361
+ operations: [
362
+ {
363
+ kind: "writeJson",
364
+ to: `${migrations.path}/package.json`,
365
+ value: {},
366
+ multilineArrays: ["files"],
367
+ },
368
+ ...copyOperations(migrations.path, sourceFiles),
369
+ ],
370
+ // This package has no test:run manifest script, so the durable
371
+ // contribution reconstruction must not invent a unit-test check for it.
372
+ checks: checks(migrations.path, { unit: false }),
373
+ fixes: fixes(migrations.path),
374
+ environmentNeeds: [],
375
+ foundation: foundation(),
376
+ };
377
+ }
378
+ export const vikeAppDefinition = {
379
+ metadata: {
380
+ name: "vike-app",
381
+ title: "Vike app",
382
+ description: "Vike, Hono, Telefunc, Drizzle, and Vue workspace with separate database and migration packages.",
383
+ },
384
+ source: templateSources.vikeApp,
385
+ plannerSourceFile: fileURLToPath(import.meta.url),
386
+ blueprint(context) {
387
+ const { web, db, migrations } = definitions(context);
388
+ return {
389
+ schemaVersion: 2,
390
+ packages: [web, db, migrations],
391
+ packageLinkIntents: [
392
+ { consumerPackagePath: web.path, providerPackagePath: db.path },
393
+ {
394
+ consumerPackagePath: migrations.path,
395
+ providerPackagePath: db.path,
396
+ },
397
+ ],
398
+ };
399
+ },
400
+ planInitialization: webContribution,
401
+ planInitializationContributions(context) {
402
+ return [
403
+ webContribution(context),
404
+ databaseContribution(context),
405
+ migrationsContribution(context),
406
+ ];
407
+ },
408
+ };
@@ -0,0 +1,2 @@
1
+ import type { BuiltInPresetDefinition } from "@ykdz/template-core/preset-definition";
2
+ export declare const vueAppDefinition: BuiltInPresetDefinition;
@@ -0,0 +1,94 @@
1
+ import { sharedVueSourceOperations, vueApplicationChecks, vueApplicationEnvironmentNeeds, vueApplicationExposure, vueApplicationFixes, vueApplicationManifest, vueApplicationScripts, } from "../shared/vue.js";
2
+ import { templateSources } from "../template-sources.js";
3
+ function packageScripts() {
4
+ return {
5
+ ...vueApplicationScripts(),
6
+ "typecheck:run": "node scripts/run-vue-tsc.ts --build --noEmit --pretty false",
7
+ };
8
+ }
9
+ function appContribution(options) {
10
+ const definition = {
11
+ name: `@${options.context.scope}/${options.packageLeafName}`,
12
+ path: options.packagePath,
13
+ role: "runtime-service",
14
+ };
15
+ const exposure = vueApplicationExposure;
16
+ const sourceFiles = [
17
+ "env.d.ts",
18
+ "index.html",
19
+ "playwright.config.ts",
20
+ "vite.config.ts",
21
+ "vitest.config.ts",
22
+ "turbo.json",
23
+ "scripts/run-playwright.ts",
24
+ "src/App.vue",
25
+ "test/e2e/app.spec.ts",
26
+ ];
27
+ const operations = [
28
+ { kind: "writeJson", to: `${definition.path}/package.json`, value: {} },
29
+ ...sourceFiles.map((from) => ({
30
+ kind: "copyFile",
31
+ source: templateSources.vueApp,
32
+ from,
33
+ to: `${definition.path}/${from.replace("typescript/", "scripts/")}`,
34
+ })),
35
+ ...sharedVueSourceOperations(definition.path),
36
+ ];
37
+ return {
38
+ definition,
39
+ exposure,
40
+ manifest: vueApplicationManifest({
41
+ context: options.context,
42
+ definition,
43
+ scripts: packageScripts(),
44
+ }),
45
+ operations,
46
+ checks: vueApplicationChecks(definition.path),
47
+ fixes: vueApplicationFixes(definition.path),
48
+ environmentNeeds: vueApplicationEnvironmentNeeds(definition.path),
49
+ foundation: {
50
+ toolchains: {},
51
+ editorCapabilities: ["oxc-format-lint", "vue", "tailwind", "vitest"],
52
+ dependencyMaintenance: {
53
+ ecosystems: ["npm", "github-actions", "docker"],
54
+ interval: "weekly",
55
+ },
56
+ workspacePackageGlobs: [`${options.packagePath.split("/")[0]}/*`],
57
+ },
58
+ };
59
+ }
60
+ export const vueAppDefinition = {
61
+ metadata: {
62
+ name: "vue-app",
63
+ title: "Vue app",
64
+ description: "Vue app workspace with Vite, Tailwind, Pinia, and test tooling.",
65
+ },
66
+ source: templateSources.vueApp,
67
+ plannerSourceFile: fileURLToPath(import.meta.url),
68
+ blueprint(context) {
69
+ return {
70
+ schemaVersion: 2,
71
+ packages: [
72
+ appContribution({
73
+ context,
74
+ packageLeafName: "web",
75
+ packagePath: "apps/web",
76
+ }).definition,
77
+ ],
78
+ };
79
+ },
80
+ planInitialization(context) {
81
+ return appContribution({
82
+ context,
83
+ packageLeafName: "web",
84
+ packagePath: "apps/web",
85
+ });
86
+ },
87
+ defaultPackagePath({ packageLeafName }) {
88
+ return `apps/${packageLeafName}`;
89
+ },
90
+ planPackageAddition({ context, packageLeafName, packagePath }) {
91
+ return appContribution({ context, packageLeafName, packagePath });
92
+ },
93
+ };
94
+ import { fileURLToPath } from "node:url";
@@ -0,0 +1,2 @@
1
+ import type { BuiltInPresetDefinition } from "@ykdz/template-core/preset-definition";
2
+ export declare const vueHonoAppDefinition: BuiltInPresetDefinition;
@@ -0,0 +1,179 @@
1
+ import {} from "@ykdz/template-core/module-graph";
2
+ import { sharedVueSourceOperations, vueApplicationChecks, vueApplicationEnvironmentNeeds, vueApplicationExposure, vueApplicationFixes, vueApplicationManifest, vueApplicationScripts, } from "../shared/vue.js";
3
+ import { templateSources } from "../template-sources.js";
4
+ function apiScripts() {
5
+ return {
6
+ "build:run": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
7
+ dev: "node --watch src/server.ts",
8
+ "format:check:run": "oxfmt --list-different --config ../../oxfmt.config.ts .",
9
+ "format:write:run": "oxfmt --write --config ../../oxfmt.config.ts .",
10
+ "lint:run": "oxlint --quiet --format=unix --config ../../oxlint.config.ts .",
11
+ "lint:fix:run": "oxlint --format=unix --config ../../oxlint.config.ts . --fix",
12
+ start: "node dist/server.js",
13
+ "test:run": "vitest run --reporter=agent --silent=passed-only",
14
+ "typecheck:run": "tsc -p tsconfig.json --noEmit --pretty false",
15
+ };
16
+ }
17
+ function webScripts() {
18
+ return {
19
+ ...vueApplicationScripts(),
20
+ "typecheck:run": "node scripts/run-vue-tsc.ts --build --pretty false",
21
+ };
22
+ }
23
+ function packageFoundation() {
24
+ return {
25
+ toolchains: {},
26
+ editorCapabilities: ["oxc-format-lint", "vue", "tailwind", "vitest"],
27
+ dependencyMaintenance: {
28
+ ecosystems: ["npm", "github-actions", "docker"],
29
+ interval: "weekly",
30
+ },
31
+ workspacePackageGlobs: ["apps/*"],
32
+ };
33
+ }
34
+ function apiContribution(context) {
35
+ const definition = {
36
+ name: `@${context.scope}/api`,
37
+ path: "apps/api",
38
+ role: "runtime-service",
39
+ };
40
+ const exposure = {
41
+ exports: {
42
+ ".": { default: "./dist/index.js", types: "./dist/index.d.ts" },
43
+ },
44
+ imports: { "#/*": { default: "./dist/*.js", types: "./src/*.ts" } },
45
+ };
46
+ const owner = { kind: "package-boundary", path: definition.path };
47
+ const checks = [
48
+ { kind: "typescript-typecheck", owner },
49
+ { kind: "oxc-lint", owner },
50
+ { kind: "oxc-format-check", owner },
51
+ { kind: "build", owner },
52
+ { kind: "unit-test", owner },
53
+ ];
54
+ const fixes = [
55
+ { kind: "oxc-format-write", owner },
56
+ { kind: "oxc-lint-fix", owner },
57
+ ];
58
+ const sourceFiles = [
59
+ "turbo.json",
60
+ "vitest.config.ts",
61
+ "tsconfig.json",
62
+ "tsconfig.build.json",
63
+ "src/index.ts",
64
+ "src/runtime.ts",
65
+ "src/server.ts",
66
+ "test/app.test.ts",
67
+ ];
68
+ const operations = [
69
+ { kind: "writeJson", to: `${definition.path}/package.json`, value: {} },
70
+ ...sourceFiles.map((from) => ({
71
+ kind: "copyFile",
72
+ source: templateSources.vueHonoApp,
73
+ from: `api/${from}`,
74
+ to: `${definition.path}/${from}`,
75
+ })),
76
+ ];
77
+ return {
78
+ definition,
79
+ exposure,
80
+ manifest: {
81
+ name: definition.name,
82
+ version: "0.0.0",
83
+ private: true,
84
+ type: "module",
85
+ ...exposure,
86
+ scripts: apiScripts(),
87
+ dependencies: { "@hono/node-server": "catalog:", hono: "catalog:" },
88
+ devDependencies: {
89
+ "@types/node": "catalog:",
90
+ oxfmt: "catalog:",
91
+ oxlint: "catalog:",
92
+ "oxlint-tsgolint": "catalog:",
93
+ "tsc-alias": "catalog:",
94
+ "typescript-7": "catalog:",
95
+ vitest: "catalog:",
96
+ },
97
+ engines: { node: context.toolchain.nodeLtsMajor },
98
+ },
99
+ operations,
100
+ checks,
101
+ fixes,
102
+ environmentNeeds: [],
103
+ foundation: packageFoundation(),
104
+ };
105
+ }
106
+ function webContribution(context) {
107
+ const definition = {
108
+ name: `@${context.scope}/web`,
109
+ path: "apps/web",
110
+ role: "runtime-service",
111
+ };
112
+ const exposure = vueApplicationExposure;
113
+ const localSourceFiles = [
114
+ "env.d.ts",
115
+ "index.html",
116
+ "playwright.config.ts",
117
+ "vite.config.ts",
118
+ "vitest.config.ts",
119
+ "turbo.json",
120
+ "scripts/run-playwright.ts",
121
+ "src/api.ts",
122
+ "src/App.vue",
123
+ "test/e2e/app.spec.ts",
124
+ ];
125
+ const operations = [
126
+ { kind: "writeJson", to: `${definition.path}/package.json`, value: {} },
127
+ ...localSourceFiles.map((from) => ({
128
+ kind: "copyFile",
129
+ source: templateSources.vueHonoApp,
130
+ from: `web/${from}`,
131
+ to: `${definition.path}/${from}`,
132
+ })),
133
+ ...sharedVueSourceOperations(definition.path),
134
+ ];
135
+ return {
136
+ definition,
137
+ exposure,
138
+ manifest: vueApplicationManifest({
139
+ context,
140
+ definition,
141
+ scripts: webScripts(),
142
+ }),
143
+ operations,
144
+ checks: vueApplicationChecks(definition.path),
145
+ fixes: vueApplicationFixes(definition.path),
146
+ environmentNeeds: vueApplicationEnvironmentNeeds(definition.path),
147
+ foundation: packageFoundation(),
148
+ };
149
+ }
150
+ export const vueHonoAppDefinition = {
151
+ metadata: {
152
+ name: "vue-hono-app",
153
+ title: "Vue Hono app",
154
+ description: "Full-stack Vue and Hono workspace with separated app package boundaries.",
155
+ },
156
+ source: templateSources.vueHonoApp,
157
+ plannerSourceFile: fileURLToPath(import.meta.url),
158
+ blueprint(context) {
159
+ const api = apiContribution(context);
160
+ const web = webContribution(context);
161
+ return {
162
+ schemaVersion: 2,
163
+ packages: [api.definition, web.definition],
164
+ packageLinkIntents: [
165
+ {
166
+ consumerPackagePath: web.definition.path,
167
+ providerPackagePath: api.definition.path,
168
+ },
169
+ ],
170
+ };
171
+ },
172
+ planInitialization(context) {
173
+ return apiContribution(context);
174
+ },
175
+ planInitializationContributions(context) {
176
+ return [apiContribution(context), webContribution(context)];
177
+ },
178
+ };
179
+ import { fileURLToPath } from "node:url";