-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
95 lines (95 loc) Β· 2.29 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": "@anyplot/graphics",
"version": "0.1.0-beta.1",
"description": "Build your GUI based on Canvas & SVG.",
"license": "MIT",
"main": "lib/index.js",
"module": "esm/index.js",
"unpkg": "dist/graphics.min.js",
"types": "lib/index.d.ts",
"files": [
"src",
"lib",
"esm",
"dist"
],
"scripts": {
"clean": "rimraf -rf lib esm dist",
"lint-staged": "lint-staged",
"test": "jest",
"build:umd": "rimraf ./dist && rollup -c && npm run size",
"build:cjs": "rimraf ./lib && tsc --module commonjs --outDir lib",
"build:esm": "rimraf ./esm && tsc --module ESNext --outDir esm",
"build": "npm run build:cjs && npm run build:esm && npm run build:umd",
"size": "limit-size",
"prepublishOnly": "npm run build"
},
"dependencies": {
"@antv/event-emitter": "^0.1.2"
},
"peerDependencies": {
"lodash": "^4.17.20"
},
"keywords": [
"visualization",
"anyplot",
"graphics",
"@anyplot/graphics"
],
"devDependencies": {
"@anyplot/lru": "^1.0.0",
"@commitlint/cli": "^11.0.0",
"@types/jest": "^26.0.20",
"@types/lodash": "^4.14.168",
"husky": "^5.0.9",
"jest": "^26.6.3",
"jest-electron": "^0.1.11",
"limit-size": "^0.1.4",
"lint-staged": "^10.5.4",
"lodash": "^4.17.20",
"prettier": "^2.2.1",
"rimraf": "^3.0.2",
"rollup": "^2.39.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-size": "^0.2.2",
"rollup-plugin-typescript": "^1.0.1",
"rollup-plugin-uglify": "^6.0.4",
"ts-jest": "^26.5.1",
"ts-loader": "^8.0.17",
"ts-node": "^9.1.1",
"typescript": "^4.1.5"
},
"jest": {
"runner": "jest-electron/runner",
"testEnvironment": "jest-electron/environment",
"preset": "ts-jest",
"collectCoverage": true,
"testRegex": "(/__tests__/.*\\.(test|spec))\\.ts$",
"collectCoverageFrom": [
"src/**/*.ts"
]
},
"lint-staged": {
"*.{ts,tsx}": [
"prettier --write",
"git add"
]
},
"husky": {
"hooks": {
"pre-commit": "npm run lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"limit-size": [
{
"path": "dist/graphics.min.js",
"limit": "128 Kb"
},
{
"path": "dist/graphics.min.js",
"limit": "51.2 Kb",
"gzip": true
}
]
}