express-generator-typescript 2.7.2 → 2.7.4

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 (36) hide show
  1. package/LICENSE +21 -21
  2. package/README-npm +20 -0
  3. package/README.md +85 -20
  4. package/bin/cli.js +0 -0
  5. package/lib/express-generator-typescript.js +2 -2
  6. package/lib/project-files/README.md +65 -65
  7. package/lib/project-files/config.ts +22 -22
  8. package/lib/project-files/eslint.config.ts +100 -95
  9. package/lib/project-files/package.json +57 -58
  10. package/lib/project-files/src/common/constants/ENV.ts +21 -21
  11. package/lib/project-files/src/common/constants/HttpStatusCodes.ts +391 -391
  12. package/lib/project-files/src/common/constants/Paths.ts +11 -11
  13. package/lib/project-files/src/common/constants/index.ts +11 -11
  14. package/lib/project-files/src/common/util/route-errors.ts +37 -37
  15. package/lib/project-files/src/common/util/validators.ts +22 -22
  16. package/lib/project-files/src/models/common/types/index.ts +5 -5
  17. package/lib/project-files/src/public/scripts/http.js +26 -26
  18. package/lib/project-files/src/public/scripts/users.js +141 -141
  19. package/lib/project-files/src/public/stylesheets/users.css +48 -48
  20. package/lib/project-files/src/repos/MockOrm.ts +62 -62
  21. package/lib/project-files/src/repos/UserRepo.ts +2 -1
  22. package/lib/project-files/src/repos/database.json +1 -1
  23. package/lib/project-files/src/repos/database.test.json +1 -1
  24. package/lib/project-files/src/routes/common/types/index.ts +11 -11
  25. package/lib/project-files/src/routes/common/util/index.ts +18 -18
  26. package/lib/project-files/src/routes/index.ts +33 -33
  27. package/lib/project-files/src/services/UserService.ts +73 -73
  28. package/lib/project-files/src/views/users.html +132 -132
  29. package/lib/project-files/tests/common/Paths.ts +5 -5
  30. package/lib/project-files/tests/common/types/index.ts +16 -16
  31. package/lib/project-files/tests/common/util/index.ts +38 -38
  32. package/lib/project-files/tests/support/setup.ts +26 -26
  33. package/lib/project-files/tsconfig.prod.json +30 -30
  34. package/lib/project-files/vitest.config.mts +18 -18
  35. package/package.json +1 -1
  36. package/README-git +0 -95
@@ -1,58 +1,57 @@
1
- {
2
- "name": "express-typescript-example",
3
- "version": "0.0.0",
4
- "scripts": {
5
- "build": "ts-node ./scripts/build.ts",
6
- "clean-install": "rm -rf ./node_modules && rm -r package-lock.json && npm i",
7
- "dev": "NODE_ENV=development ts-node ./src",
8
- "dev:hot": "nodemon --exec \"npm run dev\" --watch ./src --ext .ts",
9
- "lint": "eslint .",
10
- "start": "NODE_ENV=production node -r ./config.js ./dist",
11
- "test": "NODE_ENV=test vitest",
12
- "type-check": "tsc --noEmit"
13
- },
14
- "engines": {
15
- "node": ">=16.0.0"
16
- },
17
- "dependencies": {
18
- "cookie-parser": "^1.4.7",
19
- "dayjs": "^1.11.13",
20
- "dotenv": "^16.5.0",
21
- "express": "^5.1.0",
22
- "helmet": "^8.1.0",
23
- "inserturlparams": "^2.0.5",
24
- "jet-env": "^1.1.4",
25
- "jet-logger": "^2.0.1",
26
- "jet-paths": "^1.1.0",
27
- "jet-validators": "^1.4.0",
28
- "jsonfile": "^6.1.0",
29
- "module-alias": "^2.2.3",
30
- "morgan": "^1.10.0"
31
- },
32
- "devDependencies": {
33
- "@eslint/js": "^9.25.1",
34
- "@stylistic/eslint-plugin-js": "^4.2.0",
35
- "@stylistic/eslint-plugin-ts": "^4.2.0",
36
- "@swc/core": "^1.11.22",
37
- "@types/cookie-parser": "^1.4.8",
38
- "@types/find": "^0.2.4",
39
- "@types/fs-extra": "^11.0.4",
40
- "@types/jsonfile": "^6.1.4",
41
- "@types/module-alias": "^2.0.4",
42
- "@types/morgan": "^1.9.9",
43
- "@types/node": "^22.14.1",
44
- "@types/supertest": "^6.0.3",
45
- "eslint": "^9.25.1",
46
- "eslint-plugin-n": "^17.17.0",
47
- "find": "^0.3.0",
48
- "fs-extra": "^11.3.0",
49
- "jiti": "^2.4.2",
50
- "nodemon": "^3.1.10",
51
- "supertest": "^7.1.0",
52
- "ts-node": "^10.9.2",
53
- "tsconfig-paths": "^4.2.0",
54
- "typescript": "^5.8.3",
55
- "typescript-eslint": "^8.31.0",
56
- "vitest": "^3.1.2"
57
- }
58
- }
1
+ {
2
+ "name": "express-typescript-example",
3
+ "version": "0.0.0",
4
+ "scripts": {
5
+ "build": "ts-node ./scripts/build.ts",
6
+ "clean-install": "rm -rf ./node_modules && rm -r package-lock.json && npm i",
7
+ "dev": "NODE_ENV=development ts-node ./src",
8
+ "dev:hot": "nodemon --exec \"npm run dev\" --watch ./src --ext .ts",
9
+ "lint": "eslint .",
10
+ "start": "NODE_ENV=production node -r ./config.js ./dist",
11
+ "test": "NODE_ENV=test vitest",
12
+ "type-check": "tsc --noEmit"
13
+ },
14
+ "engines": {
15
+ "node": ">=16.0.0"
16
+ },
17
+ "dependencies": {
18
+ "cookie-parser": "^1.4.7",
19
+ "dayjs": "^1.11.13",
20
+ "dotenv": "^16.5.0",
21
+ "express": "^5.1.0",
22
+ "helmet": "^8.1.0",
23
+ "inserturlparams": "^2.0.5",
24
+ "jet-env": "^1.1.4",
25
+ "jet-logger": "^2.0.1",
26
+ "jet-paths": "^1.1.0",
27
+ "jet-validators": "^1.4.0",
28
+ "jsonfile": "^6.1.0",
29
+ "module-alias": "^2.2.3",
30
+ "morgan": "^1.10.0"
31
+ },
32
+ "devDependencies": {
33
+ "@eslint/js": "^9.25.1",
34
+ "@stylistic/eslint-plugin": "^5.5.0",
35
+ "@swc/core": "^1.11.22",
36
+ "@types/cookie-parser": "^1.4.8",
37
+ "@types/find": "^0.2.4",
38
+ "@types/fs-extra": "^11.0.4",
39
+ "@types/jsonfile": "^6.1.4",
40
+ "@types/module-alias": "^2.0.4",
41
+ "@types/morgan": "^1.9.9",
42
+ "@types/node": "^22.14.1",
43
+ "@types/supertest": "^6.0.3",
44
+ "eslint": "^9.25.1",
45
+ "eslint-plugin-n": "^17.17.0",
46
+ "find": "^0.3.0",
47
+ "fs-extra": "^11.3.0",
48
+ "jiti": "^2.4.2",
49
+ "nodemon": "^3.1.10",
50
+ "supertest": "^7.1.0",
51
+ "ts-node": "^10.9.2",
52
+ "tsconfig-paths": "^4.2.0",
53
+ "typescript": "^5.8.3",
54
+ "typescript-eslint": "^8.31.0",
55
+ "vitest": "^3.1.2"
56
+ }
57
+ }
@@ -1,21 +1,21 @@
1
- import jetEnv, { num } from 'jet-env';
2
- import { isEnumVal } from 'jet-validators';
3
-
4
- import { NodeEnvs } from '.';
5
-
6
-
7
- /******************************************************************************
8
- Setup
9
- ******************************************************************************/
10
-
11
- const ENV = jetEnv({
12
- NodeEnv: isEnumVal(NodeEnvs),
13
- Port: num,
14
- });
15
-
16
-
17
- /******************************************************************************
18
- Export default
19
- ******************************************************************************/
20
-
21
- export default ENV;
1
+ import jetEnv, { num } from 'jet-env';
2
+ import { isEnumVal } from 'jet-validators';
3
+
4
+ import { NodeEnvs } from '.';
5
+
6
+
7
+ /******************************************************************************
8
+ Setup
9
+ ******************************************************************************/
10
+
11
+ const ENV = jetEnv({
12
+ NodeEnv: isEnumVal(NodeEnvs),
13
+ Port: num,
14
+ });
15
+
16
+
17
+ /******************************************************************************
18
+ Export default
19
+ ******************************************************************************/
20
+
21
+ export default ENV;