@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.
- package/README.md +98 -0
- package/dist/scripts/deploy.d.ts +1 -0
- package/dist/scripts/deploy.js +84 -0
- package/dist/scripts/deploy.js.map +1 -0
- package/dist/src/app.module.d.ts +2 -0
- package/dist/src/app.module.js +58 -0
- package/dist/src/app.module.js.map +1 -0
- package/dist/src/commands/add.command.d.ts +14 -0
- package/dist/src/commands/add.command.js +58 -0
- package/dist/src/commands/add.command.js.map +1 -0
- package/dist/src/commands/dev.command/backupdb.subcommand.d.ts +10 -0
- package/dist/src/commands/dev.command/backupdb.subcommand.js +47 -0
- package/dist/src/commands/dev.command/backupdb.subcommand.js.map +1 -0
- package/dist/src/commands/dev.command/create-library.subcommand.d.ts +15 -0
- package/dist/src/commands/dev.command/create-library.subcommand.js +88 -0
- package/dist/src/commands/dev.command/create-library.subcommand.js.map +1 -0
- package/dist/src/commands/dev.command/hash-directory.subcommand.d.ts +12 -0
- package/dist/src/commands/dev.command/hash-directory.subcommand.js +70 -0
- package/dist/src/commands/dev.command/hash-directory.subcommand.js.map +1 -0
- package/dist/src/commands/dev.command/initdb.subcommand.d.ts +10 -0
- package/dist/src/commands/dev.command/initdb.subcommand.js +47 -0
- package/dist/src/commands/dev.command/initdb.subcommand.js.map +1 -0
- package/dist/src/commands/dev.command/reset.subcommand.d.ts +10 -0
- package/dist/src/commands/dev.command/reset.subcommand.js +47 -0
- package/dist/src/commands/dev.command/reset.subcommand.js.map +1 -0
- package/dist/src/commands/dev.command/restoredb.subcommand.d.ts +10 -0
- package/dist/src/commands/dev.command/restoredb.subcommand.js +47 -0
- package/dist/src/commands/dev.command/restoredb.subcommand.js.map +1 -0
- package/dist/src/commands/dev.command/route.subcommand.d.ts +10 -0
- package/dist/src/commands/dev.command/route.subcommand.js +47 -0
- package/dist/src/commands/dev.command/route.subcommand.js.map +1 -0
- package/dist/src/commands/dev.command/tsconfig.subcommand.d.ts +10 -0
- package/dist/src/commands/dev.command/tsconfig.subcommand.js +47 -0
- package/dist/src/commands/dev.command/tsconfig.subcommand.js.map +1 -0
- package/dist/src/commands/dev.command.d.ts +4 -0
- package/dist/src/commands/dev.command.js +40 -0
- package/dist/src/commands/dev.command.js.map +1 -0
- package/dist/src/commands/new.command.d.ts +43 -0
- package/dist/src/commands/new.command.js +436 -0
- package/dist/src/commands/new.command.js.map +1 -0
- package/dist/src/functions/to-pascal-case.d.ts +1 -0
- package/dist/src/functions/to-pascal-case.js +10 -0
- package/dist/src/functions/to-pascal-case.js.map +1 -0
- package/dist/src/main.d.ts +2 -0
- package/dist/src/main.js +10 -0
- package/dist/src/main.js.map +1 -0
- package/dist/src/modules/database/database.module.d.ts +2 -0
- package/dist/src/modules/database/database.module.js +22 -0
- package/dist/src/modules/database/database.module.js.map +1 -0
- package/dist/src/modules/database/database.service.d.ts +14 -0
- package/dist/src/modules/database/database.service.js +186 -0
- package/dist/src/modules/database/database.service.js.map +1 -0
- package/dist/src/modules/developer/developer.module.d.ts +2 -0
- package/dist/src/modules/developer/developer.module.js +22 -0
- package/dist/src/modules/developer/developer.module.js.map +1 -0
- package/dist/src/modules/developer/developer.service.d.ts +37 -0
- package/dist/src/modules/developer/developer.service.js +900 -0
- package/dist/src/modules/developer/developer.service.js.map +1 -0
- package/dist/src/modules/git/git.module.d.ts +2 -0
- package/dist/src/modules/git/git.module.js +23 -0
- package/dist/src/modules/git/git.module.js.map +1 -0
- package/dist/src/modules/git/git.service.d.ts +8 -0
- package/dist/src/modules/git/git.service.js +67 -0
- package/dist/src/modules/git/git.service.js.map +1 -0
- package/dist/src/modules/hedhog/hedhog.module.d.ts +2 -0
- package/dist/src/modules/hedhog/hedhog.module.js +41 -0
- package/dist/src/modules/hedhog/hedhog.module.js.map +1 -0
- package/dist/src/modules/hedhog/hedhog.service.d.ts +44 -0
- package/dist/src/modules/hedhog/hedhog.service.js +350 -0
- package/dist/src/modules/hedhog/hedhog.service.js.map +1 -0
- package/dist/src/modules/hedhog/services/file-system.service.d.ts +22 -0
- package/dist/src/modules/hedhog/services/file-system.service.js +230 -0
- package/dist/src/modules/hedhog/services/file-system.service.js.map +1 -0
- package/dist/src/modules/hedhog/services/migration.service.d.ts +39 -0
- package/dist/src/modules/hedhog/services/migration.service.js +767 -0
- package/dist/src/modules/hedhog/services/migration.service.js.map +1 -0
- package/dist/src/modules/hedhog/services/module.service.d.ts +10 -0
- package/dist/src/modules/hedhog/services/module.service.js +135 -0
- package/dist/src/modules/hedhog/services/module.service.js.map +1 -0
- package/dist/src/modules/hedhog/services/table.service.d.ts +49 -0
- package/dist/src/modules/hedhog/services/table.service.js +432 -0
- package/dist/src/modules/hedhog/services/table.service.js.map +1 -0
- package/dist/src/modules/hedhog/services/template.service.d.ts +13 -0
- package/dist/src/modules/hedhog/services/template.service.js +88 -0
- package/dist/src/modules/hedhog/services/template.service.js.map +1 -0
- package/dist/src/modules/package/package.module.d.ts +2 -0
- package/dist/src/modules/package/package.module.js +23 -0
- package/dist/src/modules/package/package.module.js.map +1 -0
- package/dist/src/modules/package/package.service.d.ts +9 -0
- package/dist/src/modules/package/package.service.js +94 -0
- package/dist/src/modules/package/package.service.js.map +1 -0
- package/dist/src/modules/runner/runner.module.d.ts +2 -0
- package/dist/src/modules/runner/runner.module.js +23 -0
- package/dist/src/modules/runner/runner.module.js.map +1 -0
- package/dist/src/modules/runner/runner.service.d.ts +14 -0
- package/dist/src/modules/runner/runner.service.js +69 -0
- package/dist/src/modules/runner/runner.service.js.map +1 -0
- package/dist/src/questions/database.question.d.ts +12 -0
- package/dist/src/questions/database.question.js +61 -0
- package/dist/src/questions/database.question.js.map +1 -0
- package/dist/src/questions/project-name.question.d.ts +3 -0
- package/dist/src/questions/project-name.question.js +34 -0
- package/dist/src/questions/project-name.question.js.map +1 -0
- package/dist/templates/database/touch_updated_at.sql.ejs +9 -0
- package/dist/templates/database/trg_touch_updated_at.sql.ejs +2 -0
- package/dist/templates/library/.eslintrc.js.ejs +9 -0
- package/dist/templates/library/.prettierrc.js.ejs +4 -0
- package/dist/templates/library/index.ts.ejs +1 -0
- package/dist/templates/library/init.app.module.ts.ejs +25 -0
- package/dist/templates/library/init.package.json.ejs +61 -0
- package/dist/templates/library/module.ts.ejs +15 -0
- package/dist/templates/library/package.json.ejs +36 -0
- package/dist/templates/library/tsconfig.json.ejs +11 -0
- package/dist/templates/library/tsconfig.production.json.ejs +46 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- 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
|
+
}
|