UNPKG

@antv/g2

Version:

the Grammar of Graphics in Javascript

146 lines (145 loc) 4.29 kB
{ "name": "@antv/g2", "version": "4.1.5", "description": "the Grammar of Graphics in Javascript", "main": "lib/index.js", "module": "esm/index.js", "types": "lib/index.d.ts", "unpkg": "dist/g2.min.js", "files": [ "src", "lib", "esm", "dist" ], "scripts": { "start": "npm run site:develop", "site:develop": "gatsby develop --open -H 0.0.0.0", "site:build": "npm run site:clean && gatsby build --prefix-paths", "site:clean": "gatsby clean", "site:deploy": "npm run build && npm run site:build && npm run site:copy-mirror-action && gh-pages -d public", "site:copy-mirror-action": "mkdir -p public/.github/workflows && cp .github/workflows/mirror.yml public/.github/workflows", "clean": "rimraf lib esm dist", "fix": "tslint -c tslint.json ./src/**/*.ts ./tests/**/*.ts --fix && prettier --write ./src ./tests && lint-md ./docs --fix", "lint": "run-p lint:*", "lint:tslint": "tslint -c tslint.json 'src/**/*.ts'", "lint:md": "lint-md ./docs", "test": "jest", "test-live": "DEBUG_MODE=1 jest --watch tests/unit", "coverage": "jest --coverage", "lib:cjs": "tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib", "lib:esm": "tsc -p tsconfig.json --target ES5 --module ESNext --outDir esm", "lib": "run-p lib:*", "build": "run-s clean lib", "dist": "webpack --config webpack.config.js --mode production", "ci": "run-s build coverage", "prepublishOnly": "npm-run-all --parallel lint test build dist", "changelog": "generate-changelog", "analyz": "webpack --profile --json > stats.json && webpack-bundle-analyzer ./stats.json" }, "dependencies": { "@antv/adjust": "^0.2.1", "@antv/attr": "^0.3.1", "@antv/color-util": "^2.0.2", "@antv/component": "^0.8.0", "@antv/coord": "^0.3.0", "@antv/dom-util": "^2.0.2", "@antv/event-emitter": "~0.1.0", "@antv/g-base": "^0.5.0", "@antv/g-canvas": "^0.5.0", "@antv/g-svg": "^0.5.0", "@antv/matrix-util": "^3.1.0-beta.1", "@antv/path-util": "^2.0.3", "@antv/scale": "^0.3.1", "@antv/util": "~2.0.5", "tslib": "^2.0.0" }, "devDependencies": { "@antv/data-set": "^0.11.2", "@antv/gatsby-theme-antv": "^1.0.4", "@commitlint/cli": "^8.2.0", "@commitlint/config-angular": "^8.2.0", "@types/jest": "^25.2.1", "conventional-changelog-cli": "^2.0.28", "gatsby": "^2.20.23", "generate-changelog": "^1.8.0", "gh-pages": "^2.1.1", "husky": "^4.2.5", "jest": "^26.0.1", "jest-electron": "^0.1.7", "jest-extended": "^0.11.2", "lint-md-cli": "^0.1.2", "lint-staged": "^10.2.2", "lodash": "^4.17.15", "npm-run-all": "^4.1.5", "prettier": "^2.0.5", "react-i18next": "^11.1.0", "rimraf": "^3.0.0", "ts-jest": "^26.0.0", "ts-loader": "^7.0.2", "tslint": "^6.1.2", "tslint-config-prettier": "^1.18.0", "typedoc": "^0.17.6", "typedoc-plugin-markdown": "^2.2.11", "typescript": "^3.5.3", "webpack": "^4.41.5", "webpack-bundle-analyzer": "^3.6.0", "webpack-cli": "^3.3.10" }, "husky": { "hooks": { "pre-commit": "lint-staged && run-s lint test", "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" } }, "lint-staged": { "*.{js,css,json,md}": [ "prettier --write", "git add" ], "*.{ts}": [ "tslint -c tslint.json --fix", "prettier --write", "git add" ], "*.md": [ "lint-md ./docs --fix" ] }, "jest": { "runner": "jest-electron/runner", "testEnvironment": "jest-electron/environment", "preset": "ts-jest", "collectCoverage": false, "collectCoverageFrom": [ "src/**/*.{ts,js}", "!**/node_modules/**", "!**/vendor/**" ], "testRegex": "/tests/.*-spec\\.ts?$", "moduleFileExtensions": [ "ts", "js", "json" ] }, "homepage": "https://g2.antv.vision", "repository": { "type": "git", "url": "https://github.com/antvis/g2" }, "bugs": { "url": "https://github.com/antvis/g2/issues" }, "keywords": [ "antv", "g2", "visualization", "chart", "grammar", "graphics", "interaction" ], "author": "https://github.com/orgs/antvis/people", "license": "MIT" }