zudojs-cli 2.1.3 → 2.2.0
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/README.md +6 -3
- package/dist/src/adapters/databases/databaseAdapter.resolver.d.ts +0 -1
- package/dist/src/adapters/databases/databaseAdapter.resolver.js +0 -1
- package/dist/src/adapters/databases/index.d.ts +0 -1
- package/dist/src/adapters/databases/index.js +0 -1
- package/dist/src/adapters/databases/mysql.adapter.d.ts +0 -1
- package/dist/src/adapters/databases/mysql.adapter.js +0 -1
- package/dist/src/adapters/databases/postgres.adapter.d.ts +0 -1
- package/dist/src/adapters/databases/postgres.adapter.js +0 -1
- package/dist/src/adapters/databases/sqlite.adapter.d.ts +0 -1
- package/dist/src/adapters/databases/sqlite.adapter.js +0 -1
- package/dist/src/adapters/frontend/angular.adapter.d.ts +0 -1
- package/dist/src/adapters/frontend/angular.adapter.js +0 -1
- package/dist/src/adapters/frontend/astro.adapter.d.ts +0 -1
- package/dist/src/adapters/frontend/astro.adapter.js +0 -1
- package/dist/src/adapters/frontend/fallback/fallback.helper.d.ts +0 -1
- package/dist/src/adapters/frontend/fallback/fallback.helper.js +0 -1
- package/dist/src/adapters/frontend/fallback/framework/angular/angular.fallback.d.ts +0 -1
- package/dist/src/adapters/frontend/fallback/framework/angular/angular.fallback.js +0 -1
- package/dist/src/adapters/frontend/fallback/framework/angular/angularWorkspace.fallback.d.ts +0 -1
- package/dist/src/adapters/frontend/fallback/framework/angular/angularWorkspace.fallback.js +0 -1
- package/dist/src/adapters/frontend/fallback/framework/angular/index.d.ts +0 -1
- package/dist/src/adapters/frontend/fallback/framework/angular/index.js +0 -1
- package/dist/src/adapters/frontend/fallback/framework/astro.fallback.d.ts +0 -1
- package/dist/src/adapters/frontend/fallback/framework/astro.fallback.js +0 -1
- package/dist/src/adapters/frontend/fallback/framework/index.d.ts +0 -1
- package/dist/src/adapters/frontend/fallback/framework/index.js +0 -1
- package/dist/src/adapters/frontend/fallback/framework/next.fallback.d.ts +0 -1
- package/dist/src/adapters/frontend/fallback/framework/next.fallback.js +0 -1
- package/dist/src/adapters/frontend/fallback/framework/nuxt.fallback.d.ts +0 -1
- package/dist/src/adapters/frontend/fallback/framework/nuxt.fallback.js +0 -1
- package/dist/src/adapters/frontend/fallback/framework/sveltekit.fallback.d.ts +0 -1
- package/dist/src/adapters/frontend/fallback/framework/sveltekit.fallback.js +0 -1
- package/dist/src/adapters/frontend/fallback/index.d.ts +0 -1
- package/dist/src/adapters/frontend/fallback/index.js +0 -1
- package/dist/src/adapters/frontend/fallback/vite/index.d.ts +0 -1
- package/dist/src/adapters/frontend/fallback/vite/index.js +0 -1
- package/dist/src/adapters/frontend/fallback/vite/react.fallback.d.ts +0 -1
- package/dist/src/adapters/frontend/fallback/vite/react.fallback.js +0 -1
- package/dist/src/adapters/frontend/fallback/vite/svelte.fallback.d.ts +0 -1
- package/dist/src/adapters/frontend/fallback/vite/svelte.fallback.js +0 -1
- package/dist/src/adapters/frontend/fallback/vite/vanilla.fallback.d.ts +0 -1
- package/dist/src/adapters/frontend/fallback/vite/vanilla.fallback.js +0 -1
- package/dist/src/adapters/frontend/fallback/vite/vue.fallback.d.ts +0 -1
- package/dist/src/adapters/frontend/fallback/vite/vue.fallback.js +0 -1
- package/dist/src/adapters/frontend/flutter.adapter.d.ts +0 -1
- package/dist/src/adapters/frontend/flutter.adapter.js +0 -1
- package/dist/src/adapters/frontend/frontendAdapter.type.d.ts +0 -1
- package/dist/src/adapters/frontend/frontendAdapter.type.js +0 -1
- package/dist/src/adapters/frontend/index.d.ts +0 -1
- package/dist/src/adapters/frontend/index.js +0 -1
- package/dist/src/adapters/frontend/next.adapter.d.ts +0 -1
- package/dist/src/adapters/frontend/next.adapter.js +0 -1
- package/dist/src/adapters/frontend/nuxt.adapter.d.ts +0 -1
- package/dist/src/adapters/frontend/nuxt.adapter.js +0 -1
- package/dist/src/adapters/frontend/react-native.adapter.d.ts +0 -1
- package/dist/src/adapters/frontend/react-native.adapter.js +0 -1
- package/dist/src/adapters/frontend/react.adapter.d.ts +0 -1
- package/dist/src/adapters/frontend/react.adapter.js +0 -1
- package/dist/src/adapters/frontend/svelte.adapter.d.ts +0 -1
- package/dist/src/adapters/frontend/svelte.adapter.js +0 -1
- package/dist/src/adapters/frontend/sveltekit.adapter.d.ts +0 -1
- package/dist/src/adapters/frontend/sveltekit.adapter.js +0 -1
- package/dist/src/adapters/frontend/vanilla.adapter.d.ts +0 -1
- package/dist/src/adapters/frontend/vanilla.adapter.js +0 -1
- package/dist/src/adapters/frontend/vue.adapter.d.ts +0 -1
- package/dist/src/adapters/frontend/vue.adapter.js +0 -1
- package/dist/src/adapters/package-managers/bun.adapter.d.ts +0 -1
- package/dist/src/adapters/package-managers/bun.adapter.js +0 -1
- package/dist/src/adapters/package-managers/index.d.ts +0 -1
- package/dist/src/adapters/package-managers/index.js +0 -1
- package/dist/src/adapters/package-managers/npm.adapter.d.ts +0 -1
- package/dist/src/adapters/package-managers/npm.adapter.js +0 -1
- package/dist/src/adapters/package-managers/packageManager.type.d.ts +0 -1
- package/dist/src/adapters/package-managers/packageManager.type.js +0 -1
- package/dist/src/adapters/package-managers/pnpm.adapter.d.ts +0 -1
- package/dist/src/adapters/package-managers/pnpm.adapter.js +0 -1
- package/dist/src/adapters/package-managers/yarn.adapter.d.ts +0 -1
- package/dist/src/adapters/package-managers/yarn.adapter.js +0 -1
- package/dist/src/bin/bin.menu.d.ts +0 -1
- package/dist/src/bin/bin.menu.js +0 -1
- package/dist/src/bin/bin.runner.d.ts +0 -1
- package/dist/src/bin/bin.runner.js +0 -1
- package/dist/src/bin/index.d.ts +0 -1
- package/dist/src/bin/index.js +0 -1
- package/dist/src/bin/zudojs.d.ts +0 -1
- package/dist/src/bin/zudojs.js +1 -2
- package/dist/src/cliApplication/cliApplication.builtins.d.ts +0 -1
- package/dist/src/cliApplication/cliApplication.builtins.js +0 -1
- package/dist/src/cliApplication/cliApplication.core.d.ts +0 -1
- package/dist/src/cliApplication/cliApplication.core.js +0 -1
- package/dist/src/cliApplication/cliApplication.help.d.ts +0 -1
- package/dist/src/cliApplication/cliApplication.help.js +0 -1
- package/dist/src/cliApplication/cliApplication.logger.d.ts +0 -1
- package/dist/src/cliApplication/cliApplication.logger.js +0 -1
- package/dist/src/cliApplication/cliApplication.writer.d.ts +0 -1
- package/dist/src/cliApplication/cliApplication.writer.js +0 -1
- package/dist/src/cliApplication/index.d.ts +0 -1
- package/dist/src/cliApplication/index.js +0 -1
- package/dist/src/cliApplication/invocation/index.d.ts +0 -1
- package/dist/src/cliApplication/invocation/index.js +0 -1
- package/dist/src/cliApplication/invocation/invocation.hint.d.ts +0 -7
- package/dist/src/cliApplication/invocation/invocation.hint.js +14 -1
- package/dist/src/cliApplication/invocation/invocation.locate.d.ts +0 -1
- package/dist/src/cliApplication/invocation/invocation.locate.js +0 -1
- package/dist/src/cliApplication/invocation/invocation.name.d.ts +0 -1
- package/dist/src/cliApplication/invocation/invocation.name.js +0 -1
- package/dist/src/cliApplication/invocation/invocation.sanitize.d.ts +0 -1
- package/dist/src/cliApplication/invocation/invocation.sanitize.js +0 -1
- package/dist/src/cliCommand/cliCommand.builder.d.ts +0 -1
- package/dist/src/cliCommand/cliCommand.builder.js +0 -1
- package/dist/src/cliCommand/cliCommand.factory.d.ts +0 -1
- package/dist/src/cliCommand/cliCommand.factory.js +0 -1
- package/dist/src/cliCommand/cliCommand.registry.d.ts +0 -1
- package/dist/src/cliCommand/cliCommand.registry.js +0 -1
- package/dist/src/cliCommand/cliCommand.validator.d.ts +0 -1
- package/dist/src/cliCommand/cliCommand.validator.js +0 -1
- package/dist/src/cliCommand/index.d.ts +0 -1
- package/dist/src/cliCommand/index.js +0 -1
- package/dist/src/cliConstant/cliConstant.value.d.ts +0 -1
- package/dist/src/cliConstant/cliConstant.value.js +0 -1
- package/dist/src/cliConstant/cliVersion.d.ts +0 -1
- package/dist/src/cliConstant/cliVersion.js +0 -1
- package/dist/src/cliConstant/index.d.ts +0 -1
- package/dist/src/cliConstant/index.js +0 -1
- package/dist/src/cliError/cliError.argument.d.ts +0 -1
- package/dist/src/cliError/cliError.argument.js +0 -1
- package/dist/src/cliError/cliError.base.d.ts +0 -1
- package/dist/src/cliError/cliError.base.js +0 -1
- package/dist/src/cliError/cliError.command.d.ts +0 -1
- package/dist/src/cliError/cliError.command.js +0 -1
- package/dist/src/cliError/cliError.execution.d.ts +0 -1
- package/dist/src/cliError/cliError.execution.js +0 -1
- package/dist/src/cliError/cliError.option.d.ts +0 -1
- package/dist/src/cliError/cliError.option.js +0 -1
- package/dist/src/cliError/index.d.ts +0 -1
- package/dist/src/cliError/index.js +0 -1
- package/dist/src/cliParser/cliParser.core.d.ts +0 -1
- package/dist/src/cliParser/cliParser.core.js +0 -1
- package/dist/src/cliParser/cliParser.helper.d.ts +0 -1
- package/dist/src/cliParser/cliParser.helper.js +0 -1
- package/dist/src/cliParser/cliParser.longOption.d.ts +0 -1
- package/dist/src/cliParser/cliParser.longOption.js +0 -1
- package/dist/src/cliParser/cliParser.shortOption.d.ts +0 -1
- package/dist/src/cliParser/cliParser.shortOption.js +0 -1
- package/dist/src/cliParser/index.d.ts +0 -1
- package/dist/src/cliParser/index.js +0 -1
- package/dist/src/cliType/cliType.type.d.ts +0 -1
- package/dist/src/cliType/cliType.type.js +0 -1
- package/dist/src/cliType/index.d.ts +0 -1
- package/dist/src/cliType/index.js +0 -1
- package/dist/src/cliVersion/cliVersion.core.d.ts +0 -1
- package/dist/src/cliVersion/cliVersion.core.js +0 -1
- package/dist/src/cliVersion/cliVersion.update.d.ts +0 -1
- package/dist/src/cliVersion/cliVersion.update.js +0 -1
- package/dist/src/cliVersion/index.d.ts +0 -1
- package/dist/src/cliVersion/index.js +0 -1
- package/dist/src/commands/add.command.d.ts +0 -1
- package/dist/src/commands/add.command.js +1 -2
- package/dist/src/commands/build.command.d.ts +0 -1
- package/dist/src/commands/build.command.js +0 -1
- package/dist/src/commands/commandError.helper.d.ts +0 -1
- package/dist/src/commands/commandError.helper.js +0 -1
- package/dist/src/commands/create.command.d.ts +0 -1
- package/dist/src/commands/create.command.js +0 -1
- package/dist/src/commands/dev/dev.plan.d.ts +39 -0
- package/dist/src/commands/dev/dev.plan.js +83 -0
- package/dist/src/commands/dev/index.d.ts +4 -0
- package/dist/src/commands/dev/index.js +4 -0
- package/dist/src/commands/dev.command.d.ts +4 -30
- package/dist/src/commands/dev.command.js +10 -80
- package/dist/src/commands/doctor.command.d.ts +0 -1
- package/dist/src/commands/doctor.command.js +0 -1
- package/dist/src/commands/generate.command.d.ts +0 -1
- package/dist/src/commands/generate.command.js +19 -8
- package/dist/src/commands/index.d.ts +0 -1
- package/dist/src/commands/index.js +0 -1
- package/dist/src/commands/info.command.d.ts +0 -1
- package/dist/src/commands/info.command.js +0 -1
- package/dist/src/constants/index.d.ts +0 -1
- package/dist/src/constants/index.js +0 -1
- package/dist/src/constants/zudojsVersions.generated.d.ts +0 -1
- package/dist/src/constants/zudojsVersions.generated.js +38 -39
- package/dist/src/constants/zudojsVersions.helper.d.ts +0 -1
- package/dist/src/constants/zudojsVersions.helper.js +0 -1
- package/dist/src/errors/index.d.ts +0 -1
- package/dist/src/errors/index.js +0 -1
- package/dist/src/generators/backend/backend.generator.d.ts +0 -1
- package/dist/src/generators/backend/backend.generator.js +0 -1
- package/dist/src/generators/backend/index.d.ts +0 -1
- package/dist/src/generators/backend/index.js +0 -1
- package/dist/src/generators/command/command.generator.d.ts +0 -1
- package/dist/src/generators/command/command.generator.js +0 -1
- package/dist/src/generators/command/command.template.d.ts +0 -1
- package/dist/src/generators/command/command.template.js +0 -1
- package/dist/src/generators/command/index.d.ts +0 -1
- package/dist/src/generators/command/index.js +0 -1
- package/dist/src/generators/event/event.generator.d.ts +0 -1
- package/dist/src/generators/event/event.generator.js +0 -1
- package/dist/src/generators/event/index.d.ts +0 -1
- package/dist/src/generators/event/index.js +0 -1
- package/dist/src/generators/frontend/frontendGenerator.core.d.ts +0 -1
- package/dist/src/generators/frontend/frontendGenerator.core.js +0 -1
- package/dist/src/generators/frontend/frontendPipeline.d.ts +0 -1
- package/dist/src/generators/frontend/frontendPipeline.js +0 -1
- package/dist/src/generators/frontend/index.d.ts +0 -1
- package/dist/src/generators/frontend/index.js +0 -1
- package/dist/src/generators/fullstack/fullstackBackend.layout.d.ts +0 -1
- package/dist/src/generators/fullstack/fullstackBackend.layout.js +0 -1
- package/dist/src/generators/fullstack/fullstackComposer.core.d.ts +0 -1
- package/dist/src/generators/fullstack/fullstackComposer.core.js +0 -1
- package/dist/src/generators/fullstack/index.d.ts +0 -1
- package/dist/src/generators/fullstack/index.js +0 -1
- package/dist/src/generators/index.d.ts +0 -1
- package/dist/src/generators/index.js +0 -1
- package/dist/src/generators/infrastructure/index.d.ts +0 -1
- package/dist/src/generators/infrastructure/index.js +0 -1
- package/dist/src/generators/infrastructure/infrastructure.generator.d.ts +0 -1
- package/dist/src/generators/infrastructure/infrastructure.generator.js +0 -1
- package/dist/src/generators/integration/index.d.ts +0 -1
- package/dist/src/generators/integration/index.js +0 -1
- package/dist/src/generators/integration/integrationGenerator.core.d.ts +0 -1
- package/dist/src/generators/integration/integrationGenerator.core.js +0 -1
- package/dist/src/generators/job/index.d.ts +0 -1
- package/dist/src/generators/job/index.js +0 -1
- package/dist/src/generators/job/job.generator.d.ts +0 -1
- package/dist/src/generators/job/job.generator.js +0 -1
- package/dist/src/generators/middleware/index.d.ts +0 -1
- package/dist/src/generators/middleware/index.js +0 -1
- package/dist/src/generators/middleware/middleware.generator.d.ts +0 -1
- package/dist/src/generators/middleware/middleware.generator.js +0 -1
- package/dist/src/generators/middleware/middleware.template.d.ts +0 -1
- package/dist/src/generators/middleware/middleware.template.js +0 -1
- package/dist/src/generators/model/index.d.ts +0 -1
- package/dist/src/generators/model/index.js +0 -1
- package/dist/src/generators/model/model.generator.d.ts +0 -1
- package/dist/src/generators/model/model.generator.js +0 -1
- package/dist/src/generators/module/index.d.ts +0 -1
- package/dist/src/generators/module/index.js +0 -1
- package/dist/src/generators/module/module.generator.d.ts +0 -1
- package/dist/src/generators/module/module.generator.js +27 -11
- package/dist/src/generators/module/module.registration.d.ts +4 -3
- package/dist/src/generators/module/module.registration.js +5 -4
- package/dist/src/generators/project/project.generator.d.ts +0 -1
- package/dist/src/generators/project/project.generator.js +0 -1
- package/dist/src/generators/query/index.d.ts +0 -1
- package/dist/src/generators/query/index.js +0 -1
- package/dist/src/generators/query/query.generator.d.ts +0 -1
- package/dist/src/generators/query/query.generator.js +0 -1
- package/dist/src/generators/query/query.template.d.ts +0 -1
- package/dist/src/generators/query/query.template.js +0 -1
- package/dist/src/generators/resource/index.d.ts +0 -1
- package/dist/src/generators/resource/index.js +0 -1
- package/dist/src/generators/resource/resource.checks.d.ts +31 -0
- package/dist/src/generators/resource/resource.checks.js +52 -0
- package/dist/src/generators/resource/resource.generator.d.ts +5 -3
- package/dist/src/generators/resource/resource.generator.js +23 -36
- package/dist/src/generators/resource/resource.layout.d.ts +0 -1
- package/dist/src/generators/resource/resource.layout.js +0 -1
- package/dist/src/generators/resource/resource.plan.d.ts +0 -1
- package/dist/src/generators/resource/resource.plan.js +0 -1
- package/dist/src/generators/resource/resource.run.d.ts +12 -2
- package/dist/src/generators/resource/resource.run.js +33 -9
- package/dist/src/generators/validator/index.d.ts +0 -1
- package/dist/src/generators/validator/index.js +0 -1
- package/dist/src/generators/validator/validator.generator.d.ts +6 -2
- package/dist/src/generators/validator/validator.generator.js +31 -10
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.js +0 -1
- package/dist/src/installers/dependency.installer.d.ts +0 -1
- package/dist/src/installers/dependency.installer.js +0 -1
- package/dist/src/installers/index.d.ts +0 -1
- package/dist/src/installers/index.js +0 -1
- package/dist/src/manifest/index.d.ts +0 -1
- package/dist/src/manifest/index.js +0 -1
- package/dist/src/manifest/manifestFile.helper.d.ts +0 -1
- package/dist/src/manifest/manifestFile.helper.js +0 -1
- package/dist/src/manifest/manifestManager.core.d.ts +0 -1
- package/dist/src/manifest/manifestManager.core.js +0 -1
- package/dist/src/prompts/backend/api-style.prompt.d.ts +0 -1
- package/dist/src/prompts/backend/api-style.prompt.js +0 -1
- package/dist/src/prompts/backend/backend-architecture.prompt.d.ts +0 -1
- package/dist/src/prompts/backend/backend-architecture.prompt.js +0 -1
- package/dist/src/prompts/backend/database.prompt.d.ts +0 -1
- package/dist/src/prompts/backend/database.prompt.js +0 -1
- package/dist/src/prompts/backend/index.d.ts +0 -1
- package/dist/src/prompts/backend/index.js +0 -1
- package/dist/src/prompts/backend/services.prompt.d.ts +0 -1
- package/dist/src/prompts/backend/services.prompt.js +0 -1
- package/dist/src/prompts/cancel.prompt.d.ts +0 -1
- package/dist/src/prompts/cancel.prompt.js +0 -1
- package/dist/src/prompts/capabilities/capabilities.prompt.d.ts +0 -1
- package/dist/src/prompts/capabilities/capabilities.prompt.js +0 -1
- package/dist/src/prompts/capabilities/index.d.ts +0 -1
- package/dist/src/prompts/capabilities/index.js +0 -1
- package/dist/src/prompts/frontend/framework.prompt.d.ts +0 -1
- package/dist/src/prompts/frontend/framework.prompt.js +0 -1
- package/dist/src/prompts/frontend/frontend-architecture.prompt.d.ts +0 -1
- package/dist/src/prompts/frontend/frontend-architecture.prompt.js +0 -1
- package/dist/src/prompts/frontend/index.d.ts +0 -1
- package/dist/src/prompts/frontend/index.js +0 -1
- package/dist/src/prompts/index.d.ts +0 -1
- package/dist/src/prompts/index.js +0 -1
- package/dist/src/prompts/menu/index.d.ts +0 -1
- package/dist/src/prompts/menu/index.js +0 -1
- package/dist/src/prompts/menu/menu.adapter.d.ts +0 -1
- package/dist/src/prompts/menu/menu.adapter.js +0 -1
- package/dist/src/prompts/menu/menu.constant.d.ts +0 -1
- package/dist/src/prompts/menu/menu.constant.js +0 -1
- package/dist/src/prompts/menu/menu.flow.d.ts +0 -1
- package/dist/src/prompts/menu/menu.flow.js +0 -1
- package/dist/src/prompts/menu/menu.select.d.ts +0 -1
- package/dist/src/prompts/menu/menu.select.js +0 -1
- package/dist/src/prompts/menu/menu.type.d.ts +0 -1
- package/dist/src/prompts/menu/menu.type.js +0 -1
- package/dist/src/prompts/project/confirmation.prompt.d.ts +0 -1
- package/dist/src/prompts/project/confirmation.prompt.js +0 -1
- package/dist/src/prompts/project/index.d.ts +0 -1
- package/dist/src/prompts/project/index.js +0 -1
- package/dist/src/prompts/project/project-name.prompt.d.ts +0 -1
- package/dist/src/prompts/project/project-name.prompt.js +0 -1
- package/dist/src/prompts/project/project-type.prompt.d.ts +0 -1
- package/dist/src/prompts/project/project-type.prompt.js +0 -1
- package/dist/src/prompts/workspace/index.d.ts +0 -1
- package/dist/src/prompts/workspace/index.js +0 -1
- package/dist/src/prompts/workspace/package-manager.prompt.d.ts +0 -1
- package/dist/src/prompts/workspace/package-manager.prompt.js +0 -1
- package/dist/src/recipes/apply/index.d.ts +0 -1
- package/dist/src/recipes/apply/index.js +0 -1
- package/dist/src/recipes/apply/recipeApply.app.d.ts +0 -1
- package/dist/src/recipes/apply/recipeApply.app.js +0 -1
- package/dist/src/recipes/apply/recipeApply.context.d.ts +0 -1
- package/dist/src/recipes/apply/recipeApply.context.js +0 -1
- package/dist/src/recipes/apply/recipeApply.files.d.ts +0 -1
- package/dist/src/recipes/apply/recipeApply.files.js +0 -1
- package/dist/src/recipes/apply/recipeApply.project.d.ts +13 -3
- package/dist/src/recipes/apply/recipeApply.project.js +56 -3
- package/dist/src/recipes/apply/recipeApply.report.d.ts +0 -1
- package/dist/src/recipes/apply/recipeApply.report.js +0 -1
- package/dist/src/recipes/catalog/database/database.files.d.ts +0 -1
- package/dist/src/recipes/catalog/database/database.files.js +0 -1
- package/dist/src/recipes/catalog/database/database.recipe.d.ts +0 -1
- package/dist/src/recipes/catalog/database/database.recipe.js +11 -2
- package/dist/src/recipes/catalog/database/index.d.ts +0 -1
- package/dist/src/recipes/catalog/database/index.js +0 -1
- package/dist/src/recipes/catalog/email.recipe.d.ts +0 -1
- package/dist/src/recipes/catalog/email.recipe.js +0 -1
- package/dist/src/recipes/catalog/index.d.ts +0 -1
- package/dist/src/recipes/catalog/index.js +0 -1
- package/dist/src/recipes/catalog/openapi.recipe.d.ts +0 -1
- package/dist/src/recipes/catalog/openapi.recipe.js +0 -1
- package/dist/src/recipes/catalog/platform/cache.recipe.d.ts +0 -1
- package/dist/src/recipes/catalog/platform/cache.recipe.js +0 -1
- package/dist/src/recipes/catalog/platform/index.d.ts +0 -1
- package/dist/src/recipes/catalog/platform/index.js +0 -1
- package/dist/src/recipes/catalog/platform/messaging.recipe.d.ts +0 -1
- package/dist/src/recipes/catalog/platform/messaging.recipe.js +0 -1
- package/dist/src/recipes/catalog/platform/observability.recipe.d.ts +0 -1
- package/dist/src/recipes/catalog/platform/observability.recipe.js +0 -1
- package/dist/src/recipes/catalog/platform/queue.recipe.d.ts +0 -1
- package/dist/src/recipes/catalog/platform/queue.recipe.js +0 -1
- package/dist/src/recipes/catalog/platform/scheduler.recipe.d.ts +0 -1
- package/dist/src/recipes/catalog/platform/scheduler.recipe.js +0 -1
- package/dist/src/recipes/catalog/redis.recipe.d.ts +0 -1
- package/dist/src/recipes/catalog/redis.recipe.js +0 -1
- package/dist/src/recipes/catalog/storage.recipe.d.ts +0 -1
- package/dist/src/recipes/catalog/storage.recipe.js +0 -1
- package/dist/src/recipes/catalog/websockets.recipe.d.ts +0 -1
- package/dist/src/recipes/catalog/websockets.recipe.js +0 -1
- package/dist/src/recipes/docker/docker.compose.d.ts +0 -1
- package/dist/src/recipes/docker/docker.compose.js +0 -1
- package/dist/src/recipes/docker/docker.recipe.d.ts +0 -1
- package/dist/src/recipes/docker/docker.recipe.js +0 -1
- package/dist/src/recipes/docker/docker.refresh.d.ts +0 -1
- package/dist/src/recipes/docker/docker.refresh.js +0 -1
- package/dist/src/recipes/docker/index.d.ts +0 -1
- package/dist/src/recipes/docker/index.js +0 -1
- package/dist/src/recipes/index.d.ts +0 -1
- package/dist/src/recipes/index.js +0 -1
- package/dist/src/recipes/recipe.registry.d.ts +0 -1
- package/dist/src/recipes/recipe.registry.js +0 -1
- package/dist/src/recipes/recipe.type.d.ts +6 -1
- package/dist/src/recipes/recipe.type.js +0 -1
- package/dist/src/registries/adapter/frontendAdapterRegistry.core.d.ts +0 -1
- package/dist/src/registries/adapter/frontendAdapterRegistry.core.js +0 -1
- package/dist/src/registries/adapter/packageManagerRegistry.core.d.ts +0 -1
- package/dist/src/registries/adapter/packageManagerRegistry.core.js +0 -1
- package/dist/src/registries/dependency/dependencyRegistry.core.d.ts +0 -1
- package/dist/src/registries/dependency/dependencyRegistry.core.js +0 -1
- package/dist/src/registries/dependency/index.d.ts +0 -1
- package/dist/src/registries/dependency/index.js +0 -1
- package/dist/src/registries/generator/generatorRegistry.core.d.ts +0 -1
- package/dist/src/registries/generator/generatorRegistry.core.js +0 -1
- package/dist/src/registries/generator/index.d.ts +0 -1
- package/dist/src/registries/generator/index.js +0 -1
- package/dist/src/registries/index.d.ts +0 -1
- package/dist/src/registries/index.js +0 -1
- package/dist/src/resolvers/architecture.resolver.d.ts +0 -1
- package/dist/src/resolvers/architecture.resolver.js +13 -3
- package/dist/src/resolvers/capability/capabilityResolver.core.d.ts +0 -1
- package/dist/src/resolvers/capability/capabilityResolver.core.js +0 -1
- package/dist/src/resolvers/capability/index.d.ts +0 -1
- package/dist/src/resolvers/capability/index.js +0 -1
- package/dist/src/resolvers/configuration/configurationResolver.core.d.ts +0 -1
- package/dist/src/resolvers/configuration/configurationResolver.core.js +0 -1
- package/dist/src/resolvers/configuration/index.d.ts +0 -1
- package/dist/src/resolvers/configuration/index.js +0 -1
- package/dist/src/resolvers/dependency/dependencyResolver.core.d.ts +0 -1
- package/dist/src/resolvers/dependency/dependencyResolver.core.js +0 -1
- package/dist/src/resolvers/dependency/dependencyVersions.constant.d.ts +0 -1
- package/dist/src/resolvers/dependency/dependencyVersions.constant.js +0 -1
- package/dist/src/resolvers/dependency/index.d.ts +0 -1
- package/dist/src/resolvers/dependency/index.js +0 -1
- package/dist/src/resolvers/index.d.ts +0 -1
- package/dist/src/resolvers/index.js +0 -1
- package/dist/src/resolvers/layout/index.d.ts +0 -1
- package/dist/src/resolvers/layout/index.js +0 -1
- package/dist/src/resolvers/layout/projectLayout.core.d.ts +0 -1
- package/dist/src/resolvers/layout/projectLayout.core.js +0 -1
- package/dist/src/resolvers/project.resolver.d.ts +0 -1
- package/dist/src/resolvers/project.resolver.js +0 -1
- package/dist/src/rollback/index.d.ts +0 -1
- package/dist/src/rollback/index.js +0 -1
- package/dist/src/rollback/rollbackManager.core.d.ts +0 -1
- package/dist/src/rollback/rollbackManager.core.js +0 -1
- package/dist/src/runners/package-manager/index.d.ts +0 -1
- package/dist/src/runners/package-manager/index.js +0 -1
- package/dist/src/runners/package-manager/packageManagerRunner.core.d.ts +0 -1
- package/dist/src/runners/package-manager/packageManagerRunner.core.js +0 -1
- package/dist/src/runners/process/index.d.ts +0 -1
- package/dist/src/runners/process/index.js +0 -1
- package/dist/src/runners/process/processRunner.core.d.ts +0 -1
- package/dist/src/runners/process/processRunner.core.js +0 -1
- package/dist/src/runners/task/index.d.ts +0 -1
- package/dist/src/runners/task/index.js +0 -1
- package/dist/src/runners/task/taskRunner.core.d.ts +0 -1
- package/dist/src/runners/task/taskRunner.core.js +0 -1
- package/dist/src/scaffolders/framework.scaffolder.d.ts +0 -1
- package/dist/src/scaffolders/framework.scaffolder.js +0 -1
- package/dist/src/scaffolders/index.d.ts +0 -1
- package/dist/src/scaffolders/index.js +0 -1
- package/dist/src/scaffolders/scaffolder.helper.d.ts +0 -1
- package/dist/src/scaffolders/scaffolder.helper.js +0 -1
- package/dist/src/templates/backendApp/backendApp.core.d.ts +0 -1
- package/dist/src/templates/backendApp/backendApp.core.js +0 -1
- package/dist/src/templates/backendApp/backendApp.modules.d.ts +0 -1
- package/dist/src/templates/backendApp/backendApp.modules.js +0 -1
- package/dist/src/templates/backendApp/backendApp.project.d.ts +19 -3
- package/dist/src/templates/backendApp/backendApp.project.js +41 -3
- package/dist/src/templates/backendApp/index.d.ts +0 -1
- package/dist/src/templates/backendApp/index.js +0 -1
- package/dist/src/templates/backendApp/parts/config.template.d.ts +0 -1
- package/dist/src/templates/backendApp/parts/config.template.js +13 -6
- package/dist/src/templates/backendApp/parts/httpUtils.template.d.ts +2 -2
- package/dist/src/templates/backendApp/parts/httpUtils.template.js +20 -6
- package/dist/src/templates/backendApp/parts/index.d.ts +0 -1
- package/dist/src/templates/backendApp/parts/index.js +0 -1
- package/dist/src/templates/backendApp/parts/integrations.template.d.ts +0 -1
- package/dist/src/templates/backendApp/parts/integrations.template.js +0 -1
- package/dist/src/templates/backendApp/parts/wiring.template.d.ts +3 -2
- package/dist/src/templates/backendApp/parts/wiring.template.js +13 -3
- package/dist/src/templates/microservice/index.d.ts +0 -1
- package/dist/src/templates/microservice/index.js +0 -1
- package/dist/src/templates/microservice/microservice.template.d.ts +0 -1
- package/dist/src/templates/microservice/microservice.template.js +6 -27
- package/dist/src/templates/modular-monolith/index.d.ts +0 -1
- package/dist/src/templates/modular-monolith/index.js +0 -1
- package/dist/src/templates/modular-monolith/modularMonolith.template.d.ts +0 -1
- package/dist/src/templates/modular-monolith/modularMonolith.template.js +3 -10
- package/dist/src/templates/monolith/index.d.ts +0 -1
- package/dist/src/templates/monolith/index.js +0 -1
- package/dist/src/templates/monolith/monolith.template.d.ts +0 -1
- package/dist/src/templates/monolith/monolith.template.js +3 -11
- package/dist/src/templates/resource/index.d.ts +0 -1
- package/dist/src/templates/resource/index.js +0 -1
- package/dist/src/templates/resource/layers/index.d.ts +4 -4
- package/dist/src/templates/resource/layers/index.js +4 -4
- package/dist/src/templates/resource/layers/resourceData.template.d.ts +8 -4
- package/dist/src/templates/resource/layers/resourceData.template.js +30 -72
- package/dist/src/templates/resource/layers/resourceHttp/index.d.ts +6 -0
- package/dist/src/templates/resource/layers/resourceHttp/index.js +6 -0
- package/dist/src/templates/resource/layers/resourceHttp/resourceController.template.d.ts +10 -0
- package/dist/src/templates/resource/layers/resourceHttp/resourceController.template.js +55 -0
- package/dist/src/templates/resource/layers/resourceHttp/resourceRoutes.template.d.ts +6 -0
- package/dist/src/templates/resource/layers/resourceHttp/resourceRoutes.template.js +77 -0
- package/dist/src/templates/resource/layers/resourceHttp/resourceTest.template.d.ts +11 -0
- package/dist/src/templates/resource/layers/resourceHttp/resourceTest.template.js +84 -0
- package/dist/src/templates/resource/layers/resourceMemory.template.d.ts +6 -0
- package/dist/src/templates/resource/layers/resourceMemory.template.js +87 -0
- package/dist/src/templates/resource/layers/resourcePrisma.template.d.ts +0 -1
- package/dist/src/templates/resource/layers/resourcePrisma.template.js +10 -9
- package/dist/src/templates/resource/layers/resourceService.template.d.ts +1 -8
- package/dist/src/templates/resource/layers/resourceService.template.js +9 -54
- package/dist/src/templates/resource/resource.files.d.ts +0 -1
- package/dist/src/templates/resource/resource.files.js +7 -6
- package/dist/src/templates/resource/resource.names.d.ts +0 -1
- package/dist/src/templates/resource/resource.names.js +0 -1
- package/dist/src/templates/resource/resource.type.d.ts +0 -1
- package/dist/src/templates/resource/resource.type.js +0 -1
- package/dist/src/templates/shared/appRuntime.template.d.ts +0 -1
- package/dist/src/templates/shared/appRuntime.template.js +6 -5
- package/dist/src/templates/shared/capability.template.d.ts +0 -1
- package/dist/src/templates/shared/capability.template.js +0 -1
- package/dist/src/templates/shared/dockerfile/dockerfile.install.d.ts +0 -1
- package/dist/src/templates/shared/dockerfile/dockerfile.install.js +0 -1
- package/dist/src/templates/shared/dockerfile/dockerfile.template.d.ts +0 -1
- package/dist/src/templates/shared/dockerfile/dockerfile.template.js +15 -5
- package/dist/src/templates/shared/dockerfile/index.d.ts +0 -1
- package/dist/src/templates/shared/dockerfile/index.js +0 -1
- package/dist/src/templates/shared/index.d.ts +1 -1
- package/dist/src/templates/shared/index.js +1 -1
- package/dist/src/templates/shared/pnpm.template.d.ts +0 -1
- package/dist/src/templates/shared/pnpm.template.js +0 -1
- package/dist/src/templates/shared/server.parts.d.ts +28 -0
- package/dist/src/templates/shared/server.parts.js +59 -0
- package/dist/src/templates/shared/server.template.d.ts +17 -23
- package/dist/src/templates/shared/server.template.js +42 -69
- package/dist/src/types/index.d.ts +0 -1
- package/dist/src/types/index.js +0 -1
- package/dist/src/types/projectConfiguration.type.d.ts +0 -1
- package/dist/src/types/projectConfiguration.type.js +0 -1
- package/dist/src/types/scaffold.type.d.ts +0 -1
- package/dist/src/types/scaffold.type.js +0 -1
- package/dist/src/utils/index.d.ts +0 -1
- package/dist/src/utils/index.js +0 -1
- package/dist/src/utils/utils.detect.d.ts +0 -1
- package/dist/src/utils/utils.detect.js +0 -1
- package/dist/src/utils/utils.exec.d.ts +0 -1
- package/dist/src/utils/utils.exec.js +0 -1
- package/dist/src/utils/utils.fileSystem.d.ts +0 -1
- package/dist/src/utils/utils.fileSystem.js +0 -1
- package/dist/src/utils/utils.name.d.ts +0 -1
- package/dist/src/utils/utils.name.js +0 -1
- package/dist/src/utils/utils.writeGuard.d.ts +0 -1
- package/dist/src/utils/utils.writeGuard.js +0 -1
- package/dist/src/validators/compatibility/compatibilityValidator.core.d.ts +0 -1
- package/dist/src/validators/compatibility/compatibilityValidator.core.js +0 -1
- package/dist/src/validators/compatibility/index.d.ts +0 -1
- package/dist/src/validators/compatibility/index.js +0 -1
- package/dist/src/validators/environment/environmentValidator.core.d.ts +0 -1
- package/dist/src/validators/environment/environmentValidator.core.js +0 -1
- package/dist/src/validators/environment/index.d.ts +0 -1
- package/dist/src/validators/environment/index.js +0 -1
- package/dist/src/validators/index.d.ts +0 -1
- package/dist/src/validators/index.js +0 -1
- package/dist/src/validators/project/index.d.ts +0 -1
- package/dist/src/validators/project/index.js +0 -1
- package/dist/src/validators/project/projectValidator.core.d.ts +0 -1
- package/dist/src/validators/project/projectValidator.core.js +0 -1
- package/dist/src/wiring/index.d.ts +0 -1
- package/dist/src/wiring/index.js +0 -1
- package/dist/src/wiring/wiring.dependencies.d.ts +0 -1
- package/dist/src/wiring/wiring.dependencies.js +0 -1
- package/dist/src/wiring/wiring.edits.d.ts +0 -1
- package/dist/src/wiring/wiring.edits.js +0 -1
- package/dist/src/wiring/wiring.markers.d.ts +7 -5
- package/dist/src/wiring/wiring.markers.js +8 -7
- package/package.json +6 -6
- package/dist/src/generators/controller/controller.generator.d.ts +0 -11
- package/dist/src/generators/controller/controller.generator.js +0 -47
- package/dist/src/generators/dto/dto.generator.d.ts +0 -12
- package/dist/src/generators/dto/dto.generator.js +0 -27
- package/dist/src/generators/dto/index.d.ts +0 -5
- package/dist/src/generators/dto/index.js +0 -5
- package/dist/src/generators/repository/repository.generator.d.ts +0 -10
- package/dist/src/generators/repository/repository.generator.js +0 -80
- package/dist/src/generators/route/index.d.ts +0 -5
- package/dist/src/generators/route/index.js +0 -5
- package/dist/src/generators/route/route.generator.d.ts +0 -12
- package/dist/src/generators/route/route.generator.js +0 -31
- package/dist/src/templates/resource/layers/resourceRoutes.template.d.ts +0 -13
- package/dist/src/templates/resource/layers/resourceRoutes.template.js +0 -129
|
@@ -5,4 +5,3 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export { DependencyResolver, type DependencyResolutionResult, type ResolvedDependency, type DependencyConflict, } from "./dependencyResolver.core.js";
|
|
7
7
|
export { ANGULAR_VITEST_VERSION_RANGE, DEFAULT_DEPENDENCY_VERSIONS, DEPENDENCY_VERSION_RANGES, TYPESCRIPT_VERSION_RANGES, } from "./dependencyVersions.constant.js";
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -5,4 +5,3 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export { DependencyResolver, } from "./dependencyResolver.core.js";
|
|
7
7
|
export { ANGULAR_VITEST_VERSION_RANGE, DEFAULT_DEPENDENCY_VERSIONS, DEPENDENCY_VERSION_RANGES, TYPESCRIPT_VERSION_RANGES, } from "./dependencyVersions.constant.js";
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -8,4 +8,3 @@ export { resolveProjectPath, findProjectRoot } from "./project.resolver.js";
|
|
|
8
8
|
export { CapabilityResolver, type CapabilityDependency, type CapabilityResolutionResult, } from "./capability/index.js";
|
|
9
9
|
export { ConfigurationResolver, type ResolvedConfiguration, } from "./configuration/index.js";
|
|
10
10
|
export { resolveProjectLayout, detectPackageManager, type ProjectLayout, type ProjectLayoutType, type ProjectLayoutSource, } from "./layout/index.js";
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -8,4 +8,3 @@ export { resolveProjectPath, findProjectRoot } from "./project.resolver.js";
|
|
|
8
8
|
export { CapabilityResolver, } from "./capability/index.js";
|
|
9
9
|
export { ConfigurationResolver, } from "./configuration/index.js";
|
|
10
10
|
export { resolveProjectLayout, detectPackageManager, } from "./layout/index.js";
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -57,4 +57,3 @@ export declare function detectPackageManager(root: string): PackageManager;
|
|
|
57
57
|
* no legacy config and no `zudojs` block in `package.json`.
|
|
58
58
|
*/
|
|
59
59
|
export declare function resolveProjectLayout(cwd: string): ProjectLayout | null;
|
|
60
|
-
//# sourceMappingURL=projectLayout.core.d.ts.map
|
|
@@ -24,4 +24,3 @@ export interface FindProjectRootOptions {
|
|
|
24
24
|
*/
|
|
25
25
|
export declare function findProjectRoot(startDir?: string, options?: FindProjectRootOptions): string | null;
|
|
26
26
|
export declare function resolveProjectPath(cwd: string, name: string): string;
|
|
27
|
-
//# sourceMappingURL=project.resolver.d.ts.map
|
|
@@ -27,4 +27,3 @@ export declare class PackageManagerRunner {
|
|
|
27
27
|
addDev(packages: readonly string[], options: PackageManagerRunOptions): Promise<void>;
|
|
28
28
|
run(script: string, options: PackageManagerRunOptions): Promise<void>;
|
|
29
29
|
}
|
|
30
|
-
//# sourceMappingURL=packageManagerRunner.core.d.ts.map
|
|
@@ -4,4 +4,3 @@
|
|
|
4
4
|
* Barrel exports for framework scaffolders.
|
|
5
5
|
*/
|
|
6
6
|
export { FrameworkScaffolder, ViteReactScaffolder, ViteVueScaffolder, NextScaffolder, NuxtScaffolder, AngularScaffolder, AstroScaffolder, SvelteScaffolder, SvelteKitScaffolder, VanillaScaffolder, FlutterScaffolder, ReactNativeScaffolder, type ScaffolderResult, } from "./framework.scaffolder.js";
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -4,4 +4,3 @@
|
|
|
4
4
|
* Barrel exports for framework scaffolders.
|
|
5
5
|
*/
|
|
6
6
|
export { FrameworkScaffolder, ViteReactScaffolder, ViteVueScaffolder, NextScaffolder, NuxtScaffolder, AngularScaffolder, AstroScaffolder, SvelteScaffolder, SvelteKitScaffolder, VanillaScaffolder, FlutterScaffolder, ReactNativeScaffolder, } from "./framework.scaffolder.js";
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -42,4 +42,3 @@ export declare const EXAMPLE_RESOURCE = "examples";
|
|
|
42
42
|
* caller adds package.json, tsconfig.json and the empty folder barrels.
|
|
43
43
|
*/
|
|
44
44
|
export declare function renderBackendAppSource(options: BackendAppOptions): Record<string, string>;
|
|
45
|
-
//# sourceMappingURL=backendApp.core.d.ts.map
|
|
@@ -3,13 +3,30 @@
|
|
|
3
3
|
* dependency lists, dev tooling, tsconfig, folder barrels and the database
|
|
4
4
|
* setting every app records.
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* `@zudojs/*` packages the shared app source imports, plus `@zudojs/middleware`
|
|
8
|
+
* (what @zudojs/http's middleware is built on; pnpm's strict layout does not
|
|
9
|
+
* expose it transitively to an app that composes middleware of its own).
|
|
10
|
+
*/
|
|
7
11
|
export declare const APP_SOURCE_DEPENDENCIES: readonly string[];
|
|
12
|
+
/**
|
|
13
|
+
* Scripts of a backend app. `typecheck` covers sources and tests; `build`
|
|
14
|
+
* compiles the sources only. No `lint`: it used to repeat `tsc --noEmit`.
|
|
15
|
+
*/
|
|
16
|
+
export declare function backendAppScripts(): Record<string, string>;
|
|
8
17
|
/** `@zudojs/*` packages the generated tests import. */
|
|
9
18
|
export declare const APP_TEST_DEPENDENCIES: readonly string[];
|
|
10
19
|
/** Third-party dev tooling of a backend app. */
|
|
11
20
|
export declare function backendDevDependencies(): Record<string, string>;
|
|
12
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* tsconfig.test.json of a backend app: the same options over `src/` and
|
|
23
|
+
* `tests/`, emitting nothing. `tsconfig.json` excludes the tests so `build`
|
|
24
|
+
* never writes them to `dist/`; without this file they were never checked.
|
|
25
|
+
*/
|
|
26
|
+
export declare function backendTestTsconfig(): string;
|
|
27
|
+
/** Every tsconfig of a backend app, keyed by file name. */
|
|
28
|
+
export declare function backendTsconfigFiles(): Record<string, string>;
|
|
29
|
+
/** tsconfig.json of a backend app: the build; tests are in tsconfig.test.json. */
|
|
13
30
|
export declare function backendTsconfig(): string;
|
|
14
31
|
/** `src/<folder>/index.ts` barrels for {@link APP_FOLDERS}. */
|
|
15
32
|
export declare function emptyBarrels(): Record<string, string>;
|
|
@@ -23,4 +40,3 @@ export declare const DATABASE_CONFIG_SECTION = "database: Object.freeze({ url: t
|
|
|
23
40
|
export declare function applyDatabaseSetting(files: Record<string, string>, envLines: string): Record<string, string>;
|
|
24
41
|
/** `<pm> run <script>` for a package manager. */
|
|
25
42
|
export declare function runCommand(packageManager: string, script: string): string;
|
|
26
|
-
//# sourceMappingURL=backendApp.project.d.ts.map
|
|
@@ -5,14 +5,32 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { DEPENDENCY_VERSION_RANGES, TYPESCRIPT_VERSION_RANGES, } from "../../resolvers/dependency/dependencyVersions.constant.js";
|
|
7
7
|
import { MARKERS, insertBetweenMarkers } from "../../wiring/index.js";
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* `@zudojs/*` packages the shared app source imports, plus `@zudojs/middleware`
|
|
10
|
+
* (what @zudojs/http's middleware is built on; pnpm's strict layout does not
|
|
11
|
+
* expose it transitively to an app that composes middleware of its own).
|
|
12
|
+
*/
|
|
9
13
|
export const APP_SOURCE_DEPENDENCIES = [
|
|
10
14
|
"@zudojs/config",
|
|
11
15
|
"@zudojs/errors",
|
|
12
16
|
"@zudojs/http",
|
|
17
|
+
"@zudojs/middleware",
|
|
13
18
|
"@zudojs/schema",
|
|
14
19
|
"@zudojs/security",
|
|
15
20
|
];
|
|
21
|
+
/**
|
|
22
|
+
* Scripts of a backend app. `typecheck` covers sources and tests; `build`
|
|
23
|
+
* compiles the sources only. No `lint`: it used to repeat `tsc --noEmit`.
|
|
24
|
+
*/
|
|
25
|
+
export function backendAppScripts() {
|
|
26
|
+
return {
|
|
27
|
+
dev: "tsx watch src/server.ts",
|
|
28
|
+
start: "node dist/server.js",
|
|
29
|
+
build: "tsc",
|
|
30
|
+
typecheck: "tsc --noEmit && tsc -p tsconfig.test.json",
|
|
31
|
+
test: "vitest run",
|
|
32
|
+
};
|
|
33
|
+
}
|
|
16
34
|
/** `@zudojs/*` packages the generated tests import. */
|
|
17
35
|
export const APP_TEST_DEPENDENCIES = ["@zudojs/testing"];
|
|
18
36
|
/** Third-party dev tooling of a backend app. */
|
|
@@ -24,7 +42,28 @@ export function backendDevDependencies() {
|
|
|
24
42
|
vitest: DEPENDENCY_VERSION_RANGES.vitest,
|
|
25
43
|
};
|
|
26
44
|
}
|
|
27
|
-
/**
|
|
45
|
+
/**
|
|
46
|
+
* tsconfig.test.json of a backend app: the same options over `src/` and
|
|
47
|
+
* `tests/`, emitting nothing. `tsconfig.json` excludes the tests so `build`
|
|
48
|
+
* never writes them to `dist/`; without this file they were never checked.
|
|
49
|
+
*/
|
|
50
|
+
export function backendTestTsconfig() {
|
|
51
|
+
return `{
|
|
52
|
+
"extends": "./tsconfig.json",
|
|
53
|
+
"compilerOptions": {
|
|
54
|
+
"rootDir": ".",
|
|
55
|
+
"noEmit": true
|
|
56
|
+
},
|
|
57
|
+
"include": ["src/**/*", "tests/**/*"],
|
|
58
|
+
"exclude": ["node_modules", "dist"]
|
|
59
|
+
}
|
|
60
|
+
`;
|
|
61
|
+
}
|
|
62
|
+
/** Every tsconfig of a backend app, keyed by file name. */
|
|
63
|
+
export function backendTsconfigFiles() {
|
|
64
|
+
return { "tsconfig.json": backendTsconfig(), "tsconfig.test.json": backendTestTsconfig() };
|
|
65
|
+
}
|
|
66
|
+
/** tsconfig.json of a backend app: the build; tests are in tsconfig.test.json. */
|
|
28
67
|
export function backendTsconfig() {
|
|
29
68
|
return `{
|
|
30
69
|
"compilerOptions": {
|
|
@@ -84,4 +123,3 @@ export function runCommand(packageManager, script) {
|
|
|
84
123
|
return `pnpm run ${script}`;
|
|
85
124
|
}
|
|
86
125
|
}
|
|
87
|
-
//# sourceMappingURL=backendApp.project.js.map
|
|
@@ -18,8 +18,12 @@ export function baseEnvVariables(port) {
|
|
|
18
18
|
value: "",
|
|
19
19
|
comment: "Comma-separated origins allowed to call the API from a browser (empty: none)",
|
|
20
20
|
},
|
|
21
|
-
{ name: "RATE_LIMIT_WINDOW_MS", value: "60000", comment: "
|
|
22
|
-
{
|
|
21
|
+
{ name: "RATE_LIMIT_WINDOW_MS", value: "60000", comment: "Length of the rate-limit window in milliseconds" },
|
|
22
|
+
{
|
|
23
|
+
name: "RATE_LIMIT_MAX",
|
|
24
|
+
value: "1000",
|
|
25
|
+
comment: "Requests allowed per client per window; 0 disables the limit (load tests, local development)",
|
|
26
|
+
},
|
|
23
27
|
];
|
|
24
28
|
}
|
|
25
29
|
/** Renders `.env.example` lines for `variables`. */
|
|
@@ -34,12 +38,13 @@ export function renderEnvVariables(variables) {
|
|
|
34
38
|
* placed between the config markers.
|
|
35
39
|
*/
|
|
36
40
|
export function renderConfigFile(options) {
|
|
37
|
-
return `import {
|
|
38
|
-
import {
|
|
41
|
+
return `import {
|
|
39
42
|
createConfigManager,
|
|
40
43
|
createEnvironmentConfigSource,
|
|
41
44
|
type ConfigManager,
|
|
42
45
|
} from "@zudojs/config";
|
|
46
|
+
import { resolveEnvironment } from "@zudojs/constants";
|
|
47
|
+
import { ConfigurationError } from "@zudojs/errors";
|
|
43
48
|
|
|
44
49
|
const DEFAULT_PORT = ${options.defaultPort};
|
|
45
50
|
|
|
@@ -99,7 +104,10 @@ export async function loadConfig(env: NodeJS.ProcessEnv = process.env) {
|
|
|
99
104
|
await config.load();
|
|
100
105
|
|
|
101
106
|
return Object.freeze({
|
|
102
|
-
|
|
107
|
+
// NODE_ENV is read here, once, the way the framework reads it: \`prod\`
|
|
108
|
+
// and \`Production\` are production, an unknown value warns once. app.ts
|
|
109
|
+
// and server.ts take the resolved value from this object.
|
|
110
|
+
nodeEnv: resolveEnvironment({ NODE_ENV: text(config, "node_env", "development") }),
|
|
103
111
|
host: text(config, "host", "0.0.0.0"),
|
|
104
112
|
port: port(config),
|
|
105
113
|
corsOrigins: list(config, "cors_origins"),
|
|
@@ -115,4 +123,3 @@ ${renderMarkerBlock(MARKERS.config, options.sections, " ")}
|
|
|
115
123
|
export type AppConfig = Awaited<ReturnType<typeof loadConfig>>;
|
|
116
124
|
`;
|
|
117
125
|
}
|
|
118
|
-
//# sourceMappingURL=config.template.js.map
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The small helpers every generated controller and the server use: JSON
|
|
5
5
|
* responses, schema-issue responses, JSON body reading, mapping exposed
|
|
6
|
-
*
|
|
6
|
+
* errors to responses, describing unexpected ones for the log, and the
|
|
7
|
+
* @zudojs/security default headers.
|
|
7
8
|
*/
|
|
8
9
|
/** Renders `src/utils/http.ts`. */
|
|
9
10
|
export declare function renderHttpUtils(): string;
|
|
10
|
-
//# sourceMappingURL=httpUtils.template.d.ts.map
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The small helpers every generated controller and the server use: JSON
|
|
5
5
|
* responses, schema-issue responses, JSON body reading, mapping exposed
|
|
6
|
-
*
|
|
6
|
+
* errors to responses, describing unexpected ones for the log, and the
|
|
7
|
+
* @zudojs/security default headers.
|
|
7
8
|
*/
|
|
8
9
|
/** Renders `src/utils/http.ts`. */
|
|
9
10
|
export function renderHttpUtils() {
|
|
@@ -61,9 +62,10 @@ export function readJsonBody(ctx: HttpRouterContext): unknown {
|
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
/**
|
|
64
|
-
* The response for an error that carries an exposed
|
|
65
|
-
* (NotFoundError, badRequest(),
|
|
66
|
-
*
|
|
65
|
+
* The response for an error that carries an exposed HTTP status
|
|
66
|
+
* (NotFoundError, badRequest(), an exposed 503, ...): its status, message
|
|
67
|
+
* and code. \`undefined\` for anything else; server.ts then logs the error
|
|
68
|
+
* and answers a generic 500 that never leaks the message.
|
|
67
69
|
*/
|
|
68
70
|
export function errorResponse(error: unknown): HttpResponseContext | undefined {
|
|
69
71
|
if (typeof error !== "object" || error === null) return undefined;
|
|
@@ -74,7 +76,7 @@ export function errorResponse(error: unknown): HttpResponseContext | undefined {
|
|
|
74
76
|
readonly code?: unknown;
|
|
75
77
|
};
|
|
76
78
|
const status = candidate.statusCode;
|
|
77
|
-
if (typeof status !== "number" || status < 400 || status >
|
|
79
|
+
if (typeof status !== "number" || status < 400 || status > 599) return undefined;
|
|
78
80
|
if (candidate.expose !== true || typeof candidate.message !== "string") return undefined;
|
|
79
81
|
return json(status, {
|
|
80
82
|
error: candidate.message,
|
|
@@ -82,6 +84,19 @@ export function errorResponse(error: unknown): HttpResponseContext | undefined {
|
|
|
82
84
|
});
|
|
83
85
|
}
|
|
84
86
|
|
|
87
|
+
/** What the log records about an unexpected error: name, message, code, stack. */
|
|
88
|
+
export function errorDetails(error: unknown): Record<string, string> {
|
|
89
|
+
if (!(error instanceof Error)) return { error: String(error) };
|
|
90
|
+
const { code } = error as { readonly code?: unknown };
|
|
91
|
+
return {
|
|
92
|
+
error: error.message,
|
|
93
|
+
name: error.name,
|
|
94
|
+
...(typeof code === "string" ? { code } : {}),
|
|
95
|
+
...(error.stack === undefined ? {} : { stack: error.stack }),
|
|
96
|
+
...(error.cause === undefined ? {} : { cause: error.cause instanceof Error ? error.cause.message : String(error.cause) }),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
85
100
|
/**
|
|
86
101
|
* Adds the @zudojs/security default headers (CSP, HSTS, nosniff,
|
|
87
102
|
* X-Frame-Options DENY, ...) to every response that does not set its own:
|
|
@@ -100,4 +115,3 @@ export function securityHeaders(): HttpMiddleware {
|
|
|
100
115
|
}
|
|
101
116
|
`;
|
|
102
117
|
}
|
|
103
|
-
//# sourceMappingURL=httpUtils.template.js.map
|
|
@@ -13,4 +13,3 @@ import type { MarkerLines } from "./wiring.template.js";
|
|
|
13
13
|
export declare function renderIntegrationsIndex(lines: MarkerLines): string;
|
|
14
14
|
/** Renders `src/integrations/integration.ts`. */
|
|
15
15
|
export declare function renderIntegrationContract(): string;
|
|
16
|
-
//# sourceMappingURL=integrations.template.d.ts.map
|
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
* plus every resource (and module) between the `routes` markers.
|
|
6
6
|
* - `src/modules/<name>/routes/index.ts` does the same for one module.
|
|
7
7
|
* - `src/container.ts` constructs every controller, service and repository
|
|
8
|
-
* in one place, between the `container` markers
|
|
8
|
+
* in one place, between the `container` markers, and exports the
|
|
9
|
+
* `APP_DEPENDENCIES` token under which server.ts registers the result in
|
|
10
|
+
* the runtime's DI container.
|
|
9
11
|
*/
|
|
10
12
|
/** Lines a template pre-fills between a pair of markers. */
|
|
11
13
|
export interface MarkerLines {
|
|
@@ -23,4 +25,3 @@ export declare function renderModuleRoutesIndex(functionName: string, containerF
|
|
|
23
25
|
export declare function renderHealthRoutes(): string;
|
|
24
26
|
/** Renders `src/container.ts`. */
|
|
25
27
|
export declare function renderContainer(lines: MarkerLines): string;
|
|
26
|
-
//# sourceMappingURL=wiring.template.d.ts.map
|
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
* plus every resource (and module) between the `routes` markers.
|
|
6
6
|
* - `src/modules/<name>/routes/index.ts` does the same for one module.
|
|
7
7
|
* - `src/container.ts` constructs every controller, service and repository
|
|
8
|
-
* in one place, between the `container` markers
|
|
8
|
+
* in one place, between the `container` markers, and exports the
|
|
9
|
+
* `APP_DEPENDENCIES` token under which server.ts registers the result in
|
|
10
|
+
* the runtime's DI container.
|
|
9
11
|
*/
|
|
10
12
|
import { MARKERS, renderMarkerBlock } from "../../../wiring/index.js";
|
|
11
13
|
/** Renders `src/routes/index.ts`. */
|
|
@@ -80,9 +82,18 @@ export function registerHealthRoutes(router: HttpRouter, check: HealthCheck): vo
|
|
|
80
82
|
}
|
|
81
83
|
/** Renders `src/container.ts`. */
|
|
82
84
|
export function renderContainer(lines) {
|
|
83
|
-
return `import
|
|
85
|
+
return `import { createToken } from "@zudojs/container";
|
|
86
|
+
|
|
87
|
+
import type { HealthCheck } from "./routes/health.routes.js";
|
|
84
88
|
${renderMarkerBlock(MARKERS.containerImports, lines.imports)}
|
|
85
89
|
|
|
90
|
+
/**
|
|
91
|
+
* The token server.ts registers the composition root under in the runtime
|
|
92
|
+
* container, so a module can reach it:
|
|
93
|
+
* \`context.application.container.resolve(APP_DEPENDENCIES)\`.
|
|
94
|
+
*/
|
|
95
|
+
export const APP_DEPENDENCIES = createToken<AppDependencies>("app.dependencies");
|
|
96
|
+
|
|
86
97
|
/** Options for {@link createDependencies}. */
|
|
87
98
|
export interface DependencyOptions {
|
|
88
99
|
/** Readiness for /health; server.ts passes the runtime's. */
|
|
@@ -108,4 +119,3 @@ ${renderMarkerBlock(MARKERS.container, lines.entries, " ")}
|
|
|
108
119
|
export type AppDependencies = ReturnType<typeof createDependencies>;
|
|
109
120
|
`;
|
|
110
121
|
}
|
|
111
|
-
//# sourceMappingURL=wiring.template.js.map
|
|
@@ -44,4 +44,3 @@ export declare const RESERVED_MICROSERVICE_APP_NAMES: readonly ["gateway"];
|
|
|
44
44
|
*/
|
|
45
45
|
export declare function resolveMicroserviceServices(requested: readonly string[]): readonly string[];
|
|
46
46
|
export declare function generateMicroserviceFiles(options: ScaffoldOptions): Record<string, string>;
|
|
47
|
-
//# sourceMappingURL=microservice.template.d.ts.map
|