-
Notifications
You must be signed in to change notification settings - Fork 42
/
package.json
134 lines (134 loc) · 3.57 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
131
132
133
134
{
"name": "@antv/component",
"version": "2.1.2",
"description": "Visualization components for AntV, based on G.",
"license": "MIT",
"main": "lib/index.js",
"module": "esm/index.js",
"unpkg": "dist/component.min.js",
"types": "lib/index.d.ts",
"exports": {
".": {
"types": "./lib/index.d.ts",
"import": "./esm/index.js",
"require": "./lib/index.js"
}
},
"files": [
"src",
"lib",
"esm",
"dist"
],
"sideEffects": false,
"scripts": {
"dev": "vite",
"clean": "rimraf lib esm dist",
"lint-staged": "lint-staged",
"size": "limit-size",
"lint": "NODE_ENV=test && eslint ./src/**/*.ts ./__tests__/**/*.ts && prettier ./src ./__tests__ --check ",
"fix": "eslint ./src/**/*.ts ./__tests__/**/*.ts --fix && prettier ./src ./__tests__ --write ",
"test": "jest",
"build": "run-s clean build:* size",
"build:umd": "webpack",
"build:cjs": "tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib",
"build:esm": "tsc -p tsconfig.json --target ES5 --module ESNext --outDir esm",
"ci": "run-s lint test build",
"prepublishOnly": "npm run ci",
"prepare": "husky install"
},
"keywords": [
"antv",
"visualization",
"ui",
"component"
],
"dependencies": {
"@antv/g": "^6.1.11",
"@antv/scale": "^0.4.16",
"@antv/util": "^3.3.10",
"svg-path-parser": "^1.1.0"
},
"devDependencies": {
"@antv/g-canvas": "^2.0.29",
"@antv/g-plugin-control": "^2.0.22",
"@antv/g-svg": "^2.0.24",
"@antv/g-webgl": "^2.0.33",
"@babel/plugin-proposal-decorators": "^7.25.9",
"@babel/plugin-transform-runtime": "^7.25.9",
"@babel/preset-env": "^7.26.0",
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^12.1.4",
"@types/jest": "^29.5.14",
"@types/jsdom": "^21.1.7",
"@types/prettier": "^2.7.3",
"@types/react": "^16.14.62",
"@types/react-dom": "^18.3.1",
"@types/svg-path-parser": "^1.1.6",
"@types/xmlserializer": "^0.6.6",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@vitejs/plugin-react": "^2.2.0",
"antd": "^5.22.2",
"archiver": "^5.3.2",
"babel-loader": "^8.4.1",
"cross-env": "^7.0.3",
"dayjs": "^1.11.13",
"eslint": "^8.57.1",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-prettier": "^4.2.1",
"gh-pages": "^3.2.3",
"husky": "^5.2.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jsdom": "^19.0.0",
"limit-size": "^0.1.4",
"lint-staged": "^10.5.4",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.8",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-i18next": "^11.18.6",
"rimraf": "^3.0.2",
"ts-jest": "^29.2.5",
"ts-loader": "^9.5.1",
"tslib": "^2.8.1",
"typescript": "^5.7.2",
"vite": "^3.2.11",
"webpack": "^5.96.1",
"webpack-cli": "^5.1.4",
"xmlserializer": "^0.6.1"
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix",
"prettier --write",
"git add"
]
},
"limit-size": [
{
"path": "dist/component.min.js",
"limit": "80 Kb",
"gzip": true
},
{
"path": "dist/component.min.js",
"limit": "250 Kb"
}
],
"author": {
"name": "AntV",
"url": "https://antv.vision/"
},
"repository": {
"type": "git",
"url": "https://github.com/antvis/component"
},
"bugs": {
"url": "https://github.com/antvis/component/issues"
}
}