1 | {
|
2 | "name": "@antv/coord",
|
3 | "version": "0.3.0",
|
4 | "description": "The coordinate module for G2",
|
5 | "author": "https://github.com/orgs/antvis/people",
|
6 | "license": "MIT",
|
7 | "main": "lib/index.js",
|
8 | "module": "esm/index.js",
|
9 | "types": "lib/index.d.ts",
|
10 | "files": [
|
11 | "lib",
|
12 | "esm",
|
13 | "README.md",
|
14 | "LICENSE"
|
15 | ],
|
16 | "repository": {
|
17 | "type": "git",
|
18 | "url": "git@github.com:antvis/coord.git"
|
19 | },
|
20 | "scripts": {
|
21 | "build": "run-s clean lib",
|
22 | "clean": "rimraf lib esm",
|
23 | "lib": "run-p lib:*",
|
24 | "lib:cjs": "tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib",
|
25 | "lib:esm": "tsc -p tsconfig.json --target ES5 --module ESNext --outDir esm",
|
26 | "lint": "lint-staged",
|
27 | "coverage": "jest --coverage",
|
28 | "test": "jest",
|
29 | "test-live": "DEBUG_MODE=1 jest",
|
30 | "ci": "run-s build test"
|
31 | },
|
32 | "husky": {
|
33 | "hooks": {
|
34 | "pre-commit": "run-s lint build test"
|
35 | }
|
36 | },
|
37 | "devDependencies": {
|
38 | "@types/jest": "^24.0.18",
|
39 | "husky": "^3.0.4",
|
40 | "jest": "^24.9.0",
|
41 | "jest-electron": "^0.1.6",
|
42 | "lint-staged": "^9.2.3",
|
43 | "npm-run-all": "^4.1.5",
|
44 | "prettier": "^1.18.2",
|
45 | "rimraf": "^3.0.0",
|
46 | "ts-jest": "^24.1.0",
|
47 | "tslint": "^5.18.0",
|
48 | "tslint-config-prettier": "^1.18.0",
|
49 | "typescript": "^3.5.3"
|
50 | },
|
51 | "dependencies": {
|
52 | "@antv/util": "~2.0.3",
|
53 | "@antv/matrix-util": "^3.1.0-beta.2",
|
54 | "tslib": "^1.10.0"
|
55 | },
|
56 | "lint-staged": {
|
57 | "*.{js,css,json,md}": [
|
58 | "prettier --write",
|
59 | "git add"
|
60 | ],
|
61 | "*.{ts}": [
|
62 | "tslint -c tslint.json --fix",
|
63 | "prettier --write",
|
64 | "git add"
|
65 | ]
|
66 | },
|
67 | "jest": {
|
68 | "runner": "jest-electron/runner",
|
69 | "testEnvironment": "jest-electron/environment",
|
70 | "preset": "ts-jest",
|
71 | "collectCoverage": false,
|
72 | "collectCoverageFrom": [
|
73 | "src/**/*.{ts,js}",
|
74 | "!**/node_modules/**",
|
75 | "!**/vendor/**"
|
76 | ],
|
77 | "testRegex": "/__tests__/.*spec\\.ts?$"
|
78 | }
|
79 | }
|