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