Skip to content

Commit

Permalink
chore!: removing unused dependencies and implementing logging (#2)
Browse files Browse the repository at this point in the history
* fix(app/function): false import

* feat(app/decorator): new validator decorator and implement it

* fix(app/types): fix Input decorator

It's fucked up using Partial...

* refactor(app/controller): extend Todo target

* refactor(app/controller): extend Todo target

* refactor(app/decorator/validator): improve typing for zod validator

* refactor(app/controller): move the typing

* refactor(app): move app function to base function

* refactor(error): add some json validating

* feat(app/error): improving onError

* refactor(error): ambigous prop key

* deps: add logger and implementing it

* feat(app/error): implementing pino on logging error

* refactor(env): add example of environment variable

* refactor(env): change PRODUCTION to NODE_ENV
  • Loading branch information
ikr4-m authored Feb 29, 2024
1 parent 6e34a88 commit 92370fc
Show file tree
Hide file tree
Showing 16 changed files with 338 additions and 37 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NODE_ENV=production
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
.vimsession
.env
.env.prod
.env.prod
package-lock.json
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"start": "tsx src/index.ts",
"compile": "tsc --build tsconfig.json",
"lint": "eslint .",
"dev": "tsx watch src/index.ts"
"dev": "tsx watch --env-file=./.env src/index.ts"
},
"dependencies": {
"@hono/node-server": "^1.7.0",
Expand All @@ -15,9 +15,10 @@
},
"devDependencies": {
"@hazmi35/eslint-config": "^13.3.1",
"@hono/zod-validator": "^0.1.11",
"@tsconfig/node-lts": "^20.1.1",
"@types/node": "^20.11.20",
"pino": "^8.19.0",
"pino-pretty": "^10.3.1",
"tsx": "^3.12.2",
"zod": "^3.22.4"
}
Expand Down
Loading

0 comments on commit 92370fc

Please sign in to comment.