-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
72 lines (72 loc) · 1.96 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
{
"name": "glicko-two",
"version": "1.3.1",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"license": "MIT",
"homepage": "https://github.com/ReedD/glicko-two",
"repository": {
"type": "git",
"url": "https://github.com/ReedD/glicko-two.git"
},
"scripts": {
"build": "yarn run clean:build && yarn run build:code && yarn run build:types && yarn clean:dist",
"build:code": "babel src --extensions '.ts' --out-dir dist --copy-files",
"build:types": "tsc --emitDeclarationOnly --declaration",
"clean:build": "rm -rf dist",
"clean:dist": "find ./dist -type d -name __tests__ -o -name __mocks__ -o -name __snapshots__ | xargs rm -rf",
"precommit": "lint-staged",
"prepublishOnly": "yarn run build",
"prettier": "yarn run prettier:ts -- \"./src/**/*.{ts,tsx}\"",
"prettier:ts": "prettier --write",
"start": "yarn run watch:client & yarn run watch:server",
"test": "NODE_ENV=test jest"
},
"lint-staged": {
"*.ts": [
"prettier --write",
"git add",
"jest --bail --findRelatedTests"
]
},
"prettier": {
"trailingComma": "all",
"tabWidth": 2,
"useTabs": false,
"singleQuote": true
},
"jest": {
"clearMocks": true,
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"json"
],
"resetMocks": true,
"restoreMocks": true,
"testEnvironment": "node",
"transform": {
"^.+\\.(ts|tsx)$": "babel-jest"
},
"testMatch": [
"**/src/**/__tests__/*.spec.(ts|tsx)"
]
},
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.3.4",
"@babel/node": "^7.2.2",
"@babel/plugin-proposal-class-properties": "^7.3.4",
"@babel/preset-env": "^7.3.4",
"@babel/preset-typescript": "^7.3.3",
"@types/jest": "^24.0.9",
"babel-jest": "^24.3.1",
"husky": "^1.3.1",
"jest": "^24.3.1",
"lint-staged": "^8.1.5",
"prettier": "^1.16.4",
"tslint": "^5.13.1",
"typescript": "^3.3.3333"
}
}