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.
- package/LICENSE +21 -21
- package/README-npm +20 -0
- package/README.md +85 -20
- package/bin/cli.js +0 -0
- package/lib/express-generator-typescript.js +2 -2
- package/lib/project-files/README.md +65 -65
- package/lib/project-files/config.ts +22 -22
- package/lib/project-files/eslint.config.ts +100 -95
- package/lib/project-files/package.json +57 -58
- package/lib/project-files/src/common/constants/ENV.ts +21 -21
- package/lib/project-files/src/common/constants/HttpStatusCodes.ts +391 -391
- package/lib/project-files/src/common/constants/Paths.ts +11 -11
- package/lib/project-files/src/common/constants/index.ts +11 -11
- package/lib/project-files/src/common/util/route-errors.ts +37 -37
- package/lib/project-files/src/common/util/validators.ts +22 -22
- package/lib/project-files/src/models/common/types/index.ts +5 -5
- package/lib/project-files/src/public/scripts/http.js +26 -26
- package/lib/project-files/src/public/scripts/users.js +141 -141
- package/lib/project-files/src/public/stylesheets/users.css +48 -48
- package/lib/project-files/src/repos/MockOrm.ts +62 -62
- package/lib/project-files/src/repos/UserRepo.ts +2 -1
- package/lib/project-files/src/repos/database.json +1 -1
- package/lib/project-files/src/repos/database.test.json +1 -1
- package/lib/project-files/src/routes/common/types/index.ts +11 -11
- package/lib/project-files/src/routes/common/util/index.ts +18 -18
- package/lib/project-files/src/routes/index.ts +33 -33
- package/lib/project-files/src/services/UserService.ts +73 -73
- package/lib/project-files/src/views/users.html +132 -132
- package/lib/project-files/tests/common/Paths.ts +5 -5
- package/lib/project-files/tests/common/types/index.ts +16 -16
- package/lib/project-files/tests/common/util/index.ts +38 -38
- package/lib/project-files/tests/support/setup.ts +26 -26
- package/lib/project-files/tsconfig.prod.json +30 -30
- package/lib/project-files/vitest.config.mts +18 -18
- package/package.json +1 -1
- 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
|
|
35
|
-
"@
|
|
36
|
-
"@
|
|
37
|
-
"@types/
|
|
38
|
-
"@types/
|
|
39
|
-
"@types/
|
|
40
|
-
"@types/
|
|
41
|
-
"@types/
|
|
42
|
-
"@types/
|
|
43
|
-
"@types/
|
|
44
|
-
"
|
|
45
|
-
"eslint": "^
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"typescript": "^
|
|
55
|
-
"
|
|
56
|
-
|
|
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;
|