@xeno-js/cli 0.1.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/.github/.copilot-instruction.md +73 -0
- package/.github/agents/git-operator.agent.md +86 -0
- package/.github/agents/unit-tester.agent.md +68 -0
- package/.husky/commit-msg +1 -0
- package/.husky/pre-commit +1 -0
- package/.husky/pre-push +1 -0
- package/.prettierignore +7 -0
- package/.prettierrc.json +37 -0
- package/LICENSE +15 -0
- package/README.md +236 -0
- package/commitlint.config.cjs +39 -0
- package/dist/domain/contracts/icommand-cli.contracts.js +2 -0
- package/dist/domain/contracts/icommand-runner.contracts.js +2 -0
- package/dist/domain/contracts/idispatch.contracts.js +2 -0
- package/dist/domain/contracts/ifile-service.contracts.js +2 -0
- package/dist/domain/contracts/igenerator.contracts.js +2 -0
- package/dist/domain/contracts/index.js +2 -0
- package/dist/domain/contracts/iscaffold-strategy.contracts.js +2 -0
- package/dist/domain/index.js +2 -0
- package/dist/generator.contracts.js +13 -0
- package/dist/index.js +31 -0
- package/dist/infrastructure/bootstrap/bootstrapper.js +32 -0
- package/dist/infrastructure/bootstrap/index.js +17 -0
- package/dist/infrastructure/builder/builder.js +16 -0
- package/dist/infrastructure/builder/builder.test.js +30 -0
- package/dist/infrastructure/builder/index.js +17 -0
- package/dist/infrastructure/command_launcher/command.utils.js +30 -0
- package/dist/infrastructure/command_launcher/index.js +2 -0
- package/dist/infrastructure/commands/command-runner.service.js +36 -0
- package/dist/infrastructure/commands/generate.command.js +48 -0
- package/dist/infrastructure/commands/help.command.js +44 -0
- package/dist/infrastructure/commands/index.js +20 -0
- package/dist/infrastructure/commands/new-project.command.js +43 -0
- package/dist/infrastructure/dispatcher/dispatcher.js +39 -0
- package/dist/infrastructure/dispatcher/index.js +17 -0
- package/dist/infrastructure/file/file.service.js +13 -0
- package/dist/infrastructure/file/index.js +17 -0
- package/dist/infrastructure/generators/bootstrap.generator.js +118 -0
- package/dist/infrastructure/generators/core/bootstrap.generator.js +118 -0
- package/dist/infrastructure/generators/core/command/cqrs.generator.js +49 -0
- package/dist/infrastructure/generators/core/command/generate-command.generator.js +163 -0
- package/dist/infrastructure/generators/core/command/generate-query.generator.js +131 -0
- package/dist/infrastructure/generators/core/drizzle-sql-lite.generator.js +78 -0
- package/dist/infrastructure/generators/core/drizzle.generator.js +85 -0
- package/dist/infrastructure/generators/core/env.generator.js +69 -0
- package/dist/infrastructure/generators/core/index.js +25 -0
- package/dist/infrastructure/generators/core/main.generator.js +45 -0
- package/dist/infrastructure/generators/core/packagejson.generator.js +78 -0
- package/dist/infrastructure/generators/core/readme.generator.js +431 -0
- package/dist/infrastructure/generators/core/registry.generator.js +46 -0
- package/dist/infrastructure/generators/core/tsconfig.generator.js +41 -0
- package/dist/infrastructure/generators/core-packagejson.generator.js +78 -0
- package/dist/infrastructure/generators/drizzle-sql-lite.generator.js +78 -0
- package/dist/infrastructure/generators/drizzle.generator.js +85 -0
- package/dist/infrastructure/generators/env-vue.generator.js +40 -0
- package/dist/infrastructure/generators/env.generator.js +71 -0
- package/dist/infrastructure/generators/gitignore.generator.js +62 -0
- package/dist/infrastructure/generators/index.js +26 -0
- package/dist/infrastructure/generators/main.generator.js +45 -0
- package/dist/infrastructure/generators/readme.generator.js +431 -0
- package/dist/infrastructure/generators/registry.generator.js +46 -0
- package/dist/infrastructure/generators/tsconfig-vue.generator.js +39 -0
- package/dist/infrastructure/generators/tsconfig.generator.js +41 -0
- package/dist/infrastructure/generators/vite-config.generator.js +39 -0
- package/dist/infrastructure/generators/vue/app-vue.generator.js +26 -0
- package/dist/infrastructure/generators/vue/bootstrap-ts.generator.js +59 -0
- package/dist/infrastructure/generators/vue/command_query/cqrs.generator.js +36 -0
- package/dist/infrastructure/generators/vue/command_query/generate-command-vue.generator.js +139 -0
- package/dist/infrastructure/generators/vue/command_query/generate-query-vue.generator.js +147 -0
- package/dist/infrastructure/generators/vue/env.generator.js +40 -0
- package/dist/infrastructure/generators/vue/index-html.generator.js +29 -0
- package/dist/infrastructure/generators/vue/index.js +28 -0
- package/dist/infrastructure/generators/vue/main.generator.js +45 -0
- package/dist/infrastructure/generators/vue/packagejson.generator.js +59 -0
- package/dist/infrastructure/generators/vue/readme.generator.js +394 -0
- package/dist/infrastructure/generators/vue/registry-ts.generator.js +28 -0
- package/dist/infrastructure/generators/vue/router.generator.js +33 -0
- package/dist/infrastructure/generators/vue/tailwind.generator.js +19 -0
- package/dist/infrastructure/generators/vue/tsconfig.generator.js +39 -0
- package/dist/infrastructure/generators/vue/use-app.generator.js +43 -0
- package/dist/infrastructure/generators/vue/vite-config.generator.js +39 -0
- package/dist/infrastructure/generators/vue-packagejson.generator.js +59 -0
- package/dist/infrastructure/generators/vue-readme.generator.js +53 -0
- package/dist/infrastructure/generators/vue-source-files.generator.js +136 -0
- package/dist/infrastructure/index.js +21 -0
- package/dist/infrastructure/strategies/core-scaffold.strategy.js +99 -0
- package/dist/infrastructure/strategies/index.js +18 -0
- package/dist/infrastructure/strategies/vue-scaffold.strategy.js +79 -0
- package/dist/scaffolding.engine.js +60 -0
- package/dist/shared/constants/command.constants.js +19 -0
- package/dist/shared/constants/core.constants.js +10 -0
- package/dist/shared/constants/index.js +18 -0
- package/dist/shared/index.js +18 -0
- package/dist/shared/types/common.types.js +2 -0
- package/dist/shared/types/index.js +2 -0
- package/dist/shared/utils/guards.utils.js +310 -0
- package/dist/shared/utils/index.js +18 -0
- package/dist/shared/utils/string.utils.js +62 -0
- package/eslint.config.mjs +305 -0
- package/lint-staged.config.mjs +5 -0
- package/logo/logo.png +0 -0
- package/package.json +65 -0
- package/src/domain/contracts/icommand-cli.contracts.ts +13 -0
- package/src/domain/contracts/icommand-runner.contracts.ts +3 -0
- package/src/domain/contracts/idispatch.contracts.ts +3 -0
- package/src/domain/contracts/ifile-service.contracts.ts +3 -0
- package/src/domain/contracts/igenerator.contracts.ts +5 -0
- package/src/domain/contracts/index.ts +6 -0
- package/src/domain/contracts/iscaffold-strategy.contracts.ts +7 -0
- package/src/domain/index.ts +1 -0
- package/src/index.ts +30 -0
- package/src/infrastructure/bootstrap/bootstrapper.ts +30 -0
- package/src/infrastructure/bootstrap/index.ts +1 -0
- package/src/infrastructure/builder/builder.test.ts +36 -0
- package/src/infrastructure/builder/builder.ts +15 -0
- package/src/infrastructure/builder/index.ts +1 -0
- package/src/infrastructure/command_launcher/command.utils.ts +31 -0
- package/src/infrastructure/command_launcher/index.ts +0 -0
- package/src/infrastructure/commands/command-runner.service.ts +36 -0
- package/src/infrastructure/commands/generate.command.ts +55 -0
- package/src/infrastructure/commands/help.command.ts +63 -0
- package/src/infrastructure/commands/index.ts +4 -0
- package/src/infrastructure/commands/new-project.command.ts +47 -0
- package/src/infrastructure/dispatcher/dispatcher.ts +45 -0
- package/src/infrastructure/dispatcher/index.ts +1 -0
- package/src/infrastructure/file/file.service.ts +14 -0
- package/src/infrastructure/file/index.ts +1 -0
- package/src/infrastructure/generators/core/bootstrap.generator.ts +118 -0
- package/src/infrastructure/generators/core/command/cqrs.generator.ts +63 -0
- package/src/infrastructure/generators/core/command/generate-command.generator.ts +191 -0
- package/src/infrastructure/generators/core/command/generate-query.generator.ts +150 -0
- package/src/infrastructure/generators/core/drizzle-sql-lite.generator.ts +76 -0
- package/src/infrastructure/generators/core/drizzle.generator.ts +86 -0
- package/src/infrastructure/generators/core/env.generator.ts +69 -0
- package/src/infrastructure/generators/core/index.ts +9 -0
- package/src/infrastructure/generators/core/main.generator.ts +41 -0
- package/src/infrastructure/generators/core/packagejson.generator.ts +70 -0
- package/src/infrastructure/generators/core/readme.generator.ts +427 -0
- package/src/infrastructure/generators/core/registry.generator.ts +40 -0
- package/src/infrastructure/generators/core/tsconfig.generator.ts +39 -0
- package/src/infrastructure/generators/gitignore.generator.ts +60 -0
- package/src/infrastructure/generators/vue/app-vue.generator.ts +21 -0
- package/src/infrastructure/generators/vue/bootstrap-ts.generator.ts +60 -0
- package/src/infrastructure/generators/vue/command_query/cqrs.generator.ts +36 -0
- package/src/infrastructure/generators/vue/command_query/generate-command-vue.generator.ts +153 -0
- package/src/infrastructure/generators/vue/command_query/generate-query-vue.generator.ts +161 -0
- package/src/infrastructure/generators/vue/env.generator.ts +39 -0
- package/src/infrastructure/generators/vue/index-html.generator.ts +24 -0
- package/src/infrastructure/generators/vue/index.ts +12 -0
- package/src/infrastructure/generators/vue/main.generator.ts +41 -0
- package/src/infrastructure/generators/vue/packagejson.generator.ts +50 -0
- package/src/infrastructure/generators/vue/readme.generator.ts +389 -0
- package/src/infrastructure/generators/vue/registry-ts.generator.ts +26 -0
- package/src/infrastructure/generators/vue/router.generator.ts +35 -0
- package/src/infrastructure/generators/vue/tailwind.generator.ts +17 -0
- package/src/infrastructure/generators/vue/tsconfig.generator.ts +38 -0
- package/src/infrastructure/generators/vue/use-app.generator.ts +38 -0
- package/src/infrastructure/generators/vue/vite-config.generator.ts +35 -0
- package/src/infrastructure/index.ts +5 -0
- package/src/infrastructure/strategies/core-scaffold.strategy.ts +100 -0
- package/src/infrastructure/strategies/index.ts +2 -0
- package/src/infrastructure/strategies/vue-scaffold.strategy.ts +79 -0
- package/src/shared/constants/command.constants.ts +18 -0
- package/src/shared/constants/core.constants.ts +7 -0
- package/src/shared/constants/index.ts +2 -0
- package/src/shared/index.ts +3 -0
- package/src/shared/types/common.types.ts +68 -0
- package/src/shared/types/index.ts +1 -0
- package/src/shared/utils/guards.utils.ts +334 -0
- package/src/shared/utils/index.ts +2 -0
- package/src/shared/utils/string.utils.ts +60 -0
- package/tsconfig.json +15 -0
package/tsconfig.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"module": "NodeNext",
|
|
5
|
+
"types": ["node"],
|
|
6
|
+
"moduleResolution": "NodeNext",
|
|
7
|
+
"outDir": "./dist",
|
|
8
|
+
"rootDir": "./src",
|
|
9
|
+
"strict": true,
|
|
10
|
+
"esModuleInterop": true,
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
"forceConsistentCasingInFileNames": true
|
|
13
|
+
},
|
|
14
|
+
"include": ["src/**/*"]
|
|
15
|
+
}
|