-
Notifications
You must be signed in to change notification settings - Fork 39
/
package.json
134 lines (134 loc) · 3.56 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.1",
"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.2",
"@antv/scale": "^0.4.3",
"@antv/util": "^3.3.5",
"svg-path-parser": "^1.1.0"
},
"devDependencies": {
"@antv/g-canvas": "^2.0.18",
"@antv/g-plugin-control": "^2.0.13",
"@antv/g-svg": "^2.0.15",
"@antv/g-webgl": "^2.0.22",
"@babel/plugin-proposal-decorators": "^7.20.5",
"@babel/plugin-transform-runtime": "^7.17.0",
"@babel/preset-env": "^7.16.11",
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^12.0.1",
"@types/jest": "^29.5.1",
"@types/prettier": "^2.7.3",
"@types/jsdom": "^21.1.1",
"@types/react": "^16.14.34",
"@types/react-dom": "^18.0.9",
"@types/svg-path-parser": "^1.1.2",
"@types/xmlserializer": "^0.6.3",
"@typescript-eslint/eslint-plugin": "^6.5.0",
"@typescript-eslint/parser": "^6.5.0",
"@vitejs/plugin-react": "^2.2.0",
"antd": "^5.0.2",
"archiver": "^5.3.1",
"babel-loader": "^8.2.3",
"cross-env": "^7.0.3",
"dayjs": "^1.11.9",
"eslint": "^8.48.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-typescript": "^3.6.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-prettier": "^4.2.1",
"gh-pages": "^3.2.3",
"husky": "^5.0.9",
"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.2.0",
"react-dom": "^18.2.0",
"react-i18next": "^11.7.0",
"rimraf": "^3.0.2",
"ts-jest": "^29.1.1",
"ts-loader": "^9.4.4",
"tslib": "^2.6.2",
"typescript": "^5.2.2",
"vite": "^3.1.8",
"webpack": "^5.88.2",
"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"
}
}