/
package.json
128 lines (128 loc) · 3.43 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{
"name": "zarm",
"version": "3.0.9",
"description": "基于 React 的移动端UI库",
"keywords": [
"react",
"react-ui",
"react-component",
"zarm",
"zarm-ui",
"zarm-mobile",
"component",
"components",
"ui",
"framework",
"frontend",
"mobile"
],
"bugs": {
"url": "https://github.com/ZhongAnTech/zarm/issues"
},
"repository": "git://github.com/ZhongAnTech/zarm",
"license": "MIT",
"sideEffects": [
"dist/*",
"src/style/*",
"src/**/style/*",
"es/**/style/*",
"lib/**/style/*"
],
"main": "lib/index.js",
"module": "es/index.js",
"typings": "types/index.d.ts",
"directories": {
"lib": "lib",
"test": "__tests__"
},
"files": [
"lib",
"es",
"dist",
"types"
],
"scripts": {
"build": "yarn build:types && yarn build:lib && yarn build:es && yarn build:umd",
"build:es": "rimraf es && zarm build --mode es --path src --out-dir es --copy-files --build-css",
"build:lib": "rimraf lib && zarm build --mode lib --path src --out-dir lib --copy-files --build-css",
"build:types": "rimraf types && tsc",
"build:umd": "rimraf dist && zarm build --mode umd --path src/style/entry.ts,src/index.ts --out-dir dist --library-name zarm && zarm build --mode umd-ugly --path src/style/entry.ts,src/index.ts --out-dir dist --library-name zarm",
"clean": "rimraf types lib es dist coverage",
"coverage": "rimraf coverage && yarn test -c",
"install-react-16": "yarn add react@16 react-dom@16 enzyme-adapter-react-16",
"lint": "yarn lint:tsc && yarn lint:script && yarn lint:style",
"lint:script": "eslint --ext .ts,.tsx src",
"lint:style": "stylelint \"src/**/*.scss\" --syntax scss",
"lint:tsc": "tsc --noEmit",
"release": "bash scripts/release.sh",
"test": "TZ=UTC zarm test -s scripts/jest/setup.js"
},
"browserslist": [
"last 2 versions",
"Firefox ESR",
"> 1%",
"ie >= 9",
"iOS >= 7",
"Android >= 4"
],
"dependencies": {
"@floating-ui/react-dom-interactions": "^0.9.1",
"@use-gesture/react": "^10.1.1",
"@zarm-design/bem": "^0.0.6",
"@zarm-design/icons": "^0.1.11",
"better-scroll": "2.3.1",
"classnames": "^2.3.1",
"color": "^3.1.3",
"dayjs": "^1.11.3",
"intersection-observer": "^0.12.2",
"lodash": "^4.17.15",
"normalize.css": "8.0.1",
"raf": "^3.4.1",
"react-transition-group": "^4.4.2"
},
"devDependencies": {
"@babel/runtime": "^7.14.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^12.0.0",
"@testing-library/react-hooks": "^7.0.2",
"@testing-library/user-event": "^14.4.3",
"@types/lodash": "^4.14.182",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.9",
"@types/react-transition-group": "^4.4.5",
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.1",
"@zarm-design/cli": "^0.0.45",
"dekko": "^0.2.1",
"enzyme": "^3.11.0",
"enzyme-to-json": "^3.6.2",
"jest-canvas-mock": "^2.3.1",
"react": "^17.0.1",
"react-dom": "^17.0.1"
},
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},
"bundlesize": [
{
"path": "./dist/zarm.min.js",
"maxSize": "130 kB"
},
{
"path": "./dist/zarm.min.css",
"maxSize": "25 kB"
}
],
"tags": [
"zarm",
"zarm-ui",
"zhongan",
"component",
"components",
"react",
"react-component",
"framework",
"frontend",
"ui"
]
}