UNPKG

4.59 kBJSONView Raw
1{
2 "name": "@antv/g2",
3 "version": "4.2.4",
4 "description": "the Grammar of Graphics in Javascript",
5 "main": "lib/index.js",
6 "module": "esm/index.js",
7 "types": "lib/index.d.ts",
8 "unpkg": "dist/g2.min.js",
9 "files": [
10 "src",
11 "lib",
12 "esm",
13 "dist"
14 ],
15 "scripts": {
16 "start": "npm run site:clean && npm run site:develop",
17 "site:develop": "gatsby develop --open -H 0.0.0.0",
18 "site:build": "npm run site:clean && gatsby build --prefix-paths",
19 "site:clean": "gatsby clean",
20 "site:deploy": "npm run build && npm run site:build && npm run site:copy-mirror-action && gh-pages -d public",
21 "site:copy-mirror-action": "mkdir -p public/.github/workflows && cp .github/workflows/mirror.yml public/.github/workflows",
22 "clean": "rimraf lib esm dist",
23 "fix": "eslint ./src/**/*.ts ./tests/**/*.ts --fix && prettier --write ./src ./tests && lint-md ./docs --fix",
24 "lint": "run-p lint:*",
25 "lint:md": "lint-md ./docs",
26 "lint:eslint": "eslint ./src/**/*.ts",
27 "test": "jest -w 16",
28 "test-live": "DEBUG_MODE=1 jest --watch",
29 "coverage": "jest -w 16 --coverage",
30 "lib:cjs": "tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib",
31 "lib:esm": "tsc -p tsconfig.json --target ES5 --module ESNext --outDir esm",
32 "lib": "run-p lib:*",
33 "build": "run-s clean lib",
34 "dist": "webpack --config webpack.config.js --mode production",
35 "ci": "run-s build coverage",
36 "prepublishOnly": "npm-run-all --parallel lint test build dist",
37 "changelog": "generate-changelog",
38 "analyz": "webpack --profile --json > stats.json && webpack-bundle-analyzer ./stats.json"
39 },
40 "dependencies": {
41 "@antv/adjust": "^0.2.1",
42 "@antv/attr": "^0.3.1",
43 "@antv/color-util": "^2.0.2",
44 "@antv/component": "^0.8.27",
45 "@antv/coord": "^0.3.0",
46 "@antv/dom-util": "^2.0.2",
47 "@antv/event-emitter": "~0.1.0",
48 "@antv/g-base": "~0.5.6",
49 "@antv/g-canvas": "~0.5.10",
50 "@antv/g-svg": "~0.5.6",
51 "@antv/matrix-util": "^3.1.0-beta.3",
52 "@antv/path-util": "^2.0.15",
53 "@antv/scale": "^0.3.14",
54 "@antv/util": "~2.0.5",
55 "tslib": "^2.0.0"
56 },
57 "devDependencies": {
58 "@antv/data-set": "^0.11.2",
59 "@antv/gatsby-theme-antv": "^1.1.15",
60 "@babel/core": "^7.15.8",
61 "@babel/preset-env": "^7.15.8",
62 "@commitlint/cli": "^13.2.1",
63 "@commitlint/config-angular": "^13.1.0",
64 "@types/jest": "^25.2.1",
65 "@typescript-eslint/eslint-plugin": "^4.33.0",
66 "@typescript-eslint/parser": "^4.33.0",
67 "babel-loader": "^8.2.3",
68 "conventional-changelog-cli": "^2.0.28",
69 "eslint": "^7.32.0",
70 "gatsby": "^2.20.23",
71 "generate-changelog": "^1.8.0",
72 "gh-pages": "^3.2.3",
73 "husky": "^7.0.4",
74 "jest": "^26.0.1",
75 "jest-electron": "^0.1.7",
76 "jest-extended": "^0.11.2",
77 "lint-md-cli": "^0.1.2",
78 "lint-staged": "^11.2.6",
79 "lodash": "^4.17.15",
80 "mock-variable": "^0.0.2",
81 "npm-run-all": "^4.1.5",
82 "prettier": "^2.0.5",
83 "react": "^16.11.0",
84 "react-dom": "^16.11.0",
85 "react-i18next": "^11.1.0",
86 "rimraf": "^3.0.0",
87 "ts-jest": "^26.0.0",
88 "ts-loader": "^8.2.0",
89 "typedoc": "^0.17.6",
90 "typedoc-plugin-markdown": "^2.2.11",
91 "typescript": "^4.4.4",
92 "webpack": "^4.41.5",
93 "webpack-bundle-analyzer": "^3.6.0",
94 "webpack-cli": "^3.3.10"
95 },
96 "lint-staged": {
97 "*.{js,css,json,md}": [
98 "prettier --write"
99 ],
100 "*.ts": [
101 "prettier --write",
102 "eslint ./src/**/*.ts ./tests/**/*.ts --fix",
103 "git add ."
104 ],
105 "*.md": [
106 "lint-md ./docs --fix"
107 ]
108 },
109 "jest": {
110 "runner": "jest-electron/runner",
111 "testEnvironment": "jest-electron/environment",
112 "testTimeout": 30000,
113 "preset": "ts-jest",
114 "collectCoverage": false,
115 "collectCoverageFrom": [
116 "src/**/*.{ts,js}",
117 "!**/node_modules/**",
118 "!**/vendor/**"
119 ],
120 "testRegex": "/tests/.*-spec\\.ts?$",
121 "moduleFileExtensions": [
122 "ts",
123 "js",
124 "json"
125 ]
126 },
127 "homepage": "https://g2.antv.vision",
128 "repository": {
129 "type": "git",
130 "url": "https://github.com/antvis/g2"
131 },
132 "bugs": {
133 "url": "https://github.com/antvis/g2/issues"
134 },
135 "keywords": [
136 "antv",
137 "g2",
138 "visualization",
139 "chart",
140 "grammar",
141 "graphics",
142 "interaction"
143 ],
144 "author": "https://github.com/orgs/antvis/people",
145 "license": "MIT",
146 "resolutions": {
147 "monaco-editor": "0.21.3",
148 "@babel/plugin-transform-spread": "7.12.1",
149 "d3-array": "2.12.1",
150 "normalize-url": "^4.5.1",
151 "remark-mdx": "1.6.22"
152 }
153}