-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
84 lines (84 loc) · 2.04 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
"name": "@opd/ava",
"version": "1.0.0",
"description": "React component wrapper for AVA",
"keywords": [
"component",
"chart",
"ava",
"react"
],
"author": "kagawagao <kingsongao1221@gmail.com> (https://kingsongao.com/)",
"homepage": "https://github.com/open-data-plan/ava-react",
"license": "MIT",
"main": "lib/index.js",
"module": "es/index.js",
"directories": {
"lib": "lib",
"test": "__tests__"
},
"files": [
"lib",
"es",
"style",
"*.d.ts"
],
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/open-data-plan/ava-react.git"
},
"scripts": {
"lint": "eslint . --ext=.ts,.tsx",
"lint:fix": "eslint . --ext=.ts,.tsx --fix",
"test": "jest",
"prebuild": "npm test",
"build": "npm run build:es & npm run build:commonjs & npm run build:types",
"build:es": "babel src -d es --extensions .ts,.tsx",
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src -d lib --extensions .ts,.tsx",
"build:types": "tsc",
"preversion": "npm run build",
"dev": "dumi dev",
"build:docs": "dumi build"
},
"devDependencies": {
"@babel/cli": "^7.12.1",
"@opd/babel-preset-component": "^1.11.3",
"@opd/eslint-config-pangu": "^1.11.6",
"@opd/jest-preset-pangu": "^1.11.6",
"@opd/prettier-config-pangu": "^1.8.7",
"@types/react-dom": "^18.0.0",
"cross-env": "^7.0.2",
"dumi": "^2.0.2",
"dumi-theme-default": "^1.0.0-rc.1",
"husky": "^9.0.2",
"jest-canvas-mock": "^2.3.0",
"lint-staged": "^15.0.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-test-renderer": "^18.2.0",
"typescript": "^5.0.2"
},
"prettier": "@opd/prettier-config-pangu",
"dependencies": {
"@antv/chart-advisor": "^2.0.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint --fix"
],
"*.{css,less}": [
"stylelint --fix"
],
"*.{json,md}": [
"prettier -c --write"
]
}
}