@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.
- 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 +85 -0
- package/node_modules/@ykdz/template-builtin-presets/dist/src/foundation.js +797 -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 +134 -0
- package/node_modules/@ykdz/template-builtin-presets/dist/src/shared/vue.d.ts +36 -0
- package/node_modules/@ykdz/template-builtin-presets/dist/src/shared/vue.js +106 -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 +138 -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 +408 -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 +94 -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 +179 -0
- package/node_modules/@ykdz/template-builtin-presets/package.json +67 -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/.pnpmfile.cts +14 -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 +23 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/pnpm-workspace.yaml +29 -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/tsconfig.json +4 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/turbo.json +18 -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-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-presets/templates/vike-app/web/Dockerfile +74 -0
- package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/web/pages/index/+Page.telefunc.ts +1 -4
- 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-presets/templates/vike-app/web/playwright.config.ts +79 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/scripts/check-standalone-deployment.ts +511 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/scripts/container-entrypoint.sh +33 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/scripts/run-playwright.ts +151 -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 +1 -0
- 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 +2 -1
- 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-core/dist/Cargo.toml +1 -1
- package/node_modules/@ykdz/template-core/dist/dependency-catalog.d.ts +9 -0
- package/node_modules/@ykdz/template-core/dist/dependency-catalog.js +56 -1
- 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 +43 -2
- package/node_modules/@ykdz/template-core/dist/module-graph.js +58 -0
- package/node_modules/@ykdz/template-core/dist/package-contribution.d.ts +43 -0
- package/node_modules/@ykdz/template-core/dist/package-contribution.js +24 -0
- package/node_modules/@ykdz/template-core/dist/pnpm-workspace.yaml +28 -9
- 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 +8 -9
- package/node_modules/@ykdz/template-core/dist/project-github.js +94 -9
- 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 +114 -29
- 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 +99 -49
- 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 +9 -6
- 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 +20 -13
- 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 -517
- 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 -28
- 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/Dockerfile +0 -47
- package/node_modules/@ykdz/template-builtin-source/templates/vike-app/web/playwright.config.ts +0 -43
- package/node_modules/@ykdz/template-builtin-source/templates/vike-app/web/scripts/run-playwright.ts +0 -81
- 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 -75
- package/node_modules/@ykdz/template-core/dist/generated-scenarios.js +0 -572
- 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 -69
- 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 -2168
- 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 -36
- 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 → template-builtin-presets}/templates/vike-app/db/turbo.json +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/server/api.ts +0 -0
- package/node_modules/@ykdz/{template-builtin-source → template-builtin-presets}/templates/vike-app/web/server/app.ts +1 -1
- /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/turbo.json +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/playwright.config.ts +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/templates/vike-app → template-builtin-presets/templates/vue-hono-app}/web/turbo.json +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,3 @@
|
|
|
1
|
+
export { builtInPresetRegistry, builtInPresetTemplateSourceCheckContexts, builtInPresetTemplateSourceContexts, createGenerationContext, planGeneratedRepositoryInitialization, planGeneratedRepositoryPackageAddition, resolveBuiltInTemplateSource, validateProjectBlueprintV2, } from "./foundation.ts";
|
|
2
|
+
export { templateSources } from "./template-sources.ts";
|
|
3
|
+
export type { BuiltInPresetDefinition, BuiltInPresetTemplateSourceCheckContext, GeneratedRepositoryPlan, PackageContribution, ProjectBlueprintV2, BuiltInGenerationContext, } from "./foundation.ts";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { builtInPresetRegistry, builtInPresetTemplateSourceCheckContexts, builtInPresetTemplateSourceContexts, createGenerationContext, planGeneratedRepositoryInitialization, planGeneratedRepositoryPackageAddition, resolveBuiltInTemplateSource, validateProjectBlueprintV2, } from "./foundation.js";
|
|
2
|
+
export { templateSources } from "./template-sources.js";
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { fileURLToPath } from "node:url";
|
|
2
|
+
import { rustToolchainEnvironmentNeed } from "@ykdz/template-core/module-graph";
|
|
3
|
+
import { templateSources } from "../template-sources.js";
|
|
4
|
+
function cargoPackageName(projectName) {
|
|
5
|
+
const slug = projectName
|
|
6
|
+
.normalize("NFKD")
|
|
7
|
+
.replace(/[\u0300-\u036f]/g, "")
|
|
8
|
+
.toLowerCase()
|
|
9
|
+
.replace(/[^a-z0-9]+/g, "-")
|
|
10
|
+
.replace(/^-+|-+$/g, "");
|
|
11
|
+
return slug || "rust-bin";
|
|
12
|
+
}
|
|
13
|
+
function packageScripts() {
|
|
14
|
+
return {
|
|
15
|
+
"format:check:run": "cargo fmt --all -- --check",
|
|
16
|
+
"format:write:run": "cargo fmt --all",
|
|
17
|
+
"lint:run": "cargo clippy --workspace --all-targets -- -D warnings",
|
|
18
|
+
"test:run": "cargo test --workspace",
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function rustContribution(context) {
|
|
22
|
+
const cargoName = cargoPackageName(context.projectName);
|
|
23
|
+
const definition = {
|
|
24
|
+
name: `@${context.scope}/${cargoName}-native`,
|
|
25
|
+
path: `packages/${cargoName}`,
|
|
26
|
+
role: "native-package",
|
|
27
|
+
};
|
|
28
|
+
const operations = [
|
|
29
|
+
{ kind: "writeJson", to: `${definition.path}/package.json`, value: {} },
|
|
30
|
+
{
|
|
31
|
+
kind: "writeTextTemplate",
|
|
32
|
+
source: templateSources.rustBin,
|
|
33
|
+
from: "Cargo.toml",
|
|
34
|
+
to: `${definition.path}/Cargo.toml`,
|
|
35
|
+
replacements: { CARGO_PACKAGE_NAME: cargoName },
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
kind: "writeTextTemplate",
|
|
39
|
+
source: templateSources.rustBin,
|
|
40
|
+
from: "Cargo.lock",
|
|
41
|
+
to: `${definition.path}/Cargo.lock`,
|
|
42
|
+
replacements: { CARGO_PACKAGE_NAME: cargoName },
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
kind: "copyFile",
|
|
46
|
+
source: templateSources.rustBin,
|
|
47
|
+
from: "rustfmt.toml",
|
|
48
|
+
to: `${definition.path}/rustfmt.toml`,
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
kind: "copyFile",
|
|
52
|
+
source: templateSources.rustBin,
|
|
53
|
+
from: "turbo.json",
|
|
54
|
+
to: `${definition.path}/turbo.json`,
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
kind: "copyFile",
|
|
58
|
+
source: templateSources.rustBin,
|
|
59
|
+
from: "src/main.rs",
|
|
60
|
+
to: `${definition.path}/src/main.rs`,
|
|
61
|
+
},
|
|
62
|
+
];
|
|
63
|
+
return {
|
|
64
|
+
definition,
|
|
65
|
+
exposure: { exports: {}, imports: {} },
|
|
66
|
+
manifest: {
|
|
67
|
+
name: definition.name,
|
|
68
|
+
version: "0.0.0",
|
|
69
|
+
private: true,
|
|
70
|
+
scripts: packageScripts(),
|
|
71
|
+
engines: { node: context.toolchain.nodeLtsMajor },
|
|
72
|
+
},
|
|
73
|
+
operations,
|
|
74
|
+
checks: [
|
|
75
|
+
{
|
|
76
|
+
kind: "rustfmt-check",
|
|
77
|
+
owner: { kind: "package-boundary", path: definition.path },
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
kind: "cargo-clippy",
|
|
81
|
+
owner: { kind: "package-boundary", path: definition.path },
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
kind: "cargo-test",
|
|
85
|
+
owner: { kind: "package-boundary", path: definition.path },
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
fixes: [
|
|
89
|
+
{
|
|
90
|
+
kind: "rustfmt-write",
|
|
91
|
+
owner: { kind: "package-boundary", path: definition.path },
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
environmentNeeds: [
|
|
95
|
+
rustToolchainEnvironmentNeed({
|
|
96
|
+
kind: "package-boundary",
|
|
97
|
+
path: definition.path,
|
|
98
|
+
}),
|
|
99
|
+
],
|
|
100
|
+
foundation: {
|
|
101
|
+
toolchains: {
|
|
102
|
+
rust: { toolchain: "stable", components: ["rustfmt", "clippy"] },
|
|
103
|
+
},
|
|
104
|
+
editorCapabilities: ["rust-tooling"],
|
|
105
|
+
dependencyMaintenance: {
|
|
106
|
+
ecosystems: [
|
|
107
|
+
"npm",
|
|
108
|
+
"cargo",
|
|
109
|
+
"github-actions",
|
|
110
|
+
"docker",
|
|
111
|
+
"rust-toolchain",
|
|
112
|
+
],
|
|
113
|
+
directories: { cargo: `/${definition.path}` },
|
|
114
|
+
interval: "weekly",
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
export const rustBinDefinition = {
|
|
120
|
+
metadata: {
|
|
121
|
+
name: "rust-bin",
|
|
122
|
+
title: "Rust binary",
|
|
123
|
+
description: "Rust native binary workspace with rustfmt, clippy, and cargo tests.",
|
|
124
|
+
},
|
|
125
|
+
source: templateSources.rustBin,
|
|
126
|
+
plannerSourceFile: fileURLToPath(import.meta.url),
|
|
127
|
+
blueprint(context) {
|
|
128
|
+
return {
|
|
129
|
+
schemaVersion: 2,
|
|
130
|
+
packages: [rustContribution(context).definition],
|
|
131
|
+
};
|
|
132
|
+
},
|
|
133
|
+
planInitialization: rustContribution,
|
|
134
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type CheckComponent, type FixComponent } from "@ykdz/template-core/module-graph";
|
|
2
|
+
import type { PackageContribution } from "@ykdz/template-core/package-contribution";
|
|
3
|
+
import type { GenerationContext } from "@ykdz/template-core/preset-definition";
|
|
4
|
+
import type { PackageDefinition } from "@ykdz/template-core/project-blueprint-v2";
|
|
5
|
+
import type { RenderOperation } from "@ykdz/template-core/renderer";
|
|
6
|
+
/** Vue's tooling peers need these repository policy overrides, never Core defaults. */
|
|
7
|
+
export declare const vuePnpmDependencyOverrides: {
|
|
8
|
+
readonly "pinia>typescript": "-";
|
|
9
|
+
readonly "vue>typescript": "-";
|
|
10
|
+
};
|
|
11
|
+
export declare const vueApplicationExposure: {
|
|
12
|
+
readonly exports: {
|
|
13
|
+
readonly ".": {
|
|
14
|
+
readonly default: "./src/main.ts";
|
|
15
|
+
readonly types: "./src/main.ts";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly imports: {
|
|
19
|
+
readonly "#/*": {
|
|
20
|
+
readonly default: "./src/*.ts";
|
|
21
|
+
readonly types: "./src/*.ts";
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export declare function vueApplicationScripts(): Record<string, string>;
|
|
26
|
+
export declare function sharedVueSourceOperations(packagePath: string): readonly RenderOperation[];
|
|
27
|
+
/** Vike shares Vue's compiler runner, but owns its distinct Vike source tree. */
|
|
28
|
+
export declare function vueTypecheckRunnerSourceOperation(packagePath: string): RenderOperation;
|
|
29
|
+
export declare function vueApplicationChecks(packagePath: string): readonly CheckComponent[];
|
|
30
|
+
export declare function vueApplicationFixes(packagePath: string): readonly FixComponent[];
|
|
31
|
+
export declare function vueApplicationEnvironmentNeeds(packagePath: string): import("@ykdz/template-core/module-graph").PlaywrightBrowserAssetsEnvironmentNeed[];
|
|
32
|
+
export declare function vueApplicationManifest(options: {
|
|
33
|
+
readonly context: GenerationContext;
|
|
34
|
+
readonly definition: PackageDefinition;
|
|
35
|
+
readonly scripts: Record<string, string>;
|
|
36
|
+
}): PackageContribution["manifest"];
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { playwrightBrowserAssetsEnvironmentNeed, } from "@ykdz/template-core/module-graph";
|
|
2
|
+
import { templateSources } from "../template-sources.js";
|
|
3
|
+
/** Vue's tooling peers need these repository policy overrides, never Core defaults. */
|
|
4
|
+
export const vuePnpmDependencyOverrides = {
|
|
5
|
+
"pinia>typescript": "-",
|
|
6
|
+
"vue>typescript": "-",
|
|
7
|
+
};
|
|
8
|
+
export const vueApplicationExposure = {
|
|
9
|
+
exports: { ".": { default: "./src/main.ts", types: "./src/main.ts" } },
|
|
10
|
+
imports: { "#/*": { default: "./src/*.ts", types: "./src/*.ts" } },
|
|
11
|
+
};
|
|
12
|
+
const sharedVueSourceFiles = [
|
|
13
|
+
"tsconfig.json",
|
|
14
|
+
"tsconfig.app.json",
|
|
15
|
+
"tsconfig.test.json",
|
|
16
|
+
"tsconfig.node.json",
|
|
17
|
+
"typescript/run-vue-tsc.ts",
|
|
18
|
+
"src/main.ts",
|
|
19
|
+
"src/style.css",
|
|
20
|
+
"src/stores/counter.ts",
|
|
21
|
+
"test/app.test.ts",
|
|
22
|
+
];
|
|
23
|
+
export function vueApplicationScripts() {
|
|
24
|
+
return {
|
|
25
|
+
"build:run": "vite build",
|
|
26
|
+
dev: "vite",
|
|
27
|
+
"format:check:run": "oxfmt --list-different --config ../../oxfmt.config.ts .",
|
|
28
|
+
"format:write:run": "oxfmt --write --config ../../oxfmt.config.ts .",
|
|
29
|
+
"lint:run": "oxlint --quiet --format=unix --config ../../oxlint.config.ts .",
|
|
30
|
+
"lint:fix:run": "oxlint --format=unix --config ../../oxlint.config.ts . --fix",
|
|
31
|
+
preview: "vite preview",
|
|
32
|
+
"test:run": "vitest run --reporter=agent --silent=passed-only",
|
|
33
|
+
"test:e2e:run": "node scripts/run-playwright.ts",
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function sharedVueSourceOperations(packagePath) {
|
|
37
|
+
return sharedVueSourceFiles.map((from) => ({
|
|
38
|
+
kind: "copyFile",
|
|
39
|
+
source: templateSources.vue,
|
|
40
|
+
from,
|
|
41
|
+
to: `${packagePath}/${from.replace("typescript/", "scripts/")}`,
|
|
42
|
+
}));
|
|
43
|
+
}
|
|
44
|
+
/** Vike shares Vue's compiler runner, but owns its distinct Vike source tree. */
|
|
45
|
+
export function vueTypecheckRunnerSourceOperation(packagePath) {
|
|
46
|
+
return {
|
|
47
|
+
kind: "copyFile",
|
|
48
|
+
source: templateSources.vue,
|
|
49
|
+
from: "typescript/run-vue-tsc.ts",
|
|
50
|
+
to: `${packagePath}/scripts/run-vue-tsc.ts`,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export function vueApplicationChecks(packagePath) {
|
|
54
|
+
const owner = { kind: "package-boundary", path: packagePath };
|
|
55
|
+
return [
|
|
56
|
+
{ kind: "typescript-typecheck", owner },
|
|
57
|
+
{ kind: "oxc-lint", owner },
|
|
58
|
+
{ kind: "oxc-format-check", owner },
|
|
59
|
+
{ kind: "build", owner },
|
|
60
|
+
{ kind: "unit-test", owner },
|
|
61
|
+
{ kind: "e2e-test", owner },
|
|
62
|
+
];
|
|
63
|
+
}
|
|
64
|
+
export function vueApplicationFixes(packagePath) {
|
|
65
|
+
const owner = { kind: "package-boundary", path: packagePath };
|
|
66
|
+
return [
|
|
67
|
+
{ kind: "oxc-format-write", owner },
|
|
68
|
+
{ kind: "oxc-lint-fix", owner },
|
|
69
|
+
];
|
|
70
|
+
}
|
|
71
|
+
export function vueApplicationEnvironmentNeeds(packagePath) {
|
|
72
|
+
return [
|
|
73
|
+
playwrightBrowserAssetsEnvironmentNeed({
|
|
74
|
+
browser: "chromium",
|
|
75
|
+
owner: { kind: "package-boundary", path: packagePath },
|
|
76
|
+
}),
|
|
77
|
+
];
|
|
78
|
+
}
|
|
79
|
+
export function vueApplicationManifest(options) {
|
|
80
|
+
return {
|
|
81
|
+
name: options.definition.name,
|
|
82
|
+
version: "0.0.0",
|
|
83
|
+
private: true,
|
|
84
|
+
type: "module",
|
|
85
|
+
...vueApplicationExposure,
|
|
86
|
+
scripts: options.scripts,
|
|
87
|
+
dependencies: { pinia: "catalog:", vue: "catalog:" },
|
|
88
|
+
devDependencies: {
|
|
89
|
+
"@playwright/test": "catalog:",
|
|
90
|
+
"@tailwindcss/vite": "catalog:",
|
|
91
|
+
"@types/node": "catalog:",
|
|
92
|
+
"@types/web-bluetooth": "catalog:",
|
|
93
|
+
"@vitejs/plugin-vue": "catalog:",
|
|
94
|
+
"@vue/tsconfig": "catalog:",
|
|
95
|
+
oxfmt: "catalog:",
|
|
96
|
+
oxlint: "catalog:",
|
|
97
|
+
"oxlint-tsgolint": "catalog:",
|
|
98
|
+
tailwindcss: "catalog:",
|
|
99
|
+
typescript: "catalog:",
|
|
100
|
+
vite: "catalog:",
|
|
101
|
+
vitest: "catalog:",
|
|
102
|
+
"vue-tsc": "catalog:",
|
|
103
|
+
},
|
|
104
|
+
engines: { node: options.context.toolchain.nodeLtsMajor },
|
|
105
|
+
};
|
|
106
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type TemplateSourceHandle } from "@ykdz/template-core/renderer";
|
|
2
|
+
/** The sole owner of Built-in Presets Template Source references. */
|
|
3
|
+
export declare const templateSources: {
|
|
4
|
+
readonly foundation: TemplateSourceHandle;
|
|
5
|
+
readonly sharedDevcontainer: TemplateSourceHandle;
|
|
6
|
+
readonly sharedOxc: TemplateSourceHandle;
|
|
7
|
+
readonly editorCustomization: TemplateSourceHandle;
|
|
8
|
+
readonly vue: TemplateSourceHandle;
|
|
9
|
+
readonly tsLib: TemplateSourceHandle;
|
|
10
|
+
readonly rustBin: TemplateSourceHandle;
|
|
11
|
+
readonly vueApp: TemplateSourceHandle;
|
|
12
|
+
readonly vueHonoApp: TemplateSourceHandle;
|
|
13
|
+
readonly vikeApp: TemplateSourceHandle;
|
|
14
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
3
|
+
import { createTemplateSourceHandle, } from "@ykdz/template-core/renderer";
|
|
4
|
+
function templateRoot(...segments) {
|
|
5
|
+
const sourceDirectory = path.dirname(fileURLToPath(import.meta.url));
|
|
6
|
+
const packageRootSegments = path.basename(path.dirname(sourceDirectory)) === "dist"
|
|
7
|
+
? ["..", ".."]
|
|
8
|
+
: [".."];
|
|
9
|
+
return path.join(sourceDirectory, ...packageRootSegments, "templates", ...segments);
|
|
10
|
+
}
|
|
11
|
+
function source(...segments) {
|
|
12
|
+
return createTemplateSourceHandle(templateRoot(...segments));
|
|
13
|
+
}
|
|
14
|
+
/** The sole owner of Built-in Presets Template Source references. */
|
|
15
|
+
export const templateSources = {
|
|
16
|
+
foundation: source("foundation"),
|
|
17
|
+
sharedDevcontainer: source("shared", "devcontainer"),
|
|
18
|
+
sharedOxc: source("shared", "oxc"),
|
|
19
|
+
editorCustomization: source("shared", "editor-customization"),
|
|
20
|
+
vue: source("shared", "vue"),
|
|
21
|
+
tsLib: source("ts-lib"),
|
|
22
|
+
rustBin: source("rust-bin"),
|
|
23
|
+
vueApp: source("vue-app"),
|
|
24
|
+
vueHonoApp: source("vue-hono-app"),
|
|
25
|
+
vikeApp: source("vike-app"),
|
|
26
|
+
};
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { fileURLToPath } from "node:url";
|
|
2
|
+
import { templateSources } from "../template-sources.js";
|
|
3
|
+
function packageScripts() {
|
|
4
|
+
return {
|
|
5
|
+
"format:check:run": "oxfmt --list-different --config ../../oxfmt.config.ts .",
|
|
6
|
+
"format:write:run": "oxfmt --write --config ../../oxfmt.config.ts .",
|
|
7
|
+
"lint:run": "oxlint --quiet --format=unix --config ../../oxlint.config.ts --ignore-pattern node_modules .",
|
|
8
|
+
"lint:fix:run": "oxlint --format=unix --config ../../oxlint.config.ts . --fix",
|
|
9
|
+
"typecheck:run": "tsc -p tsconfig.json --noEmit --pretty false",
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function libraryContribution(options) {
|
|
13
|
+
const definition = {
|
|
14
|
+
name: `@${options.context.scope}/${options.packageLeafName}`,
|
|
15
|
+
path: options.packagePath,
|
|
16
|
+
role: "shared-library",
|
|
17
|
+
};
|
|
18
|
+
const exposure = {
|
|
19
|
+
exports: { ".": { default: "./src/index.ts", types: "./src/index.ts" } },
|
|
20
|
+
imports: { "#/*": { default: "./src/*.ts", types: "./src/*.ts" } },
|
|
21
|
+
};
|
|
22
|
+
const operations = [
|
|
23
|
+
{ kind: "writeJson", to: `${definition.path}/package.json`, value: {} },
|
|
24
|
+
{
|
|
25
|
+
kind: "copyFile",
|
|
26
|
+
source: templateSources.tsLib,
|
|
27
|
+
from: "tsconfig.json",
|
|
28
|
+
to: `${definition.path}/tsconfig.json`,
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
kind: "copyFile",
|
|
32
|
+
source: templateSources.tsLib,
|
|
33
|
+
from: "src/index.ts",
|
|
34
|
+
to: `${definition.path}/src/index.ts`,
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
kind: "copyFile",
|
|
38
|
+
source: templateSources.tsLib,
|
|
39
|
+
from: "src/name-schema.ts",
|
|
40
|
+
to: `${definition.path}/src/name-schema.ts`,
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
kind: "copyFile",
|
|
44
|
+
source: templateSources.tsLib,
|
|
45
|
+
from: "turbo.json",
|
|
46
|
+
to: `${definition.path}/turbo.json`,
|
|
47
|
+
},
|
|
48
|
+
];
|
|
49
|
+
return {
|
|
50
|
+
definition,
|
|
51
|
+
exposure,
|
|
52
|
+
manifest: {
|
|
53
|
+
name: definition.name,
|
|
54
|
+
version: "0.0.0",
|
|
55
|
+
private: true,
|
|
56
|
+
type: "module",
|
|
57
|
+
...exposure,
|
|
58
|
+
dependencies: { valibot: "catalog:" },
|
|
59
|
+
devDependencies: {
|
|
60
|
+
"@types/node": "catalog:",
|
|
61
|
+
oxfmt: "catalog:",
|
|
62
|
+
oxlint: "catalog:",
|
|
63
|
+
"oxlint-tsgolint": "catalog:",
|
|
64
|
+
"typescript-7": "catalog:",
|
|
65
|
+
},
|
|
66
|
+
engines: { node: options.context.toolchain.nodeLtsMajor },
|
|
67
|
+
scripts: packageScripts(),
|
|
68
|
+
},
|
|
69
|
+
operations,
|
|
70
|
+
checks: [
|
|
71
|
+
{
|
|
72
|
+
kind: "typescript-typecheck",
|
|
73
|
+
owner: { kind: "package-boundary", path: definition.path },
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
kind: "oxc-lint",
|
|
77
|
+
owner: { kind: "package-boundary", path: definition.path },
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
kind: "oxc-format-check",
|
|
81
|
+
owner: { kind: "package-boundary", path: definition.path },
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
fixes: [
|
|
85
|
+
{
|
|
86
|
+
kind: "oxc-format-write",
|
|
87
|
+
owner: { kind: "package-boundary", path: definition.path },
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
kind: "oxc-lint-fix",
|
|
91
|
+
owner: { kind: "package-boundary", path: definition.path },
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
environmentNeeds: [],
|
|
95
|
+
foundation: {
|
|
96
|
+
toolchains: {},
|
|
97
|
+
editorCapabilities: ["oxc-format-lint"],
|
|
98
|
+
dependencyMaintenance: {
|
|
99
|
+
ecosystems: ["npm", "github-actions", "docker"],
|
|
100
|
+
interval: "weekly",
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
export const tsLibDefinition = {
|
|
106
|
+
metadata: {
|
|
107
|
+
name: "ts-lib",
|
|
108
|
+
title: "TypeScript library",
|
|
109
|
+
description: "Strict TypeScript package with pnpm catalog tooling.",
|
|
110
|
+
},
|
|
111
|
+
source: templateSources.tsLib,
|
|
112
|
+
plannerSourceFile: fileURLToPath(import.meta.url),
|
|
113
|
+
blueprint(context) {
|
|
114
|
+
return {
|
|
115
|
+
schemaVersion: 2,
|
|
116
|
+
packages: [
|
|
117
|
+
libraryContribution({
|
|
118
|
+
context,
|
|
119
|
+
packageLeafName: context.projectName,
|
|
120
|
+
packagePath: `packages/${context.projectName}`,
|
|
121
|
+
}).definition,
|
|
122
|
+
],
|
|
123
|
+
};
|
|
124
|
+
},
|
|
125
|
+
planInitialization(context) {
|
|
126
|
+
return libraryContribution({
|
|
127
|
+
context,
|
|
128
|
+
packageLeafName: context.projectName,
|
|
129
|
+
packagePath: `packages/${context.projectName}`,
|
|
130
|
+
});
|
|
131
|
+
},
|
|
132
|
+
defaultPackagePath({ packageLeafName }) {
|
|
133
|
+
return `packages/${packageLeafName}`;
|
|
134
|
+
},
|
|
135
|
+
planPackageAddition({ context, packageLeafName, packagePath }) {
|
|
136
|
+
return libraryContribution({ context, packageLeafName, packagePath });
|
|
137
|
+
},
|
|
138
|
+
};
|