UNPKG

2.73 kBJSONView Raw
1{
2 "name": "@antv/coord",
3 "version": "0.4.7",
4 "description": "Toolkit for mapping elements of sets into geometric objects.",
5 "license": "MIT",
6 "main": "lib/index.js",
7 "module": "esm/index.js",
8 "browser": "dist/coordinate.min.js",
9 "types": "lib/index.d.ts",
10 "files": [
11 "src",
12 "lib",
13 "esm",
14 "dist"
15 ],
16 "scripts": {
17 "clean": "rimraf lib esm dist",
18 "lint-staged": "lint-staged",
19 "size": "limit-size",
20 "lint": "eslint ./src ./__tests__ && prettier ./src ./__tests__ --check ",
21 "fix": "eslint ./src ./__tests__ --fix && prettier ./src ./__tests__ --write ",
22 "test": "jest",
23 "build:umd": "rimraf ./dist && rollup -c && npm run size",
24 "build:cjs": "rimraf ./lib && tsc --module commonjs --outDir lib",
25 "build:esm": "rimraf ./esm && tsc --module ESNext --outDir esm",
26 "build": "run-p build:*",
27 "ci": "run-s lint test build",
28 "prepublishOnly": "npm run ci",
29 "prepare": "husky install"
30 },
31 "dependencies": {
32 "gl-matrix": "^3.4.3",
33 "@antv/scale": "^0.4.12",
34 "@antv/util": "^2.0.13"
35 },
36 "devDependencies": {
37 "@commitlint/cli": "^11.0.0",
38 "@rollup/plugin-commonjs": "^20.0.0",
39 "@types/gl-matrix": "^2.4.5",
40 "@types/jest": "^26.0.20",
41 "@typescript-eslint/eslint-plugin": "^4.18.0",
42 "@typescript-eslint/parser": "^4.18.0",
43 "eslint": "^7.22.0",
44 "eslint-plugin-import": "^2.22.1",
45 "husky": "^6.0.0",
46 "jest": "^26.6.3",
47 "limit-size": "^0.1.4",
48 "lint-staged": "^10.5.4",
49 "npm-run-all": "^4.1.5",
50 "prettier": "^2.2.1",
51 "rimraf": "^3.0.2",
52 "rollup": "^2.39.0",
53 "rollup-plugin-node-resolve": "^5.2.0",
54 "rollup-plugin-typescript": "^1.0.1",
55 "rollup-plugin-uglify": "^6.0.4",
56 "ts-jest": "^26.5.1",
57 "typescript": "4.8.3"
58 },
59 "jest": {
60 "preset": "ts-jest",
61 "collectCoverage": true,
62 "testRegex": "(/__tests__/.*\\.(test|spec))\\.ts$",
63 "collectCoverageFrom": [
64 "src/**/*.ts"
65 ]
66 },
67 "lint-staged": {
68 "*.{ts,tsx}": [
69 "eslint --fix",
70 "prettier --write",
71 "git add"
72 ]
73 },
74 "limit-size": [
75 {
76 "path": "dist/coordinate.min.js",
77 "limit": "12 Kb",
78 "gzip": true
79 },
80 {
81 "path": "dist/coordinate.min.js",
82 "limit": "40 Kb"
83 }
84 ],
85 "husky": {
86 "hooks": {
87 "pre-commit": "npm run lint-staged",
88 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
89 }
90 },
91 "author": {
92 "name": "AntV",
93 "url": "https://antv.vision/"
94 },
95 "repository": {
96 "type": "git",
97 "url": "https://github.com/antvis/coord"
98 },
99 "bugs": {
100 "url": "https://github.com/antvis/coord/issues"
101 },
102 "keywords": [
103 "coordinate",
104 "transformation",
105 "visualization"
106 ]
107}