UNPKG

3.15 kBJSONView Raw
1{
2 "name": "@antv/scale",
3 "version": "0.4.15",
4 "description": "Toolkit for mapping abstract data into visual representation.",
5 "license": "MIT",
6 "main": "lib/index.js",
7 "module": "esm/index.js",
8 "unpkg": "dist/scale.min.js",
9 "types": "lib/index.d.ts",
10 "sideEffects": false,
11 "files": [
12 "src",
13 "lib",
14 "esm",
15 "dist"
16 ],
17 "scripts": {
18 "clean": "rimraf lib esm dist",
19 "lint-staged": "lint-staged",
20 "size": "limit-size",
21 "lint": "eslint ./src/**/*.ts ./__tests__/**/*.ts && prettier ./src ./__tests__ --check ",
22 "fix": "eslint ./src/**/*.ts ./__tests__/**/*.ts --fix && prettier ./src ./__tests__ --write ",
23 "test": "run-s test:timezone test:jest",
24 "test:jest": "jest --testPathIgnorePatterns=__tests__/bugs/d3-timezone.spec.ts",
25 "test:timezone": "cross-env TZ=Europe/Berlin jest __tests__/bugs/d3-timezone.spec.ts",
26 "build:umd": "rimraf ./dist && rollup -c && npm run size",
27 "build:cjs": "rimraf ./lib && tsc --module commonjs --outDir lib",
28 "build:esm": "rimraf ./esm && tsc --module ESNext --outDir esm",
29 "build": "run-p build:*",
30 "ci": "run-s lint test build",
31 "prepublishOnly": "npm run ci",
32 "prepare": "husky install"
33 },
34 "keywords": [
35 "antv",
36 "visualization",
37 "mapping"
38 ],
39 "devDependencies": {
40 "@commitlint/cli": "^11.0.0",
41 "@commitlint/config-conventional": "^12.0.1",
42 "@rollup/plugin-commonjs": "^19.0.0",
43 "@types/color-string": "^1.5.0",
44 "@types/jest": "^26.0.20",
45 "@typescript-eslint/eslint-plugin": "^4.18.0",
46 "@typescript-eslint/parser": "^4.19.0",
47 "cross-env": "^7.0.3",
48 "d3-scale": "^3.2.4",
49 "eslint": "^7.22.0",
50 "eslint-config-airbnb": "^18.2.1",
51 "eslint-config-prettier": "^8.1.0",
52 "eslint-import-resolver-typescript": "^2.4.0",
53 "eslint-plugin-import": "^2.22.1",
54 "eslint-plugin-prettier": "^3.3.1",
55 "husky": "^5.0.9",
56 "jest": "^26.6.3",
57 "limit-size": "^0.1.4",
58 "lint-staged": "^10.5.4",
59 "npm-run-all": "^4.1.5",
60 "prettier": "^2.2.1",
61 "rimraf": "^3.0.2",
62 "rollup": "^2.39.0",
63 "rollup-plugin-node-resolve": "^5.2.0",
64 "rollup-plugin-typescript": "^1.0.1",
65 "rollup-plugin-uglify": "^6.0.4",
66 "ts-jest": "^26.5.1",
67 "tslib": "^2.2.0",
68 "typescript": "^4.1.5"
69 },
70 "jest": {
71 "preset": "ts-jest",
72 "collectCoverage": true,
73 "testRegex": "(/__tests__/.*\\.(test|spec))\\.ts$",
74 "collectCoverageFrom": [
75 "src/**/*.ts"
76 ],
77 "testEnvironment": "node"
78 },
79 "lint-staged": {
80 "*.{ts,tsx}": [
81 "eslint --fix",
82 "prettier --write",
83 "git add"
84 ]
85 },
86 "limit-size": [
87 {
88 "path": "dist/scale.min.js",
89 "limit": "12 Kb",
90 "gzip": true
91 },
92 {
93 "path": "dist/scale.min.js",
94 "limit": "40 Kb"
95 }
96 ],
97 "author": {
98 "name": "AntV",
99 "url": "https://antv.vision/"
100 },
101 "repository": {
102 "type": "git",
103 "url": "https://github.com/antvis/scale"
104 },
105 "bugs": {
106 "url": "https://github.com/antvis/scale/issues"
107 },
108 "dependencies": {
109 "@antv/util": "^2.0.13",
110 "color-string": "^1.5.5",
111 "fecha": "^4.2.1"
112 }
113}