@warlock.js/core 4.0.162 → 4.0.164
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/esm/benchmark/index.d.ts +7 -0
- package/esm/benchmark/index.d.ts.map +1 -0
- package/esm/benchmark/profiler.d.ts +63 -0
- package/esm/benchmark/profiler.d.ts.map +1 -0
- package/esm/benchmark/profiler.js +155 -0
- package/esm/benchmark/profiler.js.map +1 -0
- package/esm/benchmark/types.d.ts +167 -0
- package/esm/benchmark/types.d.ts.map +1 -0
- package/esm/bootstrap/setup.d.ts +2 -0
- package/esm/bootstrap/setup.d.ts.map +1 -0
- package/esm/bootstrap/setup.js +14 -0
- package/esm/bootstrap/setup.js.map +1 -0
- package/esm/bootstrap.d.ts +2 -0
- package/esm/bootstrap.d.ts.map +1 -0
- package/esm/bootstrap.js +5 -0
- package/esm/bootstrap.js.map +1 -0
- package/esm/cache/database-cache-driver.d.ts +56 -0
- package/esm/cache/database-cache-driver.d.ts.map +1 -0
- package/esm/cache/database-cache-driver.js +112 -0
- package/esm/cache/database-cache-driver.js.map +1 -0
- package/esm/cache/index.d.ts +3 -0
- package/esm/cache/index.d.ts.map +1 -0
- package/esm/cache/index.js +1 -0
- package/esm/cache/index.js.map +1 -0
- package/esm/cli/cli-command.d.ts +115 -0
- package/esm/cli/cli-command.d.ts.map +1 -0
- package/esm/cli/cli-command.js +227 -0
- package/esm/cli/cli-command.js.map +1 -0
- package/esm/cli/cli-commands.manager.d.ts +71 -0
- package/esm/cli/cli-commands.manager.d.ts.map +1 -0
- package/esm/cli/cli-commands.manager.js +362 -0
- package/esm/cli/cli-commands.manager.js.map +1 -0
- package/esm/cli/cli-commands.utils.d.ts +69 -0
- package/esm/cli/cli-commands.utils.d.ts.map +1 -0
- package/esm/cli/cli-commands.utils.js +180 -0
- package/esm/cli/cli-commands.utils.js.map +1 -0
- package/esm/cli/commands/add.command.d.ts +2 -0
- package/esm/cli/commands/add.command.d.ts.map +1 -0
- package/esm/cli/commands/add.command.js +15 -0
- package/esm/cli/commands/add.command.js.map +1 -0
- package/esm/cli/commands/build.command.d.ts +2 -0
- package/esm/cli/commands/build.command.d.ts.map +1 -0
- package/esm/cli/commands/build.command.js +8 -0
- package/esm/cli/commands/build.command.js.map +1 -0
- package/esm/cli/commands/create-database.command.d.ts +2 -0
- package/esm/cli/commands/create-database.command.d.ts.map +1 -0
- package/esm/cli/commands/create-database.command.js +18 -0
- package/esm/cli/commands/create-database.command.js.map +1 -0
- package/esm/cli/commands/dev-server.command.d.ts +2 -0
- package/esm/cli/commands/dev-server.command.d.ts.map +1 -0
- package/esm/cli/commands/dev-server.command.js +18 -0
- package/esm/cli/commands/dev-server.command.js.map +1 -0
- package/esm/cli/commands/drop-tables.command.d.ts +2 -0
- package/esm/cli/commands/drop-tables.command.d.ts.map +1 -0
- package/esm/cli/commands/drop-tables.command.js +17 -0
- package/esm/cli/commands/drop-tables.command.js.map +1 -0
- package/esm/cli/commands/generate/generate.command.d.ts +10 -0
- package/esm/cli/commands/generate/generate.command.d.ts.map +1 -0
- package/esm/cli/commands/generate/generate.command.js +188 -0
- package/esm/cli/commands/generate/generate.command.js.map +1 -0
- package/esm/cli/commands/generate/generators/column-dsl-parser.d.ts +11 -0
- package/esm/cli/commands/generate/generators/column-dsl-parser.d.ts.map +1 -0
- package/esm/cli/commands/generate/generators/column-dsl-parser.js +47 -0
- package/esm/cli/commands/generate/generators/column-dsl-parser.js.map +1 -0
- package/esm/cli/commands/generate/generators/controller.generator.d.ts +3 -0
- package/esm/cli/commands/generate/generators/controller.generator.d.ts.map +1 -0
- package/esm/cli/commands/generate/generators/controller.generator.js +51 -0
- package/esm/cli/commands/generate/generators/controller.generator.js.map +1 -0
- package/esm/cli/commands/generate/generators/migration.generator.d.ts +13 -0
- package/esm/cli/commands/generate/generators/migration.generator.d.ts.map +1 -0
- package/esm/cli/commands/generate/generators/migration.generator.js +82 -0
- package/esm/cli/commands/generate/generators/migration.generator.js.map +1 -0
- package/esm/cli/commands/generate/generators/model.generator.d.ts +3 -0
- package/esm/cli/commands/generate/generators/model.generator.d.ts.map +1 -0
- package/esm/cli/commands/generate/generators/model.generator.js +58 -0
- package/esm/cli/commands/generate/generators/model.generator.js.map +1 -0
- package/esm/cli/commands/generate/generators/module.generator.d.ts +3 -0
- package/esm/cli/commands/generate/generators/module.generator.d.ts.map +1 -0
- package/esm/cli/commands/generate/generators/module.generator.js +149 -0
- package/esm/cli/commands/generate/generators/module.generator.js.map +1 -0
- package/esm/cli/commands/generate/generators/repository.generator.d.ts +3 -0
- package/esm/cli/commands/generate/generators/repository.generator.d.ts.map +1 -0
- package/esm/cli/commands/generate/generators/repository.generator.js +37 -0
- package/esm/cli/commands/generate/generators/repository.generator.js.map +1 -0
- package/esm/cli/commands/generate/generators/resource.generator.d.ts +3 -0
- package/esm/cli/commands/generate/generators/resource.generator.d.ts.map +1 -0
- package/esm/cli/commands/generate/generators/resource.generator.js +37 -0
- package/esm/cli/commands/generate/generators/resource.generator.js.map +1 -0
- package/esm/cli/commands/generate/generators/service.generator.d.ts +3 -0
- package/esm/cli/commands/generate/generators/service.generator.d.ts.map +1 -0
- package/esm/cli/commands/generate/generators/service.generator.js +37 -0
- package/esm/cli/commands/generate/generators/service.generator.js.map +1 -0
- package/esm/cli/commands/generate/generators/validation.generator.d.ts +3 -0
- package/esm/cli/commands/generate/generators/validation.generator.d.ts.map +1 -0
- package/esm/cli/commands/generate/generators/validation.generator.js +46 -0
- package/esm/cli/commands/generate/generators/validation.generator.js.map +1 -0
- package/esm/cli/commands/generate/templates/stubs.d.ts +129 -0
- package/esm/cli/commands/generate/templates/stubs.d.ts.map +1 -0
- package/esm/cli/commands/generate/templates/stubs.js +528 -0
- package/esm/cli/commands/generate/templates/stubs.js.map +1 -0
- package/esm/cli/commands/generate/types.d.ts +53 -0
- package/esm/cli/commands/generate/types.d.ts.map +1 -0
- package/esm/cli/commands/generate/utils/name-parser.d.ts +40 -0
- package/esm/cli/commands/generate/utils/name-parser.d.ts.map +1 -0
- package/esm/cli/commands/generate/utils/name-parser.js +65 -0
- package/esm/cli/commands/generate/utils/name-parser.js.map +1 -0
- package/esm/cli/commands/generate/utils/path-resolver.d.ts +30 -0
- package/esm/cli/commands/generate/utils/path-resolver.d.ts.map +1 -0
- package/esm/cli/commands/generate/utils/path-resolver.js +42 -0
- package/esm/cli/commands/generate/utils/path-resolver.js.map +1 -0
- package/esm/cli/commands/generate/utils/prompt.d.ts +13 -0
- package/esm/cli/commands/generate/utils/prompt.d.ts.map +1 -0
- package/esm/cli/commands/generate/utils/prompt.js +21 -0
- package/esm/cli/commands/generate/utils/prompt.js.map +1 -0
- package/esm/cli/commands/migrate.command.d.ts +2 -0
- package/esm/cli/commands/migrate.command.d.ts.map +1 -0
- package/esm/cli/commands/migrate.command.js +52 -0
- package/esm/cli/commands/migrate.command.js.map +1 -0
- package/esm/cli/commands/seed.command.d.ts +2 -0
- package/esm/cli/commands/seed.command.d.ts.map +1 -0
- package/esm/cli/commands/seed.command.js +24 -0
- package/esm/cli/commands/seed.command.js.map +1 -0
- package/esm/cli/commands/start-production.command.d.ts +2 -0
- package/esm/cli/commands/start-production.command.d.ts.map +1 -0
- package/esm/cli/commands/start-production.command.js +65 -0
- package/esm/cli/commands/start-production.command.js.map +1 -0
- package/esm/cli/commands/storage-put.action.d.ts +22 -0
- package/esm/cli/commands/storage-put.action.d.ts.map +1 -0
- package/esm/cli/commands/storage-put.action.js +75 -0
- package/esm/cli/commands/storage-put.action.js.map +1 -0
- package/esm/cli/commands/storage-put.command.d.ts +20 -0
- package/esm/cli/commands/storage-put.command.d.ts.map +1 -0
- package/esm/cli/commands/storage-put.command.js +41 -0
- package/esm/cli/commands/storage-put.command.js.map +1 -0
- package/esm/cli/commands/typings-generator.command.d.ts +2 -0
- package/esm/cli/commands/typings-generator.command.d.ts.map +1 -0
- package/esm/cli/commands/typings-generator.command.js +37 -0
- package/esm/cli/commands/typings-generator.command.js.map +1 -0
- package/esm/cli/commands-loader.d.ts +18 -0
- package/esm/cli/commands-loader.d.ts.map +1 -0
- package/esm/cli/commands-loader.js +45 -0
- package/esm/cli/commands-loader.js.map +1 -0
- package/esm/cli/framework-cli-commands.d.ts +2 -0
- package/esm/cli/framework-cli-commands.d.ts.map +1 -0
- package/esm/cli/framework-cli-commands.js +27 -0
- package/esm/cli/framework-cli-commands.js.map +1 -0
- package/esm/cli/index.d.ts +3 -0
- package/esm/cli/index.d.ts.map +1 -0
- package/esm/cli/index.js +1 -0
- package/esm/cli/index.js.map +1 -0
- package/esm/cli/parse-cli-args.d.ts +18 -0
- package/esm/cli/parse-cli-args.d.ts.map +1 -0
- package/esm/cli/parse-cli-args.js +82 -0
- package/esm/cli/parse-cli-args.js.map +1 -0
- package/esm/cli/start.d.ts +2 -0
- package/esm/cli/start.d.ts.map +1 -0
- package/esm/cli/start.js +2 -0
- package/esm/cli/start.js.map +1 -0
- package/esm/cli/string-similarity.d.ts +44 -0
- package/esm/cli/string-similarity.d.ts.map +1 -0
- package/esm/cli/string-similarity.js +57 -0
- package/esm/cli/string-similarity.js.map +1 -0
- package/esm/cli/types.d.ts +218 -0
- package/esm/cli/types.d.ts.map +1 -0
- package/esm/config/config-getter.d.ts +35 -0
- package/esm/config/config-getter.d.ts.map +1 -0
- package/esm/config/config-getter.js +21 -0
- package/esm/config/config-getter.js.map +1 -0
- package/esm/config/config-handlers.d.ts +7 -0
- package/esm/config/config-handlers.d.ts.map +1 -0
- package/esm/config/config-handlers.js +19 -0
- package/esm/config/config-handlers.js.map +1 -0
- package/esm/config/config-loader.d.ts +37 -0
- package/esm/config/config-loader.d.ts.map +1 -0
- package/esm/config/config-loader.js +85 -0
- package/esm/config/config-loader.js.map +1 -0
- package/esm/config/config-manager.d.ts +22 -0
- package/esm/config/config-manager.d.ts.map +1 -0
- package/esm/config/config-manager.js +25 -0
- package/esm/config/config-manager.js.map +1 -0
- package/esm/config/config-special-handlers.d.ts +17 -0
- package/esm/config/config-special-handlers.d.ts.map +1 -0
- package/esm/config/config-special-handlers.js +23 -0
- package/esm/config/config-special-handlers.js.map +1 -0
- package/esm/config/index.d.ts +5 -0
- package/esm/config/index.d.ts.map +1 -0
- package/esm/config/load-config-files.d.ts +6 -0
- package/esm/config/load-config-files.d.ts.map +1 -0
- package/esm/config/load-config-files.js +19 -0
- package/esm/config/load-config-files.js.map +1 -0
- package/esm/config/types.d.ts +52 -0
- package/esm/config/types.d.ts.map +1 -0
- package/esm/connectors/base-connector.d.ts +49 -0
- package/esm/connectors/base-connector.d.ts.map +1 -0
- package/esm/connectors/base-connector.js +48 -0
- package/esm/connectors/base-connector.js.map +1 -0
- package/esm/connectors/cache-connector.d.ts +23 -0
- package/esm/connectors/cache-connector.d.ts.map +1 -0
- package/esm/connectors/cache-connector.js +35 -0
- package/esm/connectors/cache-connector.js.map +1 -0
- package/esm/connectors/communicator-connector.d.ts +23 -0
- package/esm/connectors/communicator-connector.d.ts.map +1 -0
- package/esm/connectors/communicator-connector.js +62 -0
- package/esm/connectors/communicator-connector.js.map +1 -0
- package/esm/connectors/connectors-manager.d.ts +42 -0
- package/esm/connectors/connectors-manager.d.ts.map +1 -0
- package/esm/connectors/connectors-manager.js +93 -0
- package/esm/connectors/connectors-manager.js.map +1 -0
- package/esm/connectors/database-connector.d.ts +23 -0
- package/esm/connectors/database-connector.d.ts.map +1 -0
- package/esm/connectors/database-connector.js +51 -0
- package/esm/connectors/database-connector.js.map +1 -0
- package/esm/connectors/http-connector.d.ts +31 -0
- package/esm/connectors/http-connector.d.ts.map +1 -0
- package/esm/connectors/http-connector.js +83 -0
- package/esm/connectors/http-connector.js.map +1 -0
- package/esm/connectors/index.d.ts +15 -0
- package/esm/connectors/index.d.ts.map +1 -0
- package/esm/connectors/logger-connector.d.ts +23 -0
- package/esm/connectors/logger-connector.d.ts.map +1 -0
- package/esm/connectors/logger-connector.js +45 -0
- package/esm/connectors/logger-connector.js.map +1 -0
- package/esm/connectors/mail-connector.d.ts +23 -0
- package/esm/connectors/mail-connector.d.ts.map +1 -0
- package/esm/connectors/mail-connector.js +45 -0
- package/esm/connectors/mail-connector.js.map +1 -0
- package/esm/connectors/storage.connector.d.ts +23 -0
- package/esm/connectors/storage.connector.d.ts.map +1 -0
- package/esm/connectors/storage.connector.js +30 -0
- package/esm/connectors/storage.connector.js.map +1 -0
- package/esm/connectors/types.d.ts +54 -0
- package/esm/connectors/types.d.ts.map +1 -0
- package/esm/connectors/types.js +13 -0
- package/esm/connectors/types.js.map +1 -0
- package/esm/database/create-database-action.d.ts +3 -0
- package/esm/database/create-database-action.d.ts.map +1 -0
- package/esm/database/create-database-action.js +28 -0
- package/esm/database/create-database-action.js.map +1 -0
- package/esm/database/drop-tables-action.d.ts +3 -0
- package/esm/database/drop-tables-action.d.ts.map +1 -0
- package/esm/database/drop-tables-action.js +29 -0
- package/esm/database/drop-tables-action.js.map +1 -0
- package/esm/database/index.d.ts +4 -0
- package/esm/database/index.d.ts.map +1 -0
- package/esm/database/migrate-action.d.ts +8 -0
- package/esm/database/migrate-action.d.ts.map +1 -0
- package/esm/database/migrate-action.js +118 -0
- package/esm/database/migrate-action.js.map +1 -0
- package/esm/database/models/database-log/database-log.d.ts +16 -0
- package/esm/database/models/database-log/database-log.d.ts.map +1 -0
- package/esm/database/models/database-log/database-log.js +17 -0
- package/esm/database/models/database-log/database-log.js.map +1 -0
- package/esm/database/models/database-log/index.d.ts +2 -0
- package/esm/database/models/database-log/index.d.ts.map +1 -0
- package/esm/database/seed-command-action.d.ts +3 -0
- package/esm/database/seed-command-action.d.ts.map +1 -0
- package/esm/database/seed-command-action.js +36 -0
- package/esm/database/seed-command-action.js.map +1 -0
- package/esm/database/seeds/index.d.ts +3 -0
- package/esm/database/seeds/index.d.ts.map +1 -0
- package/esm/database/seeds/seeder.d.ts +40 -0
- package/esm/database/seeds/seeder.d.ts.map +1 -0
- package/esm/database/seeds/seeder.js +6 -0
- package/esm/database/seeds/seeder.js.map +1 -0
- package/esm/database/seeds/seeders.manager.d.ts +47 -0
- package/esm/database/seeds/seeders.manager.d.ts.map +1 -0
- package/esm/database/seeds/seeders.manager.js +144 -0
- package/esm/database/seeds/seeders.manager.js.map +1 -0
- package/esm/database/seeds/seeds-table-migration.d.ts +8 -0
- package/esm/database/seeds/seeds-table-migration.d.ts.map +1 -0
- package/esm/database/seeds/seeds-table-migration.js +18 -0
- package/esm/database/seeds/seeds-table-migration.js.map +1 -0
- package/esm/database/seeds/types.d.ts +13 -0
- package/esm/database/seeds/types.d.ts.map +1 -0
- package/esm/database/seeds/utils.d.ts +2 -0
- package/esm/database/seeds/utils.d.ts.map +1 -0
- package/esm/database/seeds/utils.js +1 -0
- package/esm/database/seeds/utils.js.map +1 -0
- package/esm/database/utils.d.ts +17 -0
- package/esm/database/utils.d.ts.map +1 -0
- package/esm/database/utils.js +30 -0
- package/esm/database/utils.js.map +1 -0
- package/esm/dev-server/create-worker.d.ts +34 -0
- package/esm/dev-server/create-worker.d.ts.map +1 -0
- package/esm/dev-server/create-worker.js +37 -0
- package/esm/dev-server/create-worker.js.map +1 -0
- package/esm/dev-server/dependency-graph.d.ts +102 -0
- package/esm/dev-server/dependency-graph.d.ts.map +1 -0
- package/esm/dev-server/dependency-graph.js +310 -0
- package/esm/dev-server/dependency-graph.js.map +1 -0
- package/esm/dev-server/dev-logger.d.ts +14 -0
- package/esm/dev-server/dev-logger.d.ts.map +1 -0
- package/esm/dev-server/dev-logger.js +130 -0
- package/esm/dev-server/dev-logger.js.map +1 -0
- package/esm/dev-server/development-server.d.ts +55 -0
- package/esm/dev-server/development-server.d.ts.map +1 -0
- package/esm/dev-server/development-server.js +199 -0
- package/esm/dev-server/development-server.js.map +1 -0
- package/esm/dev-server/events.d.ts +5 -0
- package/esm/dev-server/events.d.ts.map +1 -0
- package/esm/dev-server/events.js +4 -0
- package/esm/dev-server/events.js.map +1 -0
- package/esm/dev-server/export-analyzer.d.ts +84 -0
- package/esm/dev-server/export-analyzer.d.ts.map +1 -0
- package/esm/dev-server/export-analyzer.js +206 -0
- package/esm/dev-server/export-analyzer.js.map +1 -0
- package/esm/dev-server/file-event-handler.d.ts +156 -0
- package/esm/dev-server/file-event-handler.d.ts.map +1 -0
- package/esm/dev-server/file-event-handler.js +309 -0
- package/esm/dev-server/file-event-handler.js.map +1 -0
- package/esm/dev-server/file-manager.d.ts +394 -0
- package/esm/dev-server/file-manager.d.ts.map +1 -0
- package/esm/dev-server/file-manager.js +603 -0
- package/esm/dev-server/file-manager.js.map +1 -0
- package/esm/dev-server/file-operations.d.ts +203 -0
- package/esm/dev-server/file-operations.d.ts.map +1 -0
- package/esm/dev-server/file-operations.js +365 -0
- package/esm/dev-server/file-operations.js.map +1 -0
- package/esm/dev-server/files-orchestrator.d.ts +153 -0
- package/esm/dev-server/files-orchestrator.d.ts.map +1 -0
- package/esm/dev-server/files-orchestrator.js +349 -0
- package/esm/dev-server/files-orchestrator.js.map +1 -0
- package/esm/dev-server/files-watcher.d.ts +67 -0
- package/esm/dev-server/files-watcher.d.ts.map +1 -0
- package/esm/dev-server/files-watcher.js +121 -0
- package/esm/dev-server/files-watcher.js.map +1 -0
- package/esm/dev-server/flags.d.ts +10 -0
- package/esm/dev-server/flags.d.ts.map +1 -0
- package/esm/dev-server/flags.js +9 -0
- package/esm/dev-server/flags.js.map +1 -0
- package/esm/dev-server/health-checker/checkers/base-health-checker.d.ts +52 -0
- package/esm/dev-server/health-checker/checkers/base-health-checker.d.ts.map +1 -0
- package/esm/dev-server/health-checker/checkers/base-health-checker.js +71 -0
- package/esm/dev-server/health-checker/checkers/base-health-checker.js.map +1 -0
- package/esm/dev-server/health-checker/checkers/eslint-health-checker.d.ts +40 -0
- package/esm/dev-server/health-checker/checkers/eslint-health-checker.d.ts.map +1 -0
- package/esm/dev-server/health-checker/checkers/eslint-health-checker.js +217 -0
- package/esm/dev-server/health-checker/checkers/eslint-health-checker.js.map +1 -0
- package/esm/dev-server/health-checker/checkers/typescript-health-checker.d.ts +56 -0
- package/esm/dev-server/health-checker/checkers/typescript-health-checker.d.ts.map +1 -0
- package/esm/dev-server/health-checker/checkers/typescript-health-checker.js +279 -0
- package/esm/dev-server/health-checker/checkers/typescript-health-checker.js.map +1 -0
- package/esm/dev-server/health-checker/file-health-checker.contract.d.ts +59 -0
- package/esm/dev-server/health-checker/file-health-checker.contract.d.ts.map +1 -0
- package/esm/dev-server/health-checker/file-health-result.d.ts +68 -0
- package/esm/dev-server/health-checker/file-health-result.d.ts.map +1 -0
- package/esm/dev-server/health-checker/file-health-result.js +40 -0
- package/esm/dev-server/health-checker/file-health-result.js.map +1 -0
- package/esm/dev-server/health-checker/files-healthcare.manager.d.ts +115 -0
- package/esm/dev-server/health-checker/files-healthcare.manager.d.ts.map +1 -0
- package/esm/dev-server/health-checker/files-healthcare.manager.js +422 -0
- package/esm/dev-server/health-checker/files-healthcare.manager.js.map +1 -0
- package/esm/dev-server/health-checker/index.d.ts +6 -0
- package/esm/dev-server/health-checker/index.d.ts.map +1 -0
- package/esm/dev-server/health-checker/workers/eslint-health.worker.d.ts +2 -0
- package/esm/dev-server/health-checker/workers/eslint-health.worker.d.ts.map +1 -0
- package/esm/dev-server/health-checker/workers/eslint-health.worker.js +214 -0
- package/esm/dev-server/health-checker/workers/eslint-health.worker.js.map +1 -0
- package/esm/dev-server/health-checker/workers/ts-health.worker.d.ts +2 -0
- package/esm/dev-server/health-checker/workers/ts-health.worker.d.ts.map +1 -0
- package/esm/dev-server/health-checker/workers/ts-health.worker.js +261 -0
- package/esm/dev-server/health-checker/workers/ts-health.worker.js.map +1 -0
- package/esm/dev-server/import-deduplicator.d.ts +75 -0
- package/esm/dev-server/import-deduplicator.d.ts.map +1 -0
- package/esm/dev-server/import-deduplicator.js +288 -0
- package/esm/dev-server/import-deduplicator.js.map +1 -0
- package/esm/dev-server/import-deduplicator.test.d.ts +7 -0
- package/esm/dev-server/import-deduplicator.test.d.ts.map +1 -0
- package/esm/dev-server/import-transformer.d.ts +17 -0
- package/esm/dev-server/import-transformer.d.ts.map +1 -0
- package/esm/dev-server/import-transformer.js +221 -0
- package/esm/dev-server/import-transformer.js.map +1 -0
- package/esm/dev-server/index.d.ts +1 -0
- package/esm/dev-server/index.d.ts.map +1 -0
- package/esm/dev-server/layer-executor.d.ts +64 -0
- package/esm/dev-server/layer-executor.d.ts.map +1 -0
- package/esm/dev-server/layer-executor.js +338 -0
- package/esm/dev-server/layer-executor.js.map +1 -0
- package/esm/dev-server/manifest-manager.d.ts +80 -0
- package/esm/dev-server/manifest-manager.d.ts.map +1 -0
- package/esm/dev-server/manifest-manager.js +107 -0
- package/esm/dev-server/manifest-manager.js.map +1 -0
- package/esm/dev-server/module-loader.d.ts +111 -0
- package/esm/dev-server/module-loader.d.ts.map +1 -0
- package/esm/dev-server/module-loader.js +276 -0
- package/esm/dev-server/module-loader.js.map +1 -0
- package/esm/dev-server/package-json-manager.d.ts +16 -0
- package/esm/dev-server/package-json-manager.d.ts.map +1 -0
- package/esm/dev-server/package-json-manager.js +20 -0
- package/esm/dev-server/package-json-manager.js.map +1 -0
- package/esm/dev-server/parse-imports.d.ts +34 -0
- package/esm/dev-server/parse-imports.d.ts.map +1 -0
- package/esm/dev-server/parse-imports.js +426 -0
- package/esm/dev-server/parse-imports.js.map +1 -0
- package/esm/dev-server/path.d.ts +39 -0
- package/esm/dev-server/path.d.ts.map +1 -0
- package/esm/dev-server/path.js +56 -0
- package/esm/dev-server/path.js.map +1 -0
- package/esm/dev-server/runtime-import-helper.d.ts +8 -0
- package/esm/dev-server/runtime-import-helper.d.ts.map +1 -0
- package/esm/dev-server/runtime-import-helper.js +158 -0
- package/esm/dev-server/runtime-import-helper.js.map +1 -0
- package/esm/dev-server/special-files-collector.d.ts +114 -0
- package/esm/dev-server/special-files-collector.d.ts.map +1 -0
- package/esm/dev-server/special-files-collector.js +212 -0
- package/esm/dev-server/special-files-collector.js.map +1 -0
- package/esm/dev-server/start-development-server.d.ts +7 -0
- package/esm/dev-server/start-development-server.d.ts.map +1 -0
- package/esm/dev-server/start-development-server.js +21 -0
- package/esm/dev-server/start-development-server.js.map +1 -0
- package/esm/dev-server/transpile-file.d.ts +11 -0
- package/esm/dev-server/transpile-file.d.ts.map +1 -0
- package/esm/dev-server/transpile-file.js +30 -0
- package/esm/dev-server/transpile-file.js.map +1 -0
- package/esm/dev-server/tsconfig-manager.d.ts +45 -0
- package/esm/dev-server/tsconfig-manager.d.ts.map +1 -0
- package/esm/dev-server/tsconfig-manager.js +107 -0
- package/esm/dev-server/tsconfig-manager.js.map +1 -0
- package/esm/dev-server/type-generator.d.ts +115 -0
- package/esm/dev-server/type-generator.d.ts.map +1 -0
- package/esm/dev-server/type-generator.js +566 -0
- package/esm/dev-server/type-generator.js.map +1 -0
- package/esm/dev-server/types.d.ts +30 -0
- package/esm/dev-server/types.d.ts.map +1 -0
- package/esm/dev-server/utils.d.ts +15 -0
- package/esm/dev-server/utils.d.ts.map +1 -0
- package/esm/dev-server/utils.js +41 -0
- package/esm/dev-server/utils.js.map +1 -0
- package/esm/encryption/encrypt.d.ts +23 -0
- package/esm/encryption/encrypt.d.ts.map +1 -0
- package/esm/encryption/encrypt.js +85 -0
- package/esm/encryption/encrypt.js.map +1 -0
- package/esm/encryption/hash.d.ts +17 -0
- package/esm/encryption/hash.d.ts.map +1 -0
- package/esm/encryption/hash.js +26 -0
- package/esm/encryption/hash.js.map +1 -0
- package/esm/encryption/index.d.ts +5 -0
- package/esm/encryption/index.d.ts.map +1 -0
- package/esm/encryption/password.d.ts +23 -0
- package/esm/encryption/password.d.ts.map +1 -0
- package/esm/encryption/password.js +72 -0
- package/esm/encryption/password.js.map +1 -0
- package/esm/encryption/types.d.ts +51 -0
- package/esm/encryption/types.d.ts.map +1 -0
- package/esm/generations/add-command.action.d.ts +3 -0
- package/esm/generations/add-command.action.d.ts.map +1 -0
- package/esm/generations/add-command.action.js +382 -0
- package/esm/generations/add-command.action.js.map +1 -0
- package/esm/generations/stubs.d.ts +2 -0
- package/esm/generations/stubs.d.ts.map +1 -0
- package/esm/generations/stubs.js +81 -0
- package/esm/generations/stubs.js.map +1 -0
- package/esm/http/config.d.ts +10 -0
- package/esm/http/config.d.ts.map +1 -0
- package/esm/http/config.js +22 -0
- package/esm/http/config.js.map +1 -0
- package/esm/http/context/request-context.d.ts +47 -0
- package/esm/http/context/request-context.d.ts.map +1 -0
- package/esm/http/context/request-context.js +52 -0
- package/esm/http/context/request-context.js.map +1 -0
- package/esm/http/createHttpApplication.d.ts +3 -0
- package/esm/http/createHttpApplication.d.ts.map +1 -0
- package/esm/http/createHttpApplication.js +28 -0
- package/esm/http/createHttpApplication.js.map +1 -0
- package/esm/http/database/RequestLog.d.ts +16 -0
- package/esm/http/database/RequestLog.d.ts.map +1 -0
- package/esm/http/database/RequestLog.js +26 -0
- package/esm/http/database/RequestLog.js.map +1 -0
- package/esm/http/errors/errors.d.ts +39 -0
- package/esm/http/errors/errors.d.ts.map +1 -0
- package/esm/http/errors/errors.js +76 -0
- package/esm/http/errors/errors.js.map +1 -0
- package/esm/http/errors/index.d.ts +2 -0
- package/esm/http/errors/index.d.ts.map +1 -0
- package/esm/http/events.d.ts +4 -0
- package/esm/http/events.d.ts.map +1 -0
- package/esm/http/events.js +26 -0
- package/esm/http/events.js.map +1 -0
- package/esm/http/index.d.ts +17 -0
- package/esm/http/index.d.ts.map +1 -0
- package/esm/http/middleware/cache-response-middleware.d.ts +34 -0
- package/esm/http/middleware/cache-response-middleware.d.ts.map +1 -0
- package/esm/http/middleware/cache-response-middleware.js +45 -0
- package/esm/http/middleware/cache-response-middleware.js.map +1 -0
- package/esm/http/middleware/index.d.ts +3 -0
- package/esm/http/middleware/index.d.ts.map +1 -0
- package/esm/http/middleware/inject-request-context.d.ts +21 -0
- package/esm/http/middleware/inject-request-context.d.ts.map +1 -0
- package/esm/http/middleware/inject-request-context.js +119 -0
- package/esm/http/middleware/inject-request-context.js.map +1 -0
- package/esm/http/plugins.d.ts +3 -0
- package/esm/http/plugins.d.ts.map +1 -0
- package/esm/http/plugins.js +36 -0
- package/esm/http/plugins.js.map +1 -0
- package/esm/http/request-controller.d.ts +11 -0
- package/esm/http/request-controller.d.ts.map +1 -0
- package/esm/http/request-controller.js +9 -0
- package/esm/http/request-controller.js.map +1 -0
- package/esm/http/request.d.ts +400 -0
- package/esm/http/request.d.ts.map +1 -0
- package/esm/http/request.js +766 -0
- package/esm/http/request.js.map +1 -0
- package/esm/http/response.d.ts +374 -0
- package/esm/http/response.d.ts.map +1 -0
- package/esm/http/response.js +974 -0
- package/esm/http/response.js.map +1 -0
- package/esm/http/server.d.ts +8 -0
- package/esm/http/server.d.ts.map +1 -0
- package/esm/http/server.js +15 -0
- package/esm/http/server.js.map +1 -0
- package/esm/http/types.d.ts +230 -0
- package/esm/http/types.d.ts.map +1 -0
- package/esm/http/uploaded-file.d.ts +459 -0
- package/esm/http/uploaded-file.d.ts.map +1 -0
- package/esm/http/uploaded-file.js +709 -0
- package/esm/http/uploaded-file.js.map +1 -0
- package/esm/http/uploads-config.d.ts +26 -0
- package/esm/http/uploads-config.d.ts.map +1 -0
- package/esm/http/uploads-config.js +35 -0
- package/esm/http/uploads-config.js.map +1 -0
- package/esm/http/uploads-types.d.ts +236 -0
- package/esm/http/uploads-types.d.ts.map +1 -0
- package/esm/image/image.d.ts +388 -0
- package/esm/image/image.d.ts.map +1 -0
- package/esm/image/image.js +602 -0
- package/esm/image/image.js.map +1 -0
- package/esm/image/index.d.ts +2 -0
- package/esm/image/index.d.ts.map +1 -0
- package/esm/index.d.ts +34 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +1 -0
- package/esm/index.js.map +1 -0
- package/esm/logger/index.d.ts +3 -0
- package/esm/logger/index.d.ts.map +1 -0
- package/esm/logger/logger.d.ts +3 -0
- package/esm/logger/logger.d.ts.map +1 -0
- package/esm/logger/logger.js +16 -0
- package/esm/logger/logger.js.map +1 -0
- package/esm/logger/types.d.ts +39 -0
- package/esm/logger/types.d.ts.map +1 -0
- package/esm/mail/config.d.ts +80 -0
- package/esm/mail/config.d.ts.map +1 -0
- package/esm/mail/config.js +158 -0
- package/esm/mail/config.js.map +1 -0
- package/esm/mail/events.d.ts +96 -0
- package/esm/mail/events.d.ts.map +1 -0
- package/esm/mail/events.js +123 -0
- package/esm/mail/events.js.map +1 -0
- package/esm/mail/index.d.ts +10 -0
- package/esm/mail/index.d.ts.map +1 -0
- package/esm/mail/mail.d.ts +175 -0
- package/esm/mail/mail.d.ts.map +1 -0
- package/esm/mail/mail.js +286 -0
- package/esm/mail/mail.js.map +1 -0
- package/esm/mail/mailer-pool.d.ts +27 -0
- package/esm/mail/mailer-pool.d.ts.map +1 -0
- package/esm/mail/mailer-pool.js +215 -0
- package/esm/mail/mailer-pool.js.map +1 -0
- package/esm/mail/react-mail.d.ts +12 -0
- package/esm/mail/react-mail.d.ts.map +1 -0
- package/esm/mail/react-mail.js +40 -0
- package/esm/mail/react-mail.js.map +1 -0
- package/esm/mail/send-mail.d.ts +33 -0
- package/esm/mail/send-mail.d.ts.map +1 -0
- package/esm/mail/send-mail.js +313 -0
- package/esm/mail/send-mail.js.map +1 -0
- package/esm/mail/test-mailbox.d.ts +110 -0
- package/esm/mail/test-mailbox.d.ts.map +1 -0
- package/esm/mail/test-mailbox.js +143 -0
- package/esm/mail/test-mailbox.js.map +1 -0
- package/esm/mail/types.d.ts +264 -0
- package/esm/mail/types.d.ts.map +1 -0
- package/esm/mail/types.js +13 -0
- package/esm/mail/types.js.map +1 -0
- package/esm/manifest/manifest-manager.d.ts +74 -0
- package/esm/manifest/manifest-manager.d.ts.map +1 -0
- package/esm/manifest/manifest-manager.js +88 -0
- package/esm/manifest/manifest-manager.js.map +1 -0
- package/esm/production/build-app-production.d.ts +6 -0
- package/esm/production/build-app-production.d.ts.map +1 -0
- package/esm/production/build-app-production.js +8 -0
- package/esm/production/build-app-production.js.map +1 -0
- package/esm/production/esbuild-plugins.d.ts +5 -0
- package/esm/production/esbuild-plugins.d.ts.map +1 -0
- package/esm/production/esbuild-plugins.js +23 -0
- package/esm/production/esbuild-plugins.js.map +1 -0
- package/esm/production/production-builder.d.ts +76 -0
- package/esm/production/production-builder.d.ts.map +1 -0
- package/esm/production/production-builder.js +254 -0
- package/esm/production/production-builder.js.map +1 -0
- package/esm/react/index.d.ts +14 -0
- package/esm/react/index.d.ts.map +1 -0
- package/esm/react/index.js +65 -0
- package/esm/react/index.js.map +1 -0
- package/esm/repositories/adapters/cascade/cascade-adapter.d.ts +85 -0
- package/esm/repositories/adapters/cascade/cascade-adapter.d.ts.map +1 -0
- package/esm/repositories/adapters/cascade/cascade-adapter.js +179 -0
- package/esm/repositories/adapters/cascade/cascade-adapter.js.map +1 -0
- package/esm/repositories/adapters/cascade/cascade-query-builder.d.ts +141 -0
- package/esm/repositories/adapters/cascade/cascade-query-builder.d.ts.map +1 -0
- package/esm/repositories/adapters/cascade/cascade-query-builder.js +281 -0
- package/esm/repositories/adapters/cascade/cascade-query-builder.js.map +1 -0
- package/esm/repositories/adapters/cascade/filter-applicator.d.ts +126 -0
- package/esm/repositories/adapters/cascade/filter-applicator.d.ts.map +1 -0
- package/esm/repositories/adapters/cascade/filter-applicator.js +549 -0
- package/esm/repositories/adapters/cascade/filter-applicator.js.map +1 -0
- package/esm/repositories/adapters/cascade/index.d.ts +7 -0
- package/esm/repositories/adapters/cascade/index.d.ts.map +1 -0
- package/esm/repositories/contracts/index.d.ts +8 -0
- package/esm/repositories/contracts/index.d.ts.map +1 -0
- package/esm/repositories/contracts/query-builder.contract.d.ts +320 -0
- package/esm/repositories/contracts/query-builder.contract.d.ts.map +1 -0
- package/esm/repositories/contracts/repository-adapter.contract.d.ts +183 -0
- package/esm/repositories/contracts/repository-adapter.contract.d.ts.map +1 -0
- package/esm/repositories/contracts/types.d.ts +328 -0
- package/esm/repositories/contracts/types.d.ts.map +1 -0
- package/esm/repositories/index.d.ts +8 -0
- package/esm/repositories/index.d.ts.map +1 -0
- package/esm/repositories/repository.manager.d.ts +694 -0
- package/esm/repositories/repository.manager.d.ts.map +1 -0
- package/esm/repositories/repository.manager.js +1123 -0
- package/esm/repositories/repository.manager.js.map +1 -0
- package/esm/resource/define-resource.d.ts +65 -0
- package/esm/resource/define-resource.d.ts.map +1 -0
- package/esm/resource/define-resource.js +62 -0
- package/esm/resource/define-resource.js.map +1 -0
- package/esm/resource/index.d.ts +6 -0
- package/esm/resource/index.d.ts.map +1 -0
- package/esm/resource/register-resource.d.ts +21 -0
- package/esm/resource/register-resource.d.ts.map +1 -0
- package/esm/resource/register-resource.js +23 -0
- package/esm/resource/register-resource.js.map +1 -0
- package/esm/resource/resource-field-builder.d.ts +104 -0
- package/esm/resource/resource-field-builder.d.ts.map +1 -0
- package/esm/resource/resource-field-builder.js +260 -0
- package/esm/resource/resource-field-builder.js.map +1 -0
- package/esm/resource/resource.d.ts +217 -0
- package/esm/resource/resource.d.ts.map +1 -0
- package/esm/resource/resource.js +307 -0
- package/esm/resource/resource.js.map +1 -0
- package/esm/resource/types.d.ts +74 -0
- package/esm/resource/types.d.ts.map +1 -0
- package/esm/restful/index.d.ts +2 -0
- package/esm/restful/index.d.ts.map +1 -0
- package/esm/restful/restful.d.ts +110 -0
- package/esm/restful/restful.d.ts.map +1 -0
- package/esm/restful/restful.js +317 -0
- package/esm/restful/restful.js.map +1 -0
- package/esm/retry/index.d.ts +3 -0
- package/esm/retry/index.d.ts.map +1 -0
- package/esm/retry/retry.d.ts +21 -0
- package/esm/retry/retry.d.ts.map +1 -0
- package/esm/retry/retry.js +39 -0
- package/esm/retry/retry.js.map +1 -0
- package/esm/retry/types.d.ts +27 -0
- package/esm/retry/types.d.ts.map +1 -0
- package/esm/router/index.d.ts +3 -0
- package/esm/router/index.d.ts.map +1 -0
- package/esm/router/route-builder.d.ts +120 -0
- package/esm/router/route-builder.d.ts.map +1 -0
- package/esm/router/route-builder.js +201 -0
- package/esm/router/route-builder.js.map +1 -0
- package/esm/router/route-registry.d.ts +30 -0
- package/esm/router/route-registry.d.ts.map +1 -0
- package/esm/router/route-registry.js +67 -0
- package/esm/router/route-registry.js.map +1 -0
- package/esm/router/route.d.ts +34 -0
- package/esm/router/route.d.ts.map +1 -0
- package/esm/router/router.d.ts +188 -0
- package/esm/router/router.d.ts.map +1 -0
- package/esm/router/router.js +605 -0
- package/esm/router/router.js.map +1 -0
- package/esm/router/types.d.ts +254 -0
- package/esm/router/types.d.ts.map +1 -0
- package/esm/storage/config.d.ts +15 -0
- package/esm/storage/config.d.ts.map +1 -0
- package/esm/storage/config.js +32 -0
- package/esm/storage/config.js.map +1 -0
- package/esm/storage/context/storage-driver-context.d.ts +69 -0
- package/esm/storage/context/storage-driver-context.d.ts.map +1 -0
- package/esm/storage/context/storage-driver-context.js +80 -0
- package/esm/storage/context/storage-driver-context.js.map +1 -0
- package/esm/storage/drivers/cloud-driver.d.ts +206 -0
- package/esm/storage/drivers/cloud-driver.d.ts.map +1 -0
- package/esm/storage/drivers/cloud-driver.js +721 -0
- package/esm/storage/drivers/cloud-driver.js.map +1 -0
- package/esm/storage/drivers/do-spaces-driver.d.ts +43 -0
- package/esm/storage/drivers/do-spaces-driver.d.ts.map +1 -0
- package/esm/storage/drivers/do-spaces-driver.js +50 -0
- package/esm/storage/drivers/do-spaces-driver.js.map +1 -0
- package/esm/storage/drivers/local-driver.d.ts +151 -0
- package/esm/storage/drivers/local-driver.d.ts.map +1 -0
- package/esm/storage/drivers/local-driver.js +448 -0
- package/esm/storage/drivers/local-driver.js.map +1 -0
- package/esm/storage/drivers/r2-driver.d.ts +47 -0
- package/esm/storage/drivers/r2-driver.d.ts.map +1 -0
- package/esm/storage/drivers/r2-driver.js +60 -0
- package/esm/storage/drivers/r2-driver.js.map +1 -0
- package/esm/storage/drivers/s3-driver.d.ts +32 -0
- package/esm/storage/drivers/s3-driver.d.ts.map +1 -0
- package/esm/storage/drivers/s3-driver.js +37 -0
- package/esm/storage/drivers/s3-driver.js.map +1 -0
- package/esm/storage/index.d.ts +13 -0
- package/esm/storage/index.d.ts.map +1 -0
- package/esm/storage/scoped-storage.d.ts +547 -0
- package/esm/storage/scoped-storage.d.ts.map +1 -0
- package/esm/storage/scoped-storage.js +739 -0
- package/esm/storage/scoped-storage.js.map +1 -0
- package/esm/storage/storage-file.d.ts +222 -0
- package/esm/storage/storage-file.d.ts.map +1 -0
- package/esm/storage/storage-file.js +376 -0
- package/esm/storage/storage-file.js.map +1 -0
- package/esm/storage/storage.d.ts +583 -0
- package/esm/storage/storage.d.ts.map +1 -0
- package/esm/storage/storage.js +948 -0
- package/esm/storage/storage.js.map +1 -0
- package/esm/storage/types.d.ts +966 -0
- package/esm/storage/types.d.ts.map +1 -0
- package/esm/storage/utils/mime.d.ts +33 -0
- package/esm/storage/utils/mime.d.ts.map +1 -0
- package/esm/storage/utils/mime.js +45 -0
- package/esm/storage/utils/mime.js.map +1 -0
- package/esm/tests/index.d.ts +9 -0
- package/esm/tests/index.d.ts.map +1 -0
- package/esm/tests/start-http-development-server.d.ts +15 -0
- package/esm/tests/start-http-development-server.d.ts.map +1 -0
- package/esm/tests/start-http-development-server.js +69 -0
- package/esm/tests/start-http-development-server.js.map +1 -0
- package/esm/tests/test-helpers.d.ts +43 -0
- package/esm/tests/test-helpers.d.ts.map +1 -0
- package/esm/tests/test-helpers.js +86 -0
- package/esm/tests/test-helpers.js.map +1 -0
- package/esm/tests/vitest-setup.d.ts +10 -0
- package/esm/tests/vitest-setup.d.ts.map +1 -0
- package/esm/tests/vitest-setup.js +36 -0
- package/esm/tests/vitest-setup.js.map +1 -0
- package/esm/use-cases/index.d.ts +7 -0
- package/esm/use-cases/index.d.ts.map +1 -0
- package/esm/use-cases/types.d.ts +267 -0
- package/esm/use-cases/types.d.ts.map +1 -0
- package/esm/use-cases/use-case-events.d.ts +33 -0
- package/esm/use-cases/use-case-events.d.ts.map +1 -0
- package/esm/use-cases/use-case-events.js +65 -0
- package/esm/use-cases/use-case-events.js.map +1 -0
- package/esm/use-cases/use-case-pipeline.d.ts +29 -0
- package/esm/use-cases/use-case-pipeline.d.ts.map +1 -0
- package/esm/use-cases/use-case-pipeline.js +45 -0
- package/esm/use-cases/use-case-pipeline.js.map +1 -0
- package/esm/use-cases/use-case.d.ts +27 -0
- package/esm/use-cases/use-case.d.ts.map +1 -0
- package/esm/use-cases/use-case.errors.d.ts +6 -0
- package/esm/use-cases/use-case.errors.d.ts.map +1 -0
- package/esm/use-cases/use-case.errors.js +8 -0
- package/esm/use-cases/use-case.errors.js.map +1 -0
- package/esm/use-cases/use-case.js +138 -0
- package/esm/use-cases/use-case.js.map +1 -0
- package/esm/use-cases/use-cases-registry.d.ts +38 -0
- package/esm/use-cases/use-cases-registry.d.ts.map +1 -0
- package/esm/use-cases/use-cases-registry.js +92 -0
- package/esm/use-cases/use-cases-registry.js.map +1 -0
- package/esm/utils/app-log.d.ts +8 -0
- package/esm/utils/app-log.d.ts.map +1 -0
- package/esm/utils/app-log.js +7 -0
- package/esm/utils/app-log.js.map +1 -0
- package/esm/utils/cleanup-temp-files.d.ts +5 -0
- package/esm/utils/cleanup-temp-files.d.ts.map +1 -0
- package/esm/utils/database-log.d.ts +25 -0
- package/esm/utils/database-log.d.ts.map +1 -0
- package/esm/utils/database-log.js +43 -0
- package/esm/utils/database-log.js.map +1 -0
- package/esm/utils/download-file.d.ts +3 -0
- package/esm/utils/download-file.d.ts.map +1 -0
- package/esm/utils/environment.d.ts +4 -0
- package/esm/utils/environment.d.ts.map +1 -0
- package/esm/utils/environment.js +6 -0
- package/esm/utils/environment.js.map +1 -0
- package/esm/utils/framework-vesion.d.ts +6 -0
- package/esm/utils/framework-vesion.d.ts.map +1 -0
- package/esm/utils/framework-vesion.js +18 -0
- package/esm/utils/framework-vesion.js.map +1 -0
- package/esm/utils/get-localized.d.ts +10 -0
- package/esm/utils/get-localized.d.ts.map +1 -0
- package/esm/utils/get-localized.js +15 -0
- package/esm/utils/get-localized.js.map +1 -0
- package/esm/utils/index.d.ts +12 -0
- package/esm/utils/index.d.ts.map +1 -0
- package/esm/utils/internal.d.ts +4 -0
- package/esm/utils/internal.d.ts.map +1 -0
- package/esm/utils/paths.d.ts +55 -0
- package/esm/utils/paths.d.ts.map +1 -0
- package/esm/utils/paths.js +89 -0
- package/esm/utils/paths.js.map +1 -0
- package/esm/utils/promise-all-object.d.ts +8 -0
- package/esm/utils/promise-all-object.d.ts.map +1 -0
- package/esm/utils/promise-all-object.js +12 -0
- package/esm/utils/promise-all-object.js.map +1 -0
- package/esm/utils/queue.d.ts +49 -0
- package/esm/utils/queue.d.ts.map +1 -0
- package/esm/utils/queue.js +89 -0
- package/esm/utils/queue.js.map +1 -0
- package/esm/utils/sleep.d.ts +2 -0
- package/esm/utils/sleep.d.ts.map +1 -0
- package/esm/utils/sleep.js +3 -0
- package/esm/utils/sleep.js.map +1 -0
- package/esm/utils/sluggable.d.ts +5 -0
- package/esm/utils/sluggable.d.ts.map +1 -0
- package/esm/utils/sluggable.js +15 -0
- package/esm/utils/sluggable.js.map +1 -0
- package/esm/utils/to-json.d.ts +2 -0
- package/esm/utils/to-json.d.ts.map +1 -0
- package/esm/utils/to-json.js +26 -0
- package/esm/utils/to-json.js.map +1 -0
- package/esm/utils/types.d.ts +22 -0
- package/esm/utils/types.d.ts.map +1 -0
- package/esm/utils/urls.d.ts +21 -0
- package/esm/utils/urls.d.ts.map +1 -0
- package/esm/utils/urls.js +31 -0
- package/esm/utils/urls.js.map +1 -0
- package/esm/validation/database/exists-except-current-id.d.ts +7 -0
- package/esm/validation/database/exists-except-current-id.d.ts.map +1 -0
- package/esm/validation/database/exists-except-current-id.js +24 -0
- package/esm/validation/database/exists-except-current-id.js.map +1 -0
- package/esm/validation/database/exists-except-current-user.d.ts +7 -0
- package/esm/validation/database/exists-except-current-user.d.ts.map +1 -0
- package/esm/validation/database/exists-except-current-user.js +26 -0
- package/esm/validation/database/exists-except-current-user.js.map +1 -0
- package/esm/validation/database/exists.d.ts +7 -0
- package/esm/validation/database/exists.d.ts.map +1 -0
- package/esm/validation/database/exists.js +22 -0
- package/esm/validation/database/exists.js.map +1 -0
- package/esm/validation/database/index.d.ts +12 -0
- package/esm/validation/database/index.d.ts.map +1 -0
- package/esm/validation/database/types.d.ts +68 -0
- package/esm/validation/database/types.d.ts.map +1 -0
- package/esm/validation/database/unique-except-current-id.d.ts +7 -0
- package/esm/validation/database/unique-except-current-id.d.ts.map +1 -0
- package/esm/validation/database/unique-except-current-id.js +24 -0
- package/esm/validation/database/unique-except-current-id.js.map +1 -0
- package/esm/validation/database/unique-except-current-user.d.ts +7 -0
- package/esm/validation/database/unique-except-current-user.d.ts.map +1 -0
- package/esm/validation/database/unique-except-current-user.js +29 -0
- package/esm/validation/database/unique-except-current-user.js.map +1 -0
- package/esm/validation/database/unique.d.ts +7 -0
- package/esm/validation/database/unique.d.ts.map +1 -0
- package/esm/validation/database/unique.js +31 -0
- package/esm/validation/database/unique.js.map +1 -0
- package/esm/validation/file/file.d.ts +22 -0
- package/esm/validation/file/file.d.ts.map +1 -0
- package/esm/validation/file/file.js +60 -0
- package/esm/validation/file/file.js.map +1 -0
- package/esm/validation/file/index.d.ts +6 -0
- package/esm/validation/file/index.d.ts.map +1 -0
- package/esm/validation/index.d.ts +16 -0
- package/esm/validation/index.d.ts.map +1 -0
- package/esm/validation/init.d.ts +7 -0
- package/esm/validation/init.d.ts.map +1 -0
- package/esm/validation/init.js +36 -0
- package/esm/validation/init.js.map +1 -0
- package/esm/validation/plugins/database-plugin.d.ts +14 -0
- package/esm/validation/plugins/database-plugin.d.ts.map +1 -0
- package/esm/validation/plugins/database-plugin.js +83 -0
- package/esm/validation/plugins/database-plugin.js.map +1 -0
- package/esm/validation/plugins/file-plugin.d.ts +11 -0
- package/esm/validation/plugins/file-plugin.d.ts.map +1 -0
- package/esm/validation/plugins/file-plugin.js +17 -0
- package/esm/validation/plugins/file-plugin.js.map +1 -0
- package/esm/validation/plugins/index.d.ts +9 -0
- package/esm/validation/plugins/index.d.ts.map +1 -0
- package/esm/validation/plugins/localized-plugin.d.ts +11 -0
- package/esm/validation/plugins/localized-plugin.d.ts.map +1 -0
- package/esm/validation/plugins/localized-plugin.js +19 -0
- package/esm/validation/plugins/localized-plugin.js.map +1 -0
- package/esm/validation/types.d.ts +87 -0
- package/esm/validation/types.d.ts.map +1 -0
- package/esm/validation/validateAll.d.ts +7 -0
- package/esm/validation/validateAll.d.ts.map +1 -0
- package/esm/validation/validateAll.js +60 -0
- package/esm/validation/validateAll.js.map +1 -0
- package/esm/validation/validators/file-validator.d.ts +62 -0
- package/esm/validation/validators/file-validator.d.ts.map +1 -0
- package/esm/validation/validators/file-validator.js +136 -0
- package/esm/validation/validators/file-validator.js.map +1 -0
- package/esm/validation/validators/index.d.ts +7 -0
- package/esm/validation/validators/index.d.ts.map +1 -0
- package/esm/warlock-config/default-configurations.d.ts +3 -0
- package/esm/warlock-config/default-configurations.d.ts.map +1 -0
- package/esm/warlock-config/default-configurations.js +8 -0
- package/esm/warlock-config/default-configurations.js.map +1 -0
- package/esm/warlock-config/define-config.d.ts +3 -0
- package/esm/warlock-config/define-config.d.ts.map +1 -0
- package/esm/warlock-config/define-config.js +3 -0
- package/esm/warlock-config/define-config.js.map +1 -0
- package/esm/warlock-config/index.d.ts +4 -0
- package/esm/warlock-config/index.d.ts.map +1 -0
- package/esm/warlock-config/types.d.ts +129 -0
- package/esm/warlock-config/types.d.ts.map +1 -0
- package/esm/warlock-config/warlock-config.manager.d.ts +83 -0
- package/esm/warlock-config/warlock-config.manager.d.ts.map +1 -0
- package/esm/warlock-config/warlock-config.manager.js +141 -0
- package/esm/warlock-config/warlock-config.manager.js.map +1 -0
- package/package.json +7 -7
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {addCommandAction}from'../../generations/add-command.action.js';import {command}from'../cli-command.js';const addCommand = command({
|
|
2
|
+
name: "add <features...>",
|
|
3
|
+
description: "Add new feature(s) to the project",
|
|
4
|
+
action: addCommandAction,
|
|
5
|
+
options: [
|
|
6
|
+
{
|
|
7
|
+
text: "--package-manager -pm",
|
|
8
|
+
description: "Package manager to use, if not passed, it will be detected automatically",
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
text: "--list, -l",
|
|
12
|
+
description: "List available features",
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
});export{addCommand};//# sourceMappingURL=add.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.command.js","sources":["../../../src/cli/commands/add.command.ts"],"sourcesContent":[null],"names":[],"mappings":"+GAGO,MAAM,UAAU,GAAG,OAAO,CAAC;AAChC,IAAA,IAAI,EAAE,mBAAmB;AACzB,IAAA,WAAW,EAAE,mCAAmC;AAChD,IAAA,MAAM,EAAE,gBAAgB;AACxB,IAAA,OAAO,EAAE;AACP,QAAA;AACE,YAAA,IAAI,EAAE,uBAAuB;AAC7B,YAAA,WAAW,EAAE,0EAA0E;AACxF,SAAA;AACD,QAAA;AACE,YAAA,IAAI,EAAE,YAAY;AAClB,YAAA,WAAW,EAAE,yBAAyB;AACvC,SAAA;AACF,KAAA;AACF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.command.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/build.command.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,qCAOvB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import {buildAppProduction}from'../../production/build-app-production.js';import {command}from'../cli-command.js';const buildCommand = command({
|
|
2
|
+
name: "build",
|
|
3
|
+
description: "Build the project for production",
|
|
4
|
+
action: buildAppProduction,
|
|
5
|
+
preload: {
|
|
6
|
+
warlockConfig: true,
|
|
7
|
+
},
|
|
8
|
+
});export{buildCommand};//# sourceMappingURL=build.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.command.js","sources":["../../../src/cli/commands/build.command.ts"],"sourcesContent":[null],"names":[],"mappings":"kHAGO,MAAM,YAAY,GAAG,OAAO,CAAC;AAClC,IAAA,IAAI,EAAE,OAAO;AACb,IAAA,WAAW,EAAE,kCAAkC;AAC/C,IAAA,MAAM,EAAE,kBAAkB;AAC1B,IAAA,OAAO,EAAE;AACP,QAAA,aAAa,EAAE,IAAI;AACpB,KAAA;AACF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-database.command.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/create-database.command.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,qBAAqB,qCAiBhC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {createDatabaseAction}from'../../database/create-database-action.js';import {command}from'../cli-command.js';const createDatabaseCommand = command({
|
|
2
|
+
name: "create-database <name>",
|
|
3
|
+
alias: "cdb",
|
|
4
|
+
description: "Create a new database",
|
|
5
|
+
action: createDatabaseAction,
|
|
6
|
+
preload: {
|
|
7
|
+
config: ["database", "log"],
|
|
8
|
+
env: true,
|
|
9
|
+
connectors: ["database"],
|
|
10
|
+
},
|
|
11
|
+
options: [
|
|
12
|
+
{
|
|
13
|
+
text: "--connection, -c",
|
|
14
|
+
description: "Database connection name",
|
|
15
|
+
defaultValue: "default",
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
});export{createDatabaseCommand};//# sourceMappingURL=create-database.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-database.command.js","sources":["../../../src/cli/commands/create-database.command.ts"],"sourcesContent":[null],"names":[],"mappings":"oHAGO,MAAM,qBAAqB,GAAG,OAAO,CAAC;AAC3C,IAAA,IAAI,EAAE,wBAAwB;AAC9B,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,WAAW,EAAE,uBAAuB;AACpC,IAAA,MAAM,EAAE,oBAAoB;AAC5B,IAAA,OAAO,EAAE;AACP,QAAA,MAAM,EAAE,CAAC,UAAU,EAAE,KAAK,CAAC;AAC3B,QAAA,GAAG,EAAE,IAAI;QACT,UAAU,EAAE,CAAC,UAAU,CAAC;AACzB,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA;AACE,YAAA,IAAI,EAAE,kBAAkB;AACxB,YAAA,WAAW,EAAE,0BAA0B;AACvC,YAAA,YAAY,EAAE,SAAS;AACxB,SAAA;AACF,KAAA;AACF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev-server.command.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/dev-server.command.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,qCAiByB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {startDevelopmentServer}from'../../dev-server/start-development-server.js';import {command}from'../cli-command.js';import {displayStartupBanner}from'../cli-commands.utils.js';const devServerCommand = command({
|
|
2
|
+
name: "dev",
|
|
3
|
+
description: "Start development server",
|
|
4
|
+
persistent: true,
|
|
5
|
+
preload: {
|
|
6
|
+
runtimeStrategy: "development",
|
|
7
|
+
config: true,
|
|
8
|
+
bootstrap: true,
|
|
9
|
+
prestart: true,
|
|
10
|
+
connectors: true, // load all connectors
|
|
11
|
+
},
|
|
12
|
+
preAction: async () => {
|
|
13
|
+
await displayStartupBanner({ environment: "development" });
|
|
14
|
+
},
|
|
15
|
+
action: async () => {
|
|
16
|
+
await startDevelopmentServer();
|
|
17
|
+
},
|
|
18
|
+
}).option("--fresh", "Start Fresh Development server");export{devServerCommand};//# sourceMappingURL=dev-server.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev-server.command.js","sources":["../../../src/cli/commands/dev-server.command.ts"],"sourcesContent":[null],"names":[],"mappings":"sLAIO,MAAM,gBAAgB,GAAG,OAAO,CAAC;AACtC,IAAA,IAAI,EAAE,KAAK;AACX,IAAA,WAAW,EAAE,0BAA0B;AACvC,IAAA,UAAU,EAAE,IAAI;AAChB,IAAA,OAAO,EAAE;AACP,QAAA,eAAe,EAAE,aAAa;AAC9B,QAAA,MAAM,EAAE,IAAI;AACZ,QAAA,SAAS,EAAE,IAAI;AACf,QAAA,QAAQ,EAAE,IAAI;QACd,UAAU,EAAE,IAAI;AACjB,KAAA;IACD,SAAS,EAAE,YAAW;QACpB,MAAM,oBAAoB,CAAC,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC,CAAC;KAC5D;IACD,MAAM,EAAE,YAAW;QACjB,MAAM,sBAAsB,EAAE,CAAC;KAChC;AACF,CAAA,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,gCAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drop-tables.command.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/drop-tables.command.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,qCAgB5B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {dropTablesAction}from'../../database/drop-tables-action.js';import {command}from'../cli-command.js';const dropTablesCommand = command({
|
|
2
|
+
name: "drop.tables",
|
|
3
|
+
description: "Drop all tables in the database",
|
|
4
|
+
action: dropTablesAction,
|
|
5
|
+
preload: {
|
|
6
|
+
config: ["database", "log"],
|
|
7
|
+
env: true,
|
|
8
|
+
connectors: ["database", "logger"],
|
|
9
|
+
},
|
|
10
|
+
options: [
|
|
11
|
+
{
|
|
12
|
+
text: "--force, -f",
|
|
13
|
+
description: "Drop tables without confirmation",
|
|
14
|
+
type: "boolean",
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
});export{dropTablesCommand};//# sourceMappingURL=drop-tables.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drop-tables.command.js","sources":["../../../src/cli/commands/drop-tables.command.ts"],"sourcesContent":[null],"names":[],"mappings":"4GAGO,MAAM,iBAAiB,GAAG,OAAO,CAAC;AACvC,IAAA,IAAI,EAAE,aAAa;AACnB,IAAA,WAAW,EAAE,iCAAiC;AAC9C,IAAA,MAAM,EAAE,gBAAgB;AACxB,IAAA,OAAO,EAAE;AACP,QAAA,MAAM,EAAE,CAAC,UAAU,EAAE,KAAK,CAAC;AAC3B,QAAA,GAAG,EAAE,IAAI;AACT,QAAA,UAAU,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC;AACnC,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA;AACE,YAAA,IAAI,EAAE,aAAa;AACnB,YAAA,WAAW,EAAE,kCAAkC;AAC/C,YAAA,IAAI,EAAE,SAAS;AAChB,SAAA;AACF,KAAA;AACF,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const generateCommand: import("../../cli-command").CLICommand;
|
|
2
|
+
export declare const generateModuleCommand: import("../../cli-command").CLICommand;
|
|
3
|
+
export declare const generateControllerCommand: import("../../cli-command").CLICommand;
|
|
4
|
+
export declare const generateServiceCommand: import("../../cli-command").CLICommand;
|
|
5
|
+
export declare const generateModelCommand: import("../../cli-command").CLICommand;
|
|
6
|
+
export declare const generateRepositoryCommand: import("../../cli-command").CLICommand;
|
|
7
|
+
export declare const generateResourceCommand: import("../../cli-command").CLICommand;
|
|
8
|
+
export declare const generateValidationCommand: import("../../cli-command").CLICommand;
|
|
9
|
+
export declare const generateMigrationCommand: import("../../cli-command").CLICommand;
|
|
10
|
+
//# sourceMappingURL=generate.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate.command.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/generate/generate.command.ts"],"names":[],"mappings":"AAyDA,eAAO,MAAM,eAAe,wCAW1B,CAAC;AAGH,eAAO,MAAM,qBAAqB,wCAgBhC,CAAC;AAEH,eAAO,MAAM,yBAAyB,wCAepC,CAAC;AAEH,eAAO,MAAM,sBAAsB,wCAWjC,CAAC;AAEH,eAAO,MAAM,oBAAoB,wCAuB/B,CAAC;AAEH,eAAO,MAAM,yBAAyB,wCAWpC,CAAC;AAEH,eAAO,MAAM,uBAAuB,wCAWlC,CAAC;AAEH,eAAO,MAAM,yBAAyB,wCAepC,CAAC;AAEH,eAAO,MAAM,wBAAwB,wCA2BnC,CAAC"}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import {colors}from'@mongez/copper';import {command}from'../../cli-command.js';import {generateController}from'./generators/controller.generator.js';import {generateMigration}from'./generators/migration.generator.js';import {generateModel}from'./generators/model.generator.js';import {generateModule}from'./generators/module.generator.js';import {generateRepository}from'./generators/repository.generator.js';import {generateResource}from'./generators/resource.generator.js';import {generateService}from'./generators/service.generator.js';import {generateValidation}from'./generators/validation.generator.js';const generators = {
|
|
2
|
+
module: generateModule,
|
|
3
|
+
controller: generateController,
|
|
4
|
+
service: generateService,
|
|
5
|
+
model: generateModel,
|
|
6
|
+
migration: generateMigration,
|
|
7
|
+
repository: generateRepository,
|
|
8
|
+
resource: generateResource,
|
|
9
|
+
validation: generateValidation,
|
|
10
|
+
};
|
|
11
|
+
async function generateCommandAction(data) {
|
|
12
|
+
const commandName = data.args[0];
|
|
13
|
+
if (!commandName) {
|
|
14
|
+
console.log(colors.red("Error: Generator name is required"));
|
|
15
|
+
console.log(colors.yellow("\nAvailable generators:"));
|
|
16
|
+
Object.keys(generators).forEach((cmd) => {
|
|
17
|
+
console.log(colors.cyan(` - ${cmd}`));
|
|
18
|
+
});
|
|
19
|
+
console.log(colors.yellow("\nUsage: warlock generate <generator> <name> [options]"));
|
|
20
|
+
process.exit(1);
|
|
21
|
+
}
|
|
22
|
+
const generator = generators[commandName];
|
|
23
|
+
if (!generator) {
|
|
24
|
+
console.log(colors.red(`Error: Unknown generator "${commandName}"`));
|
|
25
|
+
console.log(colors.yellow("\nAvailable generators:"));
|
|
26
|
+
Object.keys(generators).forEach((cmd) => {
|
|
27
|
+
console.log(colors.cyan(` - ${cmd}`));
|
|
28
|
+
});
|
|
29
|
+
process.exit(1);
|
|
30
|
+
}
|
|
31
|
+
// Remove the command name from args for the generator
|
|
32
|
+
const generatorData = {
|
|
33
|
+
...data,
|
|
34
|
+
args: data.args.slice(1),
|
|
35
|
+
};
|
|
36
|
+
await generator(generatorData);
|
|
37
|
+
}
|
|
38
|
+
// Master generate command
|
|
39
|
+
const generateCommand = command({
|
|
40
|
+
name: "generate <generator> [args...]",
|
|
41
|
+
alias: "g",
|
|
42
|
+
description: "Scaffold a new component",
|
|
43
|
+
action: generateCommandAction,
|
|
44
|
+
options: [
|
|
45
|
+
{
|
|
46
|
+
text: "--force, -f",
|
|
47
|
+
description: "Overwrite existing files",
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
});
|
|
51
|
+
// Individual commands
|
|
52
|
+
const generateModuleCommand = command({
|
|
53
|
+
name: "generate.module <name>",
|
|
54
|
+
alias: "gen.m",
|
|
55
|
+
description: "Generate a new module",
|
|
56
|
+
action: generateModule,
|
|
57
|
+
options: [
|
|
58
|
+
{
|
|
59
|
+
text: "--crud, -c",
|
|
60
|
+
description: "Generate full CRUD scaffold (controllers, model, validation, routes)",
|
|
61
|
+
defaultValue: true,
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
text: "--force, -f",
|
|
65
|
+
description: "Overwrite existing files",
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
});
|
|
69
|
+
const generateControllerCommand = command({
|
|
70
|
+
name: "generate.controller <module>/<name>",
|
|
71
|
+
alias: "gen.c",
|
|
72
|
+
description: "Generate a new controller",
|
|
73
|
+
action: generateController,
|
|
74
|
+
options: [
|
|
75
|
+
{
|
|
76
|
+
text: "--with-validation, -v",
|
|
77
|
+
description: "Generate validation schema and request type",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
text: "--force, -f",
|
|
81
|
+
description: "Overwrite existing files",
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
});
|
|
85
|
+
const generateServiceCommand = command({
|
|
86
|
+
name: "generate.service <module>/<name>",
|
|
87
|
+
alias: "gen.s",
|
|
88
|
+
description: "Generate a new service",
|
|
89
|
+
action: generateService,
|
|
90
|
+
options: [
|
|
91
|
+
{
|
|
92
|
+
text: "--force, -f",
|
|
93
|
+
description: "Overwrite existing files",
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
});
|
|
97
|
+
const generateModelCommand = command({
|
|
98
|
+
name: "generate.model <module>/<name>",
|
|
99
|
+
alias: "gen.md",
|
|
100
|
+
description: "Generate a new model with migration",
|
|
101
|
+
action: generateModel,
|
|
102
|
+
options: [
|
|
103
|
+
{
|
|
104
|
+
text: "--with-resource, -rs",
|
|
105
|
+
description: "Generate resource",
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
text: "--table <name>",
|
|
109
|
+
description: "Specify table name",
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
text: "--force, -f",
|
|
113
|
+
description: "Overwrite existing files",
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
text: "--timestamps [bool]",
|
|
117
|
+
description: "Include timestamps in migration (default: true)",
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
});
|
|
121
|
+
const generateRepositoryCommand = command({
|
|
122
|
+
name: "generate.repository <module>/<name>",
|
|
123
|
+
alias: "gen.r",
|
|
124
|
+
description: "Generate a new repository",
|
|
125
|
+
action: generateRepository,
|
|
126
|
+
options: [
|
|
127
|
+
{
|
|
128
|
+
text: "--force, -f",
|
|
129
|
+
description: "Overwrite existing files",
|
|
130
|
+
},
|
|
131
|
+
],
|
|
132
|
+
});
|
|
133
|
+
const generateResourceCommand = command({
|
|
134
|
+
name: "generate.resource <module>/<name>",
|
|
135
|
+
alias: "gen.rs",
|
|
136
|
+
description: "Generate a new resource",
|
|
137
|
+
action: generateResource,
|
|
138
|
+
options: [
|
|
139
|
+
{
|
|
140
|
+
text: "--force, -f",
|
|
141
|
+
description: "Overwrite existing files",
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
});
|
|
145
|
+
const generateValidationCommand = command({
|
|
146
|
+
name: "generate.validation <module>/<name>",
|
|
147
|
+
alias: "gen.v",
|
|
148
|
+
description: "Generate a new validation schema",
|
|
149
|
+
action: generateValidation,
|
|
150
|
+
options: [
|
|
151
|
+
{
|
|
152
|
+
text: "--with-request, -r",
|
|
153
|
+
description: "Generate request type",
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
text: "--force, -f",
|
|
157
|
+
description: "Overwrite existing files",
|
|
158
|
+
},
|
|
159
|
+
],
|
|
160
|
+
});
|
|
161
|
+
const generateMigrationCommand = command({
|
|
162
|
+
name: "generate.migration <model-path>",
|
|
163
|
+
alias: "gen.mig",
|
|
164
|
+
description: "Generate a new migration for a model",
|
|
165
|
+
action: generateMigration,
|
|
166
|
+
options: [
|
|
167
|
+
{
|
|
168
|
+
text: "--force, -f",
|
|
169
|
+
description: "Overwrite existing files",
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
text: "--add <columns>",
|
|
173
|
+
description: "Columns to add (DSL: name:type:modifier,...)",
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
text: "--drop <columns>",
|
|
177
|
+
description: "Columns to drop (comma-separated names)",
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
text: "--rename <columns>",
|
|
181
|
+
description: "Columns to rename (DSL: old:new,...)",
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
text: "--timestamps [bool]",
|
|
185
|
+
description: "Include timestamps (default: true)",
|
|
186
|
+
},
|
|
187
|
+
],
|
|
188
|
+
});export{generateCommand,generateControllerCommand,generateMigrationCommand,generateModelCommand,generateModuleCommand,generateRepositoryCommand,generateResourceCommand,generateServiceCommand,generateValidationCommand};//# sourceMappingURL=generate.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate.command.js","sources":["../../../../src/cli/commands/generate/generate.command.ts"],"sourcesContent":[null],"names":[],"mappings":"imBAYA,MAAM,UAAU,GAA+D;AAC7E,IAAA,MAAM,EAAE,cAAc;AACtB,IAAA,UAAU,EAAE,kBAAkB;AAC9B,IAAA,OAAO,EAAE,eAAe;AACxB,IAAA,KAAK,EAAE,aAAa;AACpB,IAAA,SAAS,EAAE,iBAAiB;AAC5B,IAAA,UAAU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AAW,EAAE,yCAAyC;AACvD,SAAA;AACD,QAAA;AACE,YAAA,IAAI,EAAE,oBAAoB;AAC1B,YAAA,WAAW,EAAE,sCAAsC;AACpD,SAAA;AACD,QAAA;AACE,YAAA,IAAI,EAAE,qBAAqB;AAC3B,YAAA,WAAW,EAAE,oCAAoC;AAClD,SAAA;AACF,KAAA;AACF,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type ParsedColumn = {
|
|
2
|
+
name: string;
|
|
3
|
+
helper: string;
|
|
4
|
+
modifiers: string[];
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Parses a subset DSL for column schemas:
|
|
8
|
+
* "phone:text:nullable,price:decimal:notNullable:unsigned"
|
|
9
|
+
*/
|
|
10
|
+
export declare function parseColumnDsl(input: string): ParsedColumn[];
|
|
11
|
+
//# sourceMappingURL=column-dsl-parser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-dsl-parser.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/generate/generators/column-dsl-parser.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC;AAwBF;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,EAAE,CAwB5D"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const typeMapping = {
|
|
2
|
+
text: "text",
|
|
3
|
+
string: "string",
|
|
4
|
+
integer: "integer",
|
|
5
|
+
int: "integer",
|
|
6
|
+
bigInteger: "bigInteger",
|
|
7
|
+
bigInt: "bigInteger",
|
|
8
|
+
boolean: "boolCol",
|
|
9
|
+
bool: "boolCol",
|
|
10
|
+
uuid: "uuid",
|
|
11
|
+
timestamp: "timestamp",
|
|
12
|
+
date: "date",
|
|
13
|
+
json: "json",
|
|
14
|
+
object: "objectCol",
|
|
15
|
+
decimal: "decimal",
|
|
16
|
+
float: "float",
|
|
17
|
+
enum: "enumCol",
|
|
18
|
+
set: "setCol",
|
|
19
|
+
blob: "blobCol",
|
|
20
|
+
binary: "blobCol",
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Parses a subset DSL for column schemas:
|
|
24
|
+
* "phone:text:nullable,price:decimal:notNullable:unsigned"
|
|
25
|
+
*/
|
|
26
|
+
function parseColumnDsl(input) {
|
|
27
|
+
if (!input)
|
|
28
|
+
return [];
|
|
29
|
+
const columns = input.split(",").map((c) => c.trim()).filter(Boolean);
|
|
30
|
+
return columns.map((colStr) => {
|
|
31
|
+
const parts = colStr.split(":").map((p) => p.trim());
|
|
32
|
+
const name = parts[0];
|
|
33
|
+
const rawType = parts[1] || "string";
|
|
34
|
+
const helper = typeMapping[rawType] || rawType; // fallback to raw string if not mapped
|
|
35
|
+
const modifiers = [];
|
|
36
|
+
for (let i = 2; i < parts.length; i++) {
|
|
37
|
+
let modifier = parts[i];
|
|
38
|
+
// Basic modifiers that translates to builder calls
|
|
39
|
+
modifiers.push(`.${modifier}()`);
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
name,
|
|
43
|
+
helper,
|
|
44
|
+
modifiers,
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
}export{parseColumnDsl};//# sourceMappingURL=column-dsl-parser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-dsl-parser.js","sources":["../../../../../src/cli/commands/generate/generators/column-dsl-parser.ts"],"sourcesContent":[null],"names":[],"mappings":"AAMA,MAAM,WAAW,GAA2B;AAC1C,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,UAAU,EAAE,YAAY;AACxB,IAAA,MAAM,EAAE,YAAY;AAC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AAK,CAAC,CAAC,CAAC,CAAC;;AAExB,YAAA,SAAS,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAA,EAAA,CAAI,CAAC,CAAC;AAClC,SAAA;QAED,OAAO;YACL,IAAI;YACJ,MAAM;YACN,SAAS;SACV,CAAC;AACJ,KAAC,CAAC,CAAC;AACL"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controller.generator.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/generate/generators/controller.generator.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAUxD,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAgE/E"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import {colors}from'@mongez/copper';import {putFileAsync}from'@mongez/fs';import {controllerStub,validationStub,requestStub}from'../templates/stubs.js';import {parseModulePath,parseName}from'../utils/name-parser.js';import {moduleExists,resolveComponentPath,componentExists,ensureComponentDirectory}from'../utils/path-resolver.js';async function generateController(data) {
|
|
2
|
+
const input = data.args[0];
|
|
3
|
+
if (!input) {
|
|
4
|
+
console.log(colors.red("Error: Controller name is required"));
|
|
5
|
+
console.log(colors.yellow("Usage: warlock create.controller <module>/<name>"));
|
|
6
|
+
console.log(colors.yellow("Example: warlock create.controller users/create-user"));
|
|
7
|
+
process.exit(1);
|
|
8
|
+
}
|
|
9
|
+
const { module, name: componentName } = parseModulePath(input);
|
|
10
|
+
if (!module) {
|
|
11
|
+
console.log(colors.red("Error: Module name is required"));
|
|
12
|
+
console.log(colors.yellow("Usage: warlock create.controller <module>/<name>"));
|
|
13
|
+
process.exit(1);
|
|
14
|
+
}
|
|
15
|
+
// Check if module exists
|
|
16
|
+
if (!(await moduleExists(module))) {
|
|
17
|
+
console.log(colors.red(`Error: Module "${module}" does not exist`));
|
|
18
|
+
console.log(colors.yellow(`Run: warlock create.module ${module}`));
|
|
19
|
+
process.exit(1);
|
|
20
|
+
}
|
|
21
|
+
const name = parseName(componentName);
|
|
22
|
+
const withValidation = data.options.withValidation || data.options.v;
|
|
23
|
+
const force = data.options.force || data.options.f;
|
|
24
|
+
// Check if controller already exists
|
|
25
|
+
const controllerPath = resolveComponentPath(module, "controllers", `${name.kebab}.controller`);
|
|
26
|
+
if ((await componentExists(module, "controllers", `${name.kebab}.controller`)) && !force) {
|
|
27
|
+
console.log(colors.red(`Error: Controller "${name.kebab}.controller.ts" already exists`));
|
|
28
|
+
console.log(colors.yellow("Use --force to overwrite"));
|
|
29
|
+
process.exit(1);
|
|
30
|
+
}
|
|
31
|
+
// Ensure directories exist
|
|
32
|
+
await ensureComponentDirectory(module, "controllers");
|
|
33
|
+
// Generate controller
|
|
34
|
+
const controllerContent = controllerStub(name, { withValidation: !!withValidation });
|
|
35
|
+
await putFileAsync(controllerPath, controllerContent);
|
|
36
|
+
console.log(colors.green(`✓ Created controller: ${controllerPath}`));
|
|
37
|
+
// Generate schema and request if requested
|
|
38
|
+
if (withValidation) {
|
|
39
|
+
await ensureComponentDirectory(module, "schema");
|
|
40
|
+
await ensureComponentDirectory(module, "requests");
|
|
41
|
+
const schemaPath = resolveComponentPath(module, "schema", `${name.kebab}.schema`);
|
|
42
|
+
const requestPath = resolveComponentPath(module, "requests", `${name.kebab}.request`);
|
|
43
|
+
const schemaContent = validationStub(name);
|
|
44
|
+
const requestContent = requestStub(name);
|
|
45
|
+
await putFileAsync(schemaPath, schemaContent);
|
|
46
|
+
await putFileAsync(requestPath, requestContent);
|
|
47
|
+
console.log(colors.green(`✓ Created schema: ${schemaPath}`));
|
|
48
|
+
console.log(colors.green(`✓ Created request: ${requestPath}`));
|
|
49
|
+
}
|
|
50
|
+
console.log(colors.cyan(`\n✨ Controller "${name.camel}" generated successfully!`));
|
|
51
|
+
}export{generateController};//# sourceMappingURL=controller.generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controller.generator.js","sources":["../../../../../src/cli/commands/generate/generators/controller.generator.ts"],"sourcesContent":[null],"names":[],"mappings":"2UAYO,eAAe,kBAAkB,CAAC,IAAuB,EAAA;IAC9D,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAE3B,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC,CAAC;QAC9D,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,kDAAkD,CAAC,CAAC,CAAC;QAC/E,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,sDAAsD,CAAC,CAAC,CAAC;AACnF,QAAA,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACjB,KAAA;AAED,IAAA,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;IAE/D,IAAI,CAAC,MAAM,EAAE;QACX,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC,CAAC;QAC1D,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,kDAAkD,CAAC,CAAC,CAAC;AAC/E,QAAA,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACjB,KAAA;;IAGD,IAAI,EAAE,MAAM,YAAY,CAAC,MAAM,CAAC,CAAC,EAAE;AACjC,QAAA,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA,eAAA,EAAkB,MAAM,CAAA,gBAAA,CAAkB,CAAC,CAAC,CAAC;AACpE,QAAA,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA,2BAAA,EAA8B,MAAM,CAAA,CAAE,CAAC,CAAC,CAAC;AACnE,QAAA,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,C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AClB,QAAA,MAAM,wBAAwB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AACjD,QAAA,MAAM,wBAAwB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAEnD,QAAA,MAAM,UAAU,GAAG,oBAAoB,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAA,EAAG,IAAI,CAAC,KAAK,CAAA,OAAA,CAAS,CAAC,CAAC;AAClF,QAAA,MAAM,WAAW,GAAG,oBAAoB,CAAC,MAAM,EAAE,UAAU,EAAE,CAAA,EAAG,IAAI,CAAC,KAAK,CAAA,QAAA,CAAU,CAAC,CAAC;AAEtF,QAAA,MAAM,aAAa,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;AAC3C,QAAA,MAAM,cAAc,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;AAEzC,QAAA,MAAM,YAAY,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;AAC9C,QAAA,MAAM,YAAY,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;AAEhD,QAAA,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA,kBAAA,EAAqB,UAAU,CAAA,CAAE,CAAC,CAAC,CAAC;AAC7D,QAAA,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA,mBAAA,EAAsB,WAAW,CAAA,CAAE,CAAC,CAAC,CAAC;AAChE,KAAA;AAED,IAAA,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAmB,gBAAA,EAAA,IAAI,CAAC,KAAK,CAA2B,yBAAA,CAAA,CAAC,CAAC,CAAC;AACrF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CommandActionData } from "../../../types";
|
|
2
|
+
/**
|
|
3
|
+
* Generate a migration file for a model
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Create a migration file for a model
|
|
7
|
+
*/
|
|
8
|
+
export declare function createMigrationFile(moduleName: string, entityName: string, options?: any): Promise<string>;
|
|
9
|
+
/**
|
|
10
|
+
* Generate a migration file for a model
|
|
11
|
+
*/
|
|
12
|
+
export declare function generateMigration(data: CommandActionData): Promise<void>;
|
|
13
|
+
//# sourceMappingURL=migration.generator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration.generator.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/generate/generators/migration.generator.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAKxD;;GAEG;AACH;;GAEG;AACH,wBAAsB,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,GAAE,GAAQ,mBAgElG;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,iBAAiB,iBAwB9D"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import {colors}from'@mongez/copper';import {ensureDirectoryAsync,putFileAsync}from'@mongez/fs';import path from'node:path';import'@warlock.js/logger';import'../../../../database/models/database-log/database-log.js';import'../../../../http/context/request-context.js';import {appPath}from'../../../../utils/paths.js';import'@mongez/slug';import'@mongez/supportive-is';import'@mongez/reinforcements';import {migrationAlterStub,migrationStub}from'../templates/stubs.js';import {parseColumnDsl}from'./column-dsl-parser.js';import {parseName}from'../utils/name-parser.js';/**
|
|
2
|
+
* Generate a migration file for a model
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Create a migration file for a model
|
|
6
|
+
*/
|
|
7
|
+
async function createMigrationFile(moduleName, entityName, options = {}) {
|
|
8
|
+
const entity = parseName(entityName);
|
|
9
|
+
// Generate timestamp: MM-DD-YYYY_HH-MM-SS
|
|
10
|
+
const now = new Date();
|
|
11
|
+
const timestamp = `${String(now.getMonth() + 1).padStart(2, "0")}-${String(now.getDate()).padStart(2, "0")}-${now.getFullYear()}_${String(now.getHours()).padStart(2, "0")}-${String(now.getMinutes()).padStart(2, "0")}-${String(now.getSeconds()).padStart(2, "0")}`;
|
|
12
|
+
const migrationFileName = `${timestamp}-${entity.kebab}.migration.ts`;
|
|
13
|
+
const migrationsPath = path.join(appPath(), moduleName, "models", entity.kebab, "migrations");
|
|
14
|
+
// Ensure migrations directory exists
|
|
15
|
+
await ensureDirectoryAsync(migrationsPath);
|
|
16
|
+
const addParams = options.add;
|
|
17
|
+
const dropParams = options.drop;
|
|
18
|
+
const renameParams = options.rename;
|
|
19
|
+
const timestamps = options.timestamps !== "false" && options.timestamps !== false;
|
|
20
|
+
let migrationContent = "";
|
|
21
|
+
if (addParams || dropParams || renameParams) {
|
|
22
|
+
// Generate alter stub
|
|
23
|
+
const parsedAdd = parseColumnDsl(addParams || "");
|
|
24
|
+
const helpersSet = new Set();
|
|
25
|
+
const addLines = parsedAdd.map((col) => {
|
|
26
|
+
helpersSet.add(col.helper);
|
|
27
|
+
return ` ${col.name}: ${col.helper}()${col.modifiers.join("")},`;
|
|
28
|
+
});
|
|
29
|
+
let formattedDrop = undefined;
|
|
30
|
+
if (dropParams) {
|
|
31
|
+
formattedDrop = JSON.stringify(dropParams.split(",").map((s) => s.trim()));
|
|
32
|
+
}
|
|
33
|
+
let formattedRename = undefined;
|
|
34
|
+
if (renameParams) {
|
|
35
|
+
const obj = {};
|
|
36
|
+
renameParams.split(",").map((s) => s.trim()).forEach((p) => {
|
|
37
|
+
const [oldN, newN] = p.split(":").map((s) => s.trim());
|
|
38
|
+
if (oldN && newN)
|
|
39
|
+
obj[oldN] = newN;
|
|
40
|
+
});
|
|
41
|
+
formattedRename = JSON.stringify(obj, null, 2).replace(/\n/g, '\n ');
|
|
42
|
+
}
|
|
43
|
+
migrationContent = migrationAlterStub(entity, {
|
|
44
|
+
add: addLines.length > 0 ? addLines.join("\n") : undefined,
|
|
45
|
+
drop: formattedDrop,
|
|
46
|
+
rename: formattedRename,
|
|
47
|
+
imports: Array.from(helpersSet),
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
// Generate create stub
|
|
52
|
+
migrationContent = migrationStub(entity, {
|
|
53
|
+
timestamps,
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
// Create migration file
|
|
57
|
+
const migrationFilePath = path.join(migrationsPath, migrationFileName);
|
|
58
|
+
await putFileAsync(migrationFilePath, migrationContent);
|
|
59
|
+
console.log(colors.green(`✓ Created ${migrationFileName}`));
|
|
60
|
+
return migrationFilePath;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Generate a migration file for a model
|
|
64
|
+
*/
|
|
65
|
+
async function generateMigration(data) {
|
|
66
|
+
const modelPath = data.args[0];
|
|
67
|
+
if (!modelPath) {
|
|
68
|
+
console.log(colors.red("Error: Model path is required"));
|
|
69
|
+
console.log(colors.gray("Usage: warlock gen.migration <model-path>"));
|
|
70
|
+
console.log(colors.gray("Example: warlock gen.migration products/product"));
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
// Parse model path (e.g., "products/product")
|
|
74
|
+
const [moduleName, entityName] = modelPath.split("/");
|
|
75
|
+
if (!moduleName || !entityName) {
|
|
76
|
+
console.log(colors.red("Error: Invalid model path format. Expected: <module>/<entity>"));
|
|
77
|
+
console.log(colors.gray("Example: warlock gen.migration products/product"));
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
const migrationFilePath = await createMigrationFile(moduleName, entityName, data.options);
|
|
81
|
+
console.log(colors.cyan(`\n✨ Migration file created at: ${path.relative(appPath(), migrationFilePath)}`));
|
|
82
|
+
}export{createMigrationFile,generateMigration};//# sourceMappingURL=migration.generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration.generator.js","sources":["../../../../../src/cli/commands/generate/generators/migration.generator.ts"],"sourcesContent":[null],"names":[],"mappings":"ujBASA;;AAEG;AACH;;AAEG;AACI,eAAe,mBAAmB,CAAC,UAAkB,EAAE,UAAkB,EAAE,OAAA,GAAe,EAAE,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