@hed-hog/cli 0.0.12

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.
Files changed (116) hide show
  1. package/README.md +98 -0
  2. package/dist/scripts/deploy.d.ts +1 -0
  3. package/dist/scripts/deploy.js +84 -0
  4. package/dist/scripts/deploy.js.map +1 -0
  5. package/dist/src/app.module.d.ts +2 -0
  6. package/dist/src/app.module.js +58 -0
  7. package/dist/src/app.module.js.map +1 -0
  8. package/dist/src/commands/add.command.d.ts +14 -0
  9. package/dist/src/commands/add.command.js +58 -0
  10. package/dist/src/commands/add.command.js.map +1 -0
  11. package/dist/src/commands/dev.command/backupdb.subcommand.d.ts +10 -0
  12. package/dist/src/commands/dev.command/backupdb.subcommand.js +47 -0
  13. package/dist/src/commands/dev.command/backupdb.subcommand.js.map +1 -0
  14. package/dist/src/commands/dev.command/create-library.subcommand.d.ts +15 -0
  15. package/dist/src/commands/dev.command/create-library.subcommand.js +88 -0
  16. package/dist/src/commands/dev.command/create-library.subcommand.js.map +1 -0
  17. package/dist/src/commands/dev.command/hash-directory.subcommand.d.ts +12 -0
  18. package/dist/src/commands/dev.command/hash-directory.subcommand.js +70 -0
  19. package/dist/src/commands/dev.command/hash-directory.subcommand.js.map +1 -0
  20. package/dist/src/commands/dev.command/initdb.subcommand.d.ts +10 -0
  21. package/dist/src/commands/dev.command/initdb.subcommand.js +47 -0
  22. package/dist/src/commands/dev.command/initdb.subcommand.js.map +1 -0
  23. package/dist/src/commands/dev.command/reset.subcommand.d.ts +10 -0
  24. package/dist/src/commands/dev.command/reset.subcommand.js +47 -0
  25. package/dist/src/commands/dev.command/reset.subcommand.js.map +1 -0
  26. package/dist/src/commands/dev.command/restoredb.subcommand.d.ts +10 -0
  27. package/dist/src/commands/dev.command/restoredb.subcommand.js +47 -0
  28. package/dist/src/commands/dev.command/restoredb.subcommand.js.map +1 -0
  29. package/dist/src/commands/dev.command/route.subcommand.d.ts +10 -0
  30. package/dist/src/commands/dev.command/route.subcommand.js +47 -0
  31. package/dist/src/commands/dev.command/route.subcommand.js.map +1 -0
  32. package/dist/src/commands/dev.command/tsconfig.subcommand.d.ts +10 -0
  33. package/dist/src/commands/dev.command/tsconfig.subcommand.js +47 -0
  34. package/dist/src/commands/dev.command/tsconfig.subcommand.js.map +1 -0
  35. package/dist/src/commands/dev.command.d.ts +4 -0
  36. package/dist/src/commands/dev.command.js +40 -0
  37. package/dist/src/commands/dev.command.js.map +1 -0
  38. package/dist/src/commands/new.command.d.ts +43 -0
  39. package/dist/src/commands/new.command.js +436 -0
  40. package/dist/src/commands/new.command.js.map +1 -0
  41. package/dist/src/functions/to-pascal-case.d.ts +1 -0
  42. package/dist/src/functions/to-pascal-case.js +10 -0
  43. package/dist/src/functions/to-pascal-case.js.map +1 -0
  44. package/dist/src/main.d.ts +2 -0
  45. package/dist/src/main.js +10 -0
  46. package/dist/src/main.js.map +1 -0
  47. package/dist/src/modules/database/database.module.d.ts +2 -0
  48. package/dist/src/modules/database/database.module.js +22 -0
  49. package/dist/src/modules/database/database.module.js.map +1 -0
  50. package/dist/src/modules/database/database.service.d.ts +14 -0
  51. package/dist/src/modules/database/database.service.js +186 -0
  52. package/dist/src/modules/database/database.service.js.map +1 -0
  53. package/dist/src/modules/developer/developer.module.d.ts +2 -0
  54. package/dist/src/modules/developer/developer.module.js +22 -0
  55. package/dist/src/modules/developer/developer.module.js.map +1 -0
  56. package/dist/src/modules/developer/developer.service.d.ts +37 -0
  57. package/dist/src/modules/developer/developer.service.js +900 -0
  58. package/dist/src/modules/developer/developer.service.js.map +1 -0
  59. package/dist/src/modules/git/git.module.d.ts +2 -0
  60. package/dist/src/modules/git/git.module.js +23 -0
  61. package/dist/src/modules/git/git.module.js.map +1 -0
  62. package/dist/src/modules/git/git.service.d.ts +8 -0
  63. package/dist/src/modules/git/git.service.js +67 -0
  64. package/dist/src/modules/git/git.service.js.map +1 -0
  65. package/dist/src/modules/hedhog/hedhog.module.d.ts +2 -0
  66. package/dist/src/modules/hedhog/hedhog.module.js +41 -0
  67. package/dist/src/modules/hedhog/hedhog.module.js.map +1 -0
  68. package/dist/src/modules/hedhog/hedhog.service.d.ts +44 -0
  69. package/dist/src/modules/hedhog/hedhog.service.js +350 -0
  70. package/dist/src/modules/hedhog/hedhog.service.js.map +1 -0
  71. package/dist/src/modules/hedhog/services/file-system.service.d.ts +22 -0
  72. package/dist/src/modules/hedhog/services/file-system.service.js +230 -0
  73. package/dist/src/modules/hedhog/services/file-system.service.js.map +1 -0
  74. package/dist/src/modules/hedhog/services/migration.service.d.ts +39 -0
  75. package/dist/src/modules/hedhog/services/migration.service.js +767 -0
  76. package/dist/src/modules/hedhog/services/migration.service.js.map +1 -0
  77. package/dist/src/modules/hedhog/services/module.service.d.ts +10 -0
  78. package/dist/src/modules/hedhog/services/module.service.js +135 -0
  79. package/dist/src/modules/hedhog/services/module.service.js.map +1 -0
  80. package/dist/src/modules/hedhog/services/table.service.d.ts +49 -0
  81. package/dist/src/modules/hedhog/services/table.service.js +432 -0
  82. package/dist/src/modules/hedhog/services/table.service.js.map +1 -0
  83. package/dist/src/modules/hedhog/services/template.service.d.ts +13 -0
  84. package/dist/src/modules/hedhog/services/template.service.js +88 -0
  85. package/dist/src/modules/hedhog/services/template.service.js.map +1 -0
  86. package/dist/src/modules/package/package.module.d.ts +2 -0
  87. package/dist/src/modules/package/package.module.js +23 -0
  88. package/dist/src/modules/package/package.module.js.map +1 -0
  89. package/dist/src/modules/package/package.service.d.ts +9 -0
  90. package/dist/src/modules/package/package.service.js +94 -0
  91. package/dist/src/modules/package/package.service.js.map +1 -0
  92. package/dist/src/modules/runner/runner.module.d.ts +2 -0
  93. package/dist/src/modules/runner/runner.module.js +23 -0
  94. package/dist/src/modules/runner/runner.module.js.map +1 -0
  95. package/dist/src/modules/runner/runner.service.d.ts +14 -0
  96. package/dist/src/modules/runner/runner.service.js +69 -0
  97. package/dist/src/modules/runner/runner.service.js.map +1 -0
  98. package/dist/src/questions/database.question.d.ts +12 -0
  99. package/dist/src/questions/database.question.js +61 -0
  100. package/dist/src/questions/database.question.js.map +1 -0
  101. package/dist/src/questions/project-name.question.d.ts +3 -0
  102. package/dist/src/questions/project-name.question.js +34 -0
  103. package/dist/src/questions/project-name.question.js.map +1 -0
  104. package/dist/templates/database/touch_updated_at.sql.ejs +9 -0
  105. package/dist/templates/database/trg_touch_updated_at.sql.ejs +2 -0
  106. package/dist/templates/library/.eslintrc.js.ejs +9 -0
  107. package/dist/templates/library/.prettierrc.js.ejs +4 -0
  108. package/dist/templates/library/index.ts.ejs +1 -0
  109. package/dist/templates/library/init.app.module.ts.ejs +25 -0
  110. package/dist/templates/library/init.package.json.ejs +61 -0
  111. package/dist/templates/library/module.ts.ejs +15 -0
  112. package/dist/templates/library/package.json.ejs +36 -0
  113. package/dist/templates/library/tsconfig.json.ejs +11 -0
  114. package/dist/templates/library/tsconfig.production.json.ejs +46 -0
  115. package/dist/tsconfig.build.tsbuildinfo +1 -0
  116. package/package.json +104 -0
package/package.json ADDED
@@ -0,0 +1,104 @@
1
+ {
2
+ "name": "@hed-hog/cli",
3
+ "version": "0.0.12",
4
+ "description": "HedHog CLI tool",
5
+ "author": "HedHog",
6
+ "private": false,
7
+ "license": "MIT",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/hed-hog/cli"
11
+ },
12
+ "keywords": [
13
+ "cli",
14
+ "hed-hog",
15
+ "nestjs",
16
+ "command-line"
17
+ ],
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "bin": {
22
+ "hed-hog": "./dist/src/main.js"
23
+ },
24
+ "scripts": {
25
+ "prebuild": "rimraf dist && npm run format",
26
+ "build": "nest build",
27
+ "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
28
+ "start": "ts-node src/main",
29
+ "start:dev": "nest start --watch",
30
+ "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
31
+ "prod": "ts-node ./scripts/deploy.ts",
32
+ "test": "jest",
33
+ "test:watch": "jest --watch",
34
+ "test:cov": "jest --coverage",
35
+ "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
36
+ "test:e2e": "jest --config ./test/jest-e2e.json"
37
+ },
38
+ "dependencies": {
39
+ "@nestjs/common": "^11.0.1",
40
+ "@nestjs/core": "^11.0.1",
41
+ "@nestjs/platform-express": "^11.0.1",
42
+ "boxen": "^5.1.2",
43
+ "chalk": "^4.1.2",
44
+ "cli-table3": "^0.6.5",
45
+ "ejs": "^3.1.10",
46
+ "inquirer": "^12.11.0",
47
+ "mysql2": "^3.14.1",
48
+ "nest-commander": "^3.17.0",
49
+ "ora": "^5.4.1",
50
+ "pg": "^8.16.0",
51
+ "reflect-metadata": "^0.2.2",
52
+ "rxjs": "^7.8.1",
53
+ "sql-formatter": "^15.6.6",
54
+ "tar": "^7.4.3",
55
+ "yaml": "^2.8.0"
56
+ },
57
+ "devDependencies": {
58
+ "@eslint/eslintrc": "^3.2.0",
59
+ "@eslint/js": "^9.18.0",
60
+ "@nestjs/cli": "^11.0.0",
61
+ "@nestjs/schematics": "^11.0.0",
62
+ "@nestjs/testing": "^11.0.1",
63
+ "@swc/cli": "^0.6.0",
64
+ "@swc/core": "^1.10.7",
65
+ "@types/bcrypt": "^5.0.2",
66
+ "@types/ejs": "^3.1.5",
67
+ "@types/express": "^5.0.0",
68
+ "@types/jest": "^29.5.14",
69
+ "@types/node": "^22.10.7",
70
+ "@types/supertest": "^6.0.2",
71
+ "eslint": "^9.18.0",
72
+ "eslint-config-prettier": "^10.0.1",
73
+ "eslint-plugin-prettier": "^5.2.2",
74
+ "globals": "^16.0.0",
75
+ "jest": "^29.7.0",
76
+ "prettier": "^3.4.2",
77
+ "rimraf": "^6.1.0",
78
+ "source-map-support": "^0.5.21",
79
+ "supertest": "^7.0.0",
80
+ "ts-jest": "^29.2.5",
81
+ "ts-loader": "^9.5.2",
82
+ "ts-node": "^10.9.2",
83
+ "tsconfig-paths": "^4.2.0",
84
+ "typescript": "^5.7.3",
85
+ "typescript-eslint": "^8.20.0"
86
+ },
87
+ "jest": {
88
+ "moduleFileExtensions": [
89
+ "js",
90
+ "json",
91
+ "ts"
92
+ ],
93
+ "rootDir": "src",
94
+ "testRegex": ".*\\.spec\\.ts$",
95
+ "transform": {
96
+ "^.+\\.(t|j)s$": "ts-jest"
97
+ },
98
+ "collectCoverageFrom": [
99
+ "**/*.(t|j)s"
100
+ ],
101
+ "coverageDirectory": "../coverage",
102
+ "testEnvironment": "node"
103
+ }
104
+ }