-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
62 lines (62 loc) · 1.95 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
{
"name": "ts-template",
"version": "1.0.0",
"author": "Rufus Raghunath",
"description": "My personal template for TypeScript projects",
"main": "index.ts",
"types": "dist/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/rufusraghunath/ts-template.git"
},
"keywords": [],
"license": "MIT",
"bugs": {
"url": "https://github.com/rufusraghunath/ts-template/issues"
},
"homepage": "https://github.com/rufusraghunath/ts-template#readme",
"scripts": {
"prepublish": "npm run build",
"build": "npm run lint && npm run prettier && jest --config jestconfig.json && webpack --mode=production && npm run copy-types",
"test": "jest --config jestconfig.json --watch",
"prettier:base": "prettier --parser typescript",
"prettier": "npm run prettier:base -- --list-different \"src/**/*.ts\"",
"prettier:fix": "npm run prettier:base -- --loglevel warn --write \"src/**/*.ts\"",
"lint": "npx eslint 'src/**/*.ts' -c ./eslintconfig.json",
"lint:fix": "npm run lint -- --fix",
"copy-types": "echo \"Script copy-types needs implementation in package.json\" && echo \"E.g.: 'cp src/index.d.ts dist'\n\""
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "npm run build"
}
},
"lint-staged": {
"*.ts": [
"npm run prettier:fix",
"npm run lint:fix",
"git add"
]
},
"dependencies": {},
"devDependencies": {
"@types/jest": "^24.0.19",
"@typescript-eslint/eslint-plugin": "^2.4.0",
"@typescript-eslint/parser": "^2.4.0",
"eslint": "^6.5.1",
"eslint-config-prettier": "^6.4.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-prettier": "^3.1.1",
"husky": "^3.0.9",
"jest": "^24.9.0",
"jest-cli": "^24.9.0",
"lint-staged": "^9.4.2",
"prettier": "^1.18.2",
"ts-jest": "^24.1.0",
"ts-loader": "^6.2.0",
"typescript": "^3.7.3",
"webpack": "^4.41.0",
"webpack-cli": "^3.3.9"
}
}