Skip to content

Commit

Permalink
Adds nestia
Browse files Browse the repository at this point in the history
  • Loading branch information
geongeorge committed Dec 16, 2023
1 parent 48312a5 commit 9860896
Show file tree
Hide file tree
Showing 3 changed files with 565 additions and 31 deletions.
17 changes: 12 additions & 5 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,23 @@
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json"
"test:e2e": "jest --config ./test/jest-e2e.json",
"prepare": "ts-patch install && typia patch"
},
"dependencies": {
"@nestia/core": "^2.4.3",
"@nestia/e2e": "^0.4.0",
"@nestjs/common": "^10.0.0",
"@nestjs/core": "^10.0.0",
"@nestjs/platform-express": "^10.0.0",
"@remix-run/node": "^2.4.0",
"node-watch": "^0.7.4",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.8.1"
"rxjs": "^7.8.1",
"typia": "^5.3.5"
},
"devDependencies": {
"@nestia/sdk": "^2.4.3",
"@nestjs/cli": "^10.0.0",
"@nestjs/schematics": "^10.0.0",
"@nestjs/testing": "^10.0.0",
Expand All @@ -43,14 +48,16 @@
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"jest": "^29.5.0",
"nestia": "^5.1.2",
"prettier": "^3.0.0",
"source-map-support": "^0.5.21",
"supertest": "^6.3.3",
"ts-jest": "^29.1.0",
"ts-loader": "^9.4.3",
"ts-node": "^10.9.1",
"ts-node": "^10.9.2",
"ts-patch": "^3.1.1",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.1.3"
"typescript": "5.3.2"
},
"jest": {
"moduleFileExtensions": [
Expand All @@ -69,4 +76,4 @@
"coverageDirectory": "../coverage",
"testEnvironment": "node"
}
}
}
35 changes: 32 additions & 3 deletions server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,39 @@
"baseUrl": "./",
"incremental": true,
"skipLibCheck": true,
"strictNullChecks": false,
"strictNullChecks": true,
"noImplicitAny": false,
"strictBindCallApply": false,
"forceConsistentCasingInFileNames": false,
"noFallthroughCasesInSwitch": false
"noFallthroughCasesInSwitch": false,
"plugins": [
{
"transform": "@nestia/core/lib/transform",
/**
* Validate request body.
*
* - "assert": Use typia.assert() function
* - "is": Use typia.is() function
* - "validate": Use typia.validate() function
* - "assertEquals": Use typia.assertEquals() function
* - "equals": Use typia.equals() function
* - "validateEquals": Use typia.validateEquals() function
*/
"validate": "assert",
/**
* Validate JSON typed response body.
*
* - "assert": Use typia.assertStringify() function
* - "is": Use typia.isStringify() function
* - "validate": Use typia.validateStringify() function
* - "stringify": Use typia.stringify() function, but dangerous
* - null: Just use JSON.stringify() function, without boosting
*/
"stringify": "assert"
},
{
"transform": "typia/lib/transform"
}
]
}
}
}
Loading

0 comments on commit 9860896

Please sign in to comment.