/
package.json
88 lines (88 loc) · 2.66 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"name": "fastify-clean-architecture",
"version": "1.0.0",
"description": "A simple API built with Fastify & Typescript that follows DDD + Clean Architecture principles",
"main": "index.js",
"repository": "https://github.com/revell29/fastify-clean-architecture",
"author": "Apsyadira",
"license": "MIT",
"private": true,
"dependencies": {
"bcrypt": "^5.0.1",
"bluebird": "^3.7.2",
"config-yaml": "^1.1.6",
"fastify": "^3.25.3",
"fastify-cors": "^6.0.2",
"fastify-jwt": "^4.1.3",
"fastify-plugin": "^3.0.0",
"joi": "^17.5.0",
"pg-promise": "^10.11.1",
"pino-pretty": "^7.3.0"
},
"scripts": {
"build": "swc src -d dist",
"build-dev": "npm run build && NODE_ENV=development node --inspect dist/server.js",
"dev": "nodemon --ext ts --exec \"npm run build-dev\"",
"start": "npm run build && NODE_ENV=production node dist/server.js",
"eslint:check": "eslint src/**/*.ts",
"eslint:fix": "eslint src/**/*.ts --fix",
"prettier:check": "prettier --check 'src/**/*.ts'",
"prettier:fix": "prettier --write 'src/**/*.ts'",
"prepare": "husky install",
"test": "jest"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"prepare-commit-msg": "exec < /dev/tty && git cz --hook || true"
}
},
"devDependencies": {
"@babel/core": "^7.16.7",
"@babel/preset-env": "^7.16.7",
"@babel/preset-typescript": "^7.16.7",
"@commitlint/cli": "^16.0.1",
"@commitlint/config-conventional": "^16.0.0",
"@swc/cli": "^0.1.55",
"@swc/core": "^1.2.151",
"@types/bcrypt": "^5.0.0",
"@types/config-yaml": "^1.1.1",
"@types/jest": "^27.4.0",
"@types/node": "^17.0.8",
"@typescript-eslint/eslint-plugin": "^5.9.0",
"@typescript-eslint/parser": "^5.9.0",
"commitizen": "^4.2.4",
"cross-env": "^7.0.3",
"cz-conventional-changelog": "^3.3.0",
"dotenv": "^10.0.0",
"eslint": "^8.6.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-functional": "^4.0.2",
"eslint-plugin-import": "^2.25.4",
"husky": "^7.0.4",
"jest": "^27.4.7",
"lint-staged": "^12.1.7",
"nodemon": "^2.0.15",
"prettier": "^2.5.1",
"ts-jest": "^27.1.2",
"ts-node": "^10.4.0",
"tsconfig-paths": "^3.12.0",
"typescript": "^4.5.4"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"lint-staged": {
"src/**/*.{ts,js,yml,yaml}": [
"yarn eslint:check",
"yarn eslint:fix",
"yarn prettier:check",
"yarn prettier:fix"
],
"*.{js,jsx,ts,tsx,css,md}": "prettier --write ."
}
}