UNPKG

2.7 kBJSONView Raw
1{
2 "name": "@antv/coord",
3 "version": "0.4.4",
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 "@antv/matrix-util": "^3.0.4",
33 "@antv/scale": "^0.4.0",
34 "@antv/util": "^2.0.13"
35 },
36 "devDependencies": {
37 "@commitlint/cli": "^11.0.0",
38 "@rollup/plugin-commonjs": "^20.0.0",
39 "@types/jest": "^26.0.20",
40 "@typescript-eslint/eslint-plugin": "^4.18.0",
41 "@typescript-eslint/parser": "^4.18.0",
42 "eslint": "^7.22.0",
43 "eslint-plugin-import": "^2.22.1",
44 "husky": "^6.0.0",
45 "jest": "^26.6.3",
46 "limit-size": "^0.1.4",
47 "lint-staged": "^10.5.4",
48 "npm-run-all": "^4.1.5",
49 "prettier": "^2.2.1",
50 "rimraf": "^3.0.2",
51 "rollup": "^2.39.0",
52 "rollup-plugin-node-resolve": "^5.2.0",
53 "rollup-plugin-typescript": "^1.0.1",
54 "rollup-plugin-uglify": "^6.0.4",
55 "ts-jest": "^26.5.1",
56 "typescript": "^4.1.5"
57 },
58 "jest": {
59 "preset": "ts-jest",
60 "collectCoverage": true,
61 "testRegex": "(/__tests__/.*\\.(test|spec))\\.ts$",
62 "collectCoverageFrom": [
63 "src/**/*.ts"
64 ]
65 },
66 "lint-staged": {
67 "*.{ts,tsx}": [
68 "eslint --fix",
69 "prettier --write",
70 "git add"
71 ]
72 },
73 "limit-size": [
74 {
75 "path": "dist/coordinate.min.js",
76 "limit": "10 Kb",
77 "gzip": true
78 },
79 {
80 "path": "dist/coordinate.min.js",
81 "limit": "25 Kb"
82 }
83 ],
84 "husky": {
85 "hooks": {
86 "pre-commit": "npm run lint-staged",
87 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
88 }
89 },
90 "author": {
91 "name": "AntV",
92 "url": "https://antv.vision/"
93 },
94 "repository": {
95 "type": "git",
96 "url": "https://github.com/antvis/coord"
97 },
98 "bugs": {
99 "url": "https://github.com/antvis/coord/issues"
100 },
101 "keywords": [
102 "coordinate",
103 "transformation",
104 "visualization"
105 ]
106}