forked from antvis/component
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
95 lines (95 loc) · 2.53 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
{
"name": "@antv/component",
"version": "0.8.16",
"description": "The component module for antv",
"author": "https://github.com/orgs/antvis/people",
"license": "MIT",
"main": "lib/index.js",
"module": "esm/index.js",
"types": "lib/index.d.ts",
"files": [
"src",
"lib",
"esm",
"README.md",
"LICENSE"
],
"repository": {
"type": "git",
"url": "[email protected]:antvis/component.git"
},
"scripts": {
"build": "run-s clean lib",
"clean": "rimraf lib esm",
"lib": "run-p lib:*",
"lib:cjs": "tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib",
"lib:esm": "tsc -p tsconfig.json --target ES5 --module ESNext --outDir esm",
"lint-stage": "lint-staged",
"lint": "tslint -c tslint.json src/**/* tests/**/*",
"lint-fix": "run-s lint-fix:*",
"lint-fix:prettier": "prettier --write 'src/**/*.ts'",
"lint-fix:tslint": "tslint -c tslint.json --fix 'src/**/*.ts' 'tests/**/*'",
"coverage": "jest --coverage",
"test": "jest",
"test-live": "DEBUG_MODE=1 jest --watch tests",
"ci": "run-s build test coverage",
"changelog": "generate-changelog",
"prepublishOnly": "npm-run-all --parallel test build"
},
"husky": {
"hooks": {
"pre-commit": "run-s lint-stage build test"
}
},
"devDependencies": {
"@antv/color-util": "^2.0.3",
"@antv/g-canvas": "0.5.6",
"@types/jest": "^24.0.18",
"conventional-changelog-cli": "^2.1.1",
"generate-changelog": "^1.8.0",
"husky": "^3.0.4",
"jest": "^24.9.0",
"jest-electron": "^0.1.6",
"lint-staged": "^9.2.3",
"npm-run-all": "^4.1.5",
"prettier": "^1.18.2",
"rimraf": "^3.0.0",
"ts-jest": "^24.1.0",
"tslint": "^5.18.0",
"tslint-config-prettier": "^1.18.0",
"typescript": "^3.5.3"
},
"dependencies": {
"@antv/dom-util": "~2.0.1",
"@antv/g-base": "0.5.6",
"@antv/matrix-util": "^3.1.0-beta.1",
"@antv/path-util": "~2.0.7",
"@antv/scale": "~0.3.1",
"@antv/util": "~2.0.0",
"fecha": "~4.2.0",
"tslib": "^2.0.3"
},
"lint-staged": {
"*.{js,css,json,md}": [
"prettier --write",
"git add"
],
"*.{ts}": [
"tslint -c tslint.json --fix",
"prettier --write",
"git add"
]
},
"jest": {
"runner": "jest-electron/runner",
"testEnvironment": "jest-electron/environment",
"preset": "ts-jest",
"collectCoverage": false,
"collectCoverageFrom": [
"src/**/*.{ts,js}",
"!**/node_modules/**",
"!**/vendor/**"
],
"testRegex": "/tests/.*spec\\.ts?$"
}
}