UNPKG

2.33 kBJSONView Raw
1{
2 "name": "@antv/attr",
3 "version": "0.3.5",
4 "description": "The Attribute module for G2, F2.",
5 "main": "lib/index.js",
6 "module": "esm/index.js",
7 "types": "lib/index.d.ts",
8 "files": [
9 "src",
10 "lib",
11 "esm",
12 "README.md",
13 "LICENSE"
14 ],
15 "scripts": {
16 "clean": "rimraf lib esm",
17 "lint": "lint-staged",
18 "test": "jest",
19 "test-live": "DEBUG_MODE=1 jest --watch tests/unit",
20 "coverage": "jest --coverage",
21 "lib:cjs": "tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib",
22 "lib:esm": "tsc -p tsconfig.json --target ES5 --module ESNext --outDir esm",
23 "lib": "run-p lib:*",
24 "build": "run-s clean lib",
25 "prepublishOnly": "run-s lint test build",
26 "ci": "run-s build test",
27 "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0"
28 },
29 "dependencies": {
30 "@antv/color-util": "^2.0.1",
31 "@antv/scale": "^0.3.0",
32 "@antv/util": "~2.0.0",
33 "tslib": "^2.3.1"
34 },
35 "devDependencies": {
36 "@antv/scale": "^0.3.0",
37 "@types/jest": "^24.0.18",
38 "jest": "^24.9.0",
39 "jest-electron": "^0.1.7",
40 "jest-extended": "^0.11.2",
41 "ts-jest": "^24.1.0",
42 "husky": "^3.0.4",
43 "lint-staged": "^9.2.3",
44 "npm-run-all": "^4.1.5",
45 "prettier": "^1.18.2",
46 "rimraf": "^3.0.0",
47 "tslint": "^5.18.0",
48 "tslint-config-prettier": "^1.18.0",
49 "typescript": "^4.1.5",
50 "conventional-changelog-cli": "^2.0.28"
51 },
52 "husky": {
53 "hooks": {
54 "pre-commit": "run-s lint build test"
55 }
56 },
57 "lint-staged": {
58 "*.{js,css,json,md}": [
59 "prettier --write",
60 "git add"
61 ],
62 "*.{ts}": [
63 "tslint -c tslint.json --fix",
64 "prettier --write",
65 "git add"
66 ]
67 },
68 "jest": {
69 "runner": "jest-electron/runner",
70 "testEnvironment": "jest-electron/environment",
71 "preset": "ts-jest",
72 "collectCoverage": false,
73 "collectCoverageFrom": [
74 "src/**/*.{ts,js}",
75 "!**/node_modules/**",
76 "!**/vendor/**"
77 ],
78 "testRegex": "/tests/.*-spec\\.ts?$"
79 },
80 "repository": {
81 "type": "git",
82 "url": "git@github.com:antvis/attr.git"
83 },
84 "bugs": {
85 "url": "https://github.com/antvis/attr/issues"
86 },
87 "keywords": [
88 "antv",
89 "attr",
90 "g2",
91 "f2"
92 ],
93 "author": "https://github.com/orgs/antvis/people",
94 "license": "MIT"
95}