UNPKG

5.57 kBJSONView Raw
1{
2 "name": "@antv/g2",
3 "version": "5.2.1",
4 "description": "the Grammar of Graphics in Javascript",
5 "license": "MIT",
6 "main": "lib/index.js",
7 "module": "esm/index.js",
8 "types": "lib/index.d.ts",
9 "unpkg": "dist/g2.min.js",
10 "exports": {
11 ".": {
12 "types": "./lib/index.d.ts",
13 "import": "./esm/index.js",
14 "require": "./lib/index.js"
15 }
16 },
17 "sideEffects": [
18 "./esm/exports.js"
19 ],
20 "files": [
21 "src",
22 "lib",
23 "esm",
24 "dist"
25 ],
26 "scripts": {
27 "start": "cd site && npm run start",
28 "dev": "cross-env TZ=Asia/Shanghai vite",
29 "dev:link": "cross-env LINK=1 vite",
30 "clean": "rimraf lib esm dist",
31 "lint-staged": "lint-staged",
32 "size": "limit-size",
33 "lint": "eslint ./src ./__tests__ && prettier ./src ./__tests__ --check ",
34 "fix": "eslint ./src ./__tests__ --fix && prettier ./src ./__tests__ --write ",
35 "test": "cross-env TZ=Asia/Shanghai node --expose-gc --max-old-space-size=4096 --unhandled-rejections=strict node_modules/jest/bin/jest __tests__ --coverage --logHeapUsage",
36 "test:unit": "cross-env TZ=Asia/Shanghai node --expose-gc --max-old-space-size=4096 --unhandled-rejections=strict node_modules/jest/bin/jest __tests__/unit/ --coverage --logHeapUsage",
37 "test:integration": "cross-env TZ=Asia/Shanghai node --expose-gc --max-old-space-size=4096 --unhandled-rejections=strict node_modules/jest/bin/jest __tests__/integration/ --coverage --logHeapUsage",
38 "preview": "vite preview",
39 "build:umd": "rimraf ./dist && node --expose-gc --max-old-space-size=4096 node_modules/rollup/dist/bin/rollup -c && npm run size",
40 "build:cjs": "rimraf ./lib && tsc --module commonjs --outDir lib",
41 "build:esm": "rimraf ./esm && tsc --module ESNext --outDir esm",
42 "build": "run-p build:*",
43 "bundle-vis": "cross-env BUNDLE_VIS=1 run-p build:umd",
44 "ci": "",
45 "prepublishOnly": "npm run ci",
46 "prepare": "husky install",
47 "upload": "node scripts/upload/snapshot.js",
48 "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
49 "translate": "translate -d"
50 },
51 "keywords": [
52 "antv",
53 "g2",
54 "visualization",
55 "chart",
56 "grammar",
57 "graphics",
58 "interaction",
59 "animation"
60 ],
61 "dependencies": {
62 "@antv/component": "^2.0.0",
63 "@antv/coord": "^0.4.6",
64 "@antv/event-emitter": "^0.1.3",
65 "@antv/g": "^6.0.0",
66 "@antv/g-canvas": "^2.0.0",
67 "@antv/g-plugin-dragndrop": "^2.0.0",
68 "@antv/path-util": "^3.0.1",
69 "@antv/scale": "^0.4.12",
70 "@antv/util": "^3.3.5",
71 "d3-array": "^3.2.4",
72 "d3-dsv": "^3.0.1",
73 "d3-force": "^3.0.0",
74 "d3-format": "^3.1.0",
75 "d3-geo": "^3.1.0",
76 "d3-hierarchy": "^3.1.2",
77 "d3-path": "^3.1.0",
78 "d3-scale-chromatic": "^3.0.0",
79 "d3-shape": "^3.2.0",
80 "d3-voronoi": "^1.1.4",
81 "flru": "^1.0.2",
82 "fmin": "^0.0.2",
83 "pdfast": "^0.2.0"
84 },
85 "devDependencies": {
86 "@antv/data-set": "^0.11.8",
87 "@antv/g-pattern": "^2.0.0",
88 "@antv/g-plugin-3d": "^2.0.0",
89 "@antv/g-plugin-control": "^2.0.0",
90 "@antv/g-plugin-rough-canvas-renderer": "^2.0.0",
91 "@antv/g-plugin-rough-svg-renderer": "^2.0.0",
92 "@antv/g-svg": "^2.0.0",
93 "@antv/g-webgl": "^2.0.0",
94 "@antv/g2-extension-3d": "^0.1.3",
95 "@antv/g2-extension-ava": "^0.1.1",
96 "@antv/g2-extension-plot": "^0.1.0",
97 "@antv/translator": "^1.0.1",
98 "@commitlint/cli": "^11.0.0",
99 "@commitlint/config-conventional": "^17.8.1",
100 "@optimize-lodash/rollup-plugin": "^4.0.4",
101 "@rollup/plugin-commonjs": "^21.1.0",
102 "@rollup/plugin-json": "^6.0.1",
103 "@rollup/plugin-node-resolve": "^15.2.3",
104 "@rollup/plugin-terser": "^0.4.4",
105 "@types/d3-array": "3.0.5",
106 "@types/d3-path": "^3.0.2",
107 "@types/d3-shape": "^3.1.5",
108 "@types/diff": "^5.0.8",
109 "@types/jest": "^26.0.24",
110 "@types/pixelmatch": "^5.2.6",
111 "@types/pngjs": "^6.0.4",
112 "@typescript-eslint/eslint-plugin": "^4.33.0",
113 "@typescript-eslint/parser": "^4.33.0",
114 "conventional-changelog-cli": "^2.2.2",
115 "cross-env": "^7.0.3",
116 "d3-dsv": "^3.0.1",
117 "d3-fetch": "^3.0.1",
118 "d3-geo-projection": "^4.0.0",
119 "d3-hierarchy": "^3.1.2",
120 "d3-interpolate": "^3.0.1",
121 "d3-random": "^3.0.1",
122 "d3-regression": "^1.3.10",
123 "eslint": "^7.32.0",
124 "eslint-plugin-import": "^2.29.0",
125 "fecha": "^4.2.3",
126 "husky": "^7.0.4",
127 "jest": "^26.6.3",
128 "jsdom": "^19.0.0",
129 "limit-size": "^0.1.4",
130 "lint-staged": "^10.5.4",
131 "npm-run-all": "^4.1.5",
132 "pixelmatch": "5.3.0",
133 "pngjs": "^6.0.0",
134 "prettier": "^2.8.8",
135 "reflect-metadata": "^0.1.13",
136 "rimraf": "^3.0.2",
137 "rollup": "^2.79.1",
138 "rollup-plugin-polyfill-node": "^0.8.0",
139 "rollup-plugin-typescript2": "^0.35.0",
140 "rollup-plugin-visualizer": "^5.9.2",
141 "topojson": "^3.0.2",
142 "ts-jest": "^26.5.6",
143 "typescript": "^4.9.5",
144 "vite": "^3.2.7",
145 "xmlserializer": "^0.6.1"
146 },
147 "lint-staged": {
148 "*.{ts,tsx}": [
149 "eslint --fix",
150 "prettier --write",
151 "git add"
152 ]
153 },
154 "limit-size": [
155 {
156 "path": "dist/g2.min.js",
157 "limit": "285 Kb",
158 "gzip": true
159 },
160 {
161 "path": "dist/g2.min.js",
162 "limit": "950 Kb",
163 "gzip": false
164 },
165 {
166 "path": "dist/g2.lite.min.js",
167 "limit": "250 Kb",
168 "gzip": true
169 }
170 ],
171 "author": {
172 "name": "AntV",
173 "url": "https://antv.antgroup.com/"
174 },
175 "repository": {
176 "type": "git",
177 "url": "https://github.com/antvis/g2"
178 },
179 "bugs": {
180 "url": "https://github.com/antvis/g2/issues"
181 }
182}