-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
130 lines (130 loc) · 2.99 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
"name": "private-node-starter",
"private": true,
"version": "1.0.0",
"description": "Starter project for Node.js/TypeScript projects.",
"keywords": [
"node",
"typescript",
"starter"
],
"scripts": {
"clean": "rimraf coverage *.log*",
"lint": "eslint src/**/*.ts",
"check-types": "tsc --noEmit",
"start": "ts-node src/index.ts",
"pretest": "npm run clean && npm run lint",
"test": "jest --watchAll",
"precover": "npm run clean && npm run lint",
"cover": "jest --coverage",
"commit": "git-cz"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-push": "tsc --noEmit && npm run cover"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"prettier": {
"arrowParens": "avoid",
"proseWrap": "always",
"semi": false,
"singleQuote": true,
"trailingComma": "all"
},
"jest": {
"coverageDirectory": "coverage",
"coverageReporters": [
"lcov",
"text"
],
"coverageThreshold": {
"global": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
}
},
"globals": {
"ts-jest": {
"diagnostics": {
"//": "https://github.com/kulshekhar/ts-jest/issues/748#issuecomment-423528659",
"ignoreCodes": [
151001
]
}
}
},
"moduleNameMapper": {
"^src/(.*)$": "<rootDir>/src/$1"
},
"modulePathIgnorePatterns": [
"node_modules"
],
"preset": "ts-jest",
"testEnvironment": "node",
"verbose": true,
"watchPlugins": [
"jest-watch-typeahead/filename",
"jest-watch-typeahead/testname"
]
},
"lint-staged": {
"*.ts": [
"eslint --fix",
"prettier --write",
"git add"
],
"*.{json,md}": [
"prettier --write",
"git add"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/jedmao/private-node-starter.git"
},
"bugs": {
"url": "https://github.com/jedmao/private-node-starter/issues"
},
"homepage": "https://github.com/jedmao/private-node-starter#readme",
"author": "Jed Mao <[email protected]>",
"license": "MIT",
"dependencies": {
"ts-node": "^9",
"tslib": "^2",
"typescript": "^4"
},
"devDependencies": {
"@commitlint/cli": "^11",
"@commitlint/config-conventional": "^11",
"@types/jest": "^26",
"@typescript-eslint/eslint-plugin": "^4",
"@typescript-eslint/parser": "^4",
"commitizen": "^4",
"cz-conventional-changelog": "^3",
"eslint": "^7",
"eslint-config-prettier": "^6",
"eslint-config-xo": "^0.33",
"eslint-plugin-prettier": "^3",
"husky": "^4",
"jest": "^26",
"jest-watch-typeahead": "^0.6",
"lint-staged": "^10",
"prettier": "^2",
"rimraf": "^3",
"ts-jest": "^26"
}
}