@leo-h/create-nodejs-app 1.0.30 → 1.0.32
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/package.json +14 -14
- package/templates/clean/package.json +12 -12
- package/templates/clean/pnpm-lock.yaml +222 -494
- package/templates/fastify/.env.example +1 -4
- package/templates/fastify/.lintstagedrc.json +2 -2
- package/templates/fastify/.prettierignore +0 -2
- package/templates/fastify/.swcrc +19 -0
- package/templates/fastify/gitignore +8 -111
- package/templates/fastify/package.json +28 -40
- package/templates/fastify/pnpm-lock.yaml +1704 -3725
- package/templates/fastify/src/core/create-controller-response-schema.ts +74 -0
- package/templates/fastify/src/core/schema.ts +17 -0
- package/templates/fastify/src/env.ts +49 -0
- package/templates/fastify/src/{infra/http → http}/app.ts +13 -19
- package/templates/fastify/src/http/controllers/hello.controller.spec.ts +74 -0
- package/templates/fastify/src/http/controllers/hello.controller.ts +48 -0
- package/templates/fastify/src/http/errors.ts +89 -0
- package/templates/fastify/src/http/plugins/error-handler.plugin.ts +29 -0
- package/templates/fastify/src/http/plugins/not-found-error-handler.plugin.ts +5 -0
- package/templates/fastify/src/http/plugins/routes.plugin.ts +53 -0
- package/templates/fastify/src/http/plugins/swagger-ui.plugin.ts +32 -0
- package/templates/fastify/src/infra/http-server.ts +16 -0
- package/templates/fastify/test/integration/create-test-request.ts +30 -0
- package/templates/fastify/vitest.config.integration.mts +3 -2
- package/templates/fastify/vitest.config.mts +13 -2
- package/templates/nest/package.json +19 -19
- package/templates/nest/pnpm-lock.yaml +369 -377
- package/templates/react-vite/package.json +20 -20
- package/templates/react-vite/pnpm-lock.yaml +458 -972
- package/templates/fastify/build.config.ts +0 -56
- package/templates/fastify/src/core/domain-error.ts +0 -17
- package/templates/fastify/src/infra/env.ts +0 -22
- package/templates/fastify/src/infra/http/@types/fastify.d.ts +0 -16
- package/templates/fastify/src/infra/http/controllers/hello/hello-multipart.controller.integration-spec.ts +0 -35
- package/templates/fastify/src/infra/http/controllers/hello/hello-multipart.controller.ts +0 -65
- package/templates/fastify/src/infra/http/controllers/hello/hello.controller.integration-spec.ts +0 -38
- package/templates/fastify/src/infra/http/controllers/hello/hello.controller.ts +0 -40
- package/templates/fastify/src/infra/http/errors/bad-request.error.ts +0 -11
- package/templates/fastify/src/infra/http/errors/internal-server.error.ts +0 -13
- package/templates/fastify/src/infra/http/errors/upload-validation.error.ts +0 -21
- package/templates/fastify/src/infra/http/errors/validation.error.ts +0 -13
- package/templates/fastify/src/infra/http/plugins/error-handler.plugin.ts +0 -31
- package/templates/fastify/src/infra/http/plugins/handle-swagger-multipart.plugin.ts +0 -96
- package/templates/fastify/src/infra/http/plugins/require-upload.plugin.ts +0 -197
- package/templates/fastify/src/infra/http/routes.ts +0 -8
- package/templates/fastify/src/infra/presenters/error.presenter.ts +0 -13
- package/templates/fastify/src/infra/server.ts +0 -12
- package/templates/fastify/test/integration/sample-upload.jpg +0 -0
- package/templates/fastify/test/integration/setup.ts +0 -10
- package/templates/fastify/src/{infra/http/@types/fastify-zod-type-provider.ts → @types/fastify.ts} +1 -1
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@leo-h/create-nodejs-app",
|
3
|
-
"version": "1.0.
|
4
|
-
"packageManager": "pnpm@9.15.
|
3
|
+
"version": "1.0.32",
|
4
|
+
"packageManager": "pnpm@9.15.9",
|
5
5
|
"author": "Leonardo Henrique <leonardo0507.business@gmail.com>",
|
6
6
|
"description": "Create a modern Node.js app with TypeScript using one command.",
|
7
7
|
"license": "MIT",
|
@@ -44,26 +44,26 @@
|
|
44
44
|
"picocolors": "1.1.1",
|
45
45
|
"prompts": "2.4.2",
|
46
46
|
"validate-npm-package-name": "5.0.1",
|
47
|
-
"zod": "3.24.
|
47
|
+
"zod": "3.24.2"
|
48
48
|
},
|
49
49
|
"devDependencies": {
|
50
|
-
"@eslint/js": "9.
|
51
|
-
"@faker-js/faker": "9.
|
52
|
-
"@types/node": "22.
|
50
|
+
"@eslint/js": "9.23.0",
|
51
|
+
"@faker-js/faker": "9.6.0",
|
52
|
+
"@types/node": "22.13.14",
|
53
53
|
"@types/prompts": "2.4.9",
|
54
54
|
"@types/validate-npm-package-name": "4.0.2",
|
55
|
-
"@vitest/eslint-plugin": "1.1.
|
55
|
+
"@vitest/eslint-plugin": "1.1.38",
|
56
56
|
"conventional-changelog-conventionalcommits": "8.0.0",
|
57
|
-
"eslint": "9.
|
57
|
+
"eslint": "9.23.0",
|
58
58
|
"eslint-config-prettier": "9.1.0",
|
59
|
-
"globals": "15.
|
59
|
+
"globals": "15.15.0",
|
60
60
|
"husky": "9.1.7",
|
61
|
-
"lint-staged": "15.
|
62
|
-
"prettier": "3.
|
61
|
+
"lint-staged": "15.5.0",
|
62
|
+
"prettier": "3.5.3",
|
63
63
|
"rimraf": "6.0.1",
|
64
|
-
"tsx": "4.19.
|
65
|
-
"typescript": "5.
|
66
|
-
"typescript-eslint": "8.
|
64
|
+
"tsx": "4.19.3",
|
65
|
+
"typescript": "5.8.2",
|
66
|
+
"typescript-eslint": "8.28.0",
|
67
67
|
"unbuild": "3.5.0",
|
68
68
|
"vite-tsconfig-paths": "4.3.2",
|
69
69
|
"vitest": "1.6.1"
|
@@ -18,23 +18,23 @@
|
|
18
18
|
},
|
19
19
|
"dependencies": {
|
20
20
|
"dotenv": "16.4.7",
|
21
|
-
"zod": "3.24.
|
21
|
+
"zod": "3.24.2"
|
22
22
|
},
|
23
23
|
"devDependencies": {
|
24
|
-
"@eslint/js": "9.
|
25
|
-
"@faker-js/faker": "9.
|
26
|
-
"@types/node": "22.
|
27
|
-
"@vitest/eslint-plugin": "1.1.
|
28
|
-
"eslint": "9.
|
24
|
+
"@eslint/js": "9.23.0",
|
25
|
+
"@faker-js/faker": "9.6.0",
|
26
|
+
"@types/node": "22.13.14",
|
27
|
+
"@vitest/eslint-plugin": "1.1.38",
|
28
|
+
"eslint": "9.23.0",
|
29
29
|
"eslint-config-prettier": "9.1.0",
|
30
|
-
"globals": "15.
|
30
|
+
"globals": "15.15.0",
|
31
31
|
"husky": "9.1.7",
|
32
|
-
"lint-staged": "15.
|
33
|
-
"prettier": "3.
|
32
|
+
"lint-staged": "15.5.0",
|
33
|
+
"prettier": "3.5.3",
|
34
34
|
"rimraf": "6.0.1",
|
35
|
-
"tsx": "4.19.
|
36
|
-
"typescript": "5.
|
37
|
-
"typescript-eslint": "8.
|
35
|
+
"tsx": "4.19.3",
|
36
|
+
"typescript": "5.8.2",
|
37
|
+
"typescript-eslint": "8.28.0",
|
38
38
|
"unbuild": "3.5.0",
|
39
39
|
"vite-tsconfig-paths": "4.3.2",
|
40
40
|
"vitest": "1.6.1"
|