-
-
Notifications
You must be signed in to change notification settings - Fork 227
/
package.json
159 lines (159 loc) · 6.09 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
{
"name": "zarm",
"version": "2.0.0-beta.4",
"description": "基于 React 的移动端UI库",
"tags": [
"zarm",
"zarm-ui",
"react",
"react-zarm",
"zhongan"
],
"keywords": [
"react",
"react-ui",
"react-component",
"zarm",
"zarm-ui",
"zarm-mobile",
"component",
"components",
"ui",
"framework",
"frontend",
"mobile"
],
"license": "MIT",
"repository": "git://github.com/ZhongAnTech/zarm",
"bugs": {
"url": "https://github.com/ZhongAnTech/zarm/issues"
},
"module": "es/index.js",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"scripts": {
"clean": "rimraf types lib es dist assets coverage bundle components/*.js components/**/*.js components/**/**/*.js examples-rn/**/build examples-rn/**/bundle",
"dev": "zarm dev",
"dev:ios": "concurrently \"zarm dev --mode native\" \"react-native run-ios --project-path examples-rn/ios\"",
"dev:android": "concurrently \"zarm dev --mode native\" \"react-native run-android --root examples-rn\"",
"build:es": "rimraf es && zarm build --mode es --path components --out-dir es --copy-files --build-css && tsc --outDir es -d --emitDeclarationOnly",
"build:lib": "rimraf lib && zarm build --mode lib --path components --out-dir lib --copy-files --build-css && tsc --outDir lib -d --emitDeclarationOnly",
"build:umd": "rimraf dist && zarm build --mode umd --path components/style/entry.tsx,components/index.tsx --out-dir dist && zarm build --mode umd-ugly --path components/style/entry.tsx,components/index.tsx --out-dir dist",
"build:rn": "rimraf components/**/*.js components/**/**/*.js && zarm build --mode native --path components",
"build:ios": "rimraf bundle/ios/* && node scripts/native/mkdir && npm run build:rn && react-native bundle --platform ios --dev false --entry-file examples-rn/index.js --bundle-output bundle/ios/index.bundle --assets-dest bundle/ios",
"build:android": "rimraf bundle/android/* && node scripts/native/mkdir && npm run build:rn && react-native bundle --platform android --dev false --entry-file examples-rn/index.js --bundle-output bundle/android/index.bundle --assets-dest bundle/android",
"build": "npm run build:lib && npm run build:es && npm run build:umd",
"deploy:build": "rimraf assets && mkdir assets && touch assets/CNAME && echo 'zarm.design' > assets/CNAME && zarm deploy",
"deploy": "npm run deploy:build && gh-pages -d assets",
"lint:ts": "eslint --ext .ts,.tsx components",
"lint:js": "eslint --ext .js,.jsx components site examples-rn",
"lint:style": "stylelint \"components/**/*.scss\" \"site/**/*.scss\" --syntax scss",
"lint": "npm run lint:ts && npm run lint:js && npm run lint:style",
"test:h5": "cross-env TZ=America/New_York zarm test -s scripts/jest/setup.js",
"test:rn": "zarm test -m native -s scripts/jest/setup.js",
"test": "rimraf coverage && npm run test:h5 -- -c && cp ./coverage/coverage-final.json ./coverage/coverage-h5-final.json && npm run test:rn -- -c && cp ./coverage/coverage-final.json ./coverage/coverage-rn-final.json && node ./scripts/jest/mapCoverage.js",
"coverage": "cat ./coverage/lcov.info | coveralls",
"authors": "git log --format='%aN <%aE>' | sort -u | grep -v 'users.noreply.github.com' > AUTHORS",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -w -r 0",
"release": "bash scripts/release.sh"
},
"peerDependencies": {
"react": ">=16.3.1",
"react-dom": ">=16.3.1"
},
"dependencies": {
"better-scroll": "1.15.1",
"classnames": "2.2.6",
"color": "^3.1.0",
"create-react-context": "0.2.3",
"hoist-non-react-statics": "^3.3.0",
"lodash": "^4.17.15",
"normalize.css": "8.0.1",
"popper.js": "^1.15.0",
"react-native-camera-roll-picker": "1.2.3"
},
"devDependencies": {
"@babel/standalone": "^7.0.0",
"@commitlint/cli": "^8.0.0",
"@commitlint/config-conventional": "^8.0.0",
"@sentry/browser": "^5.6.1",
"@types/classnames": "^2.2.3",
"@types/react": "^16.8.6",
"@types/react-dom": "^16.9.0",
"@types/react-native": "^0.60.7",
"@typescript-eslint/eslint-plugin": "^2.3.3",
"@typescript-eslint/parser": "^2.3.3",
"@zarm-design/cli": "^0.0.18",
"babel-eslint": "^10.0.1",
"babel-plugin-import": "^1.13.0",
"browserslist": "^4.6.6",
"change-case": "^3.1.0",
"concurrently": "^3.5.1",
"conventional-changelog-cli": "^1.3.22",
"core-js": "^3.0.1",
"coveralls": "^2.13.1",
"cross-env": "^5.2.0",
"docsearch.js": "^2.6.1",
"dragon-ui": "1.0.0-alpha.18",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.14.0",
"enzyme-to-json": "^3.4.0",
"eslint": "^6.5.1",
"eslint-config-za": "^2.1.0",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.16.0",
"eslint-plugin-react-hooks": "^2.1.2",
"gh-pages": "^1.0.0",
"highlight.js": "^9.17.1",
"history": "^4.7.2",
"husky": "^2.3.0",
"is-wsl": "^2.1.0",
"istanbul-api": "^2.1.6",
"lint-staged": "^4.3.0",
"marked": "^0.4.0",
"prop-types": "^15.6.2",
"qrious": "^4.0.2",
"react": "^16.9.0",
"react-dom": "^16.9.0",
"react-helmet": "^5.2.1",
"react-hot-loader": "^4.12.13",
"react-loadable": "^5.5.0",
"react-native": "^0.60.5",
"react-native-mock-render": "0.1.5",
"react-navigation": "^4.0.3",
"react-router-dom": "^5.0.1",
"rimraf": "^2.6.3",
"stylelint": "^13.0.0",
"stylelint-config-za": "^0.1.0",
"typescript": "^3.6.3"
},
"lint-staged": {
"components/**/*.{ts,tsx}": "eslint",
"{components,site,examples-rn}/**/*.{js,jsx}": "eslint",
"{styles,site}/**/*.scss": "stylelint"
},
"browserslist": [
"last 2 versions",
"Firefox ESR",
"> 1%",
"ie >= 9",
"iOS >= 7",
"Android >= 4"
],
"sideEffects": [
"dist/*",
"components/style/*",
"components/**/style/*",
"es/**/style/*",
"lib/**/style/*",
"site/**/**.scss"
],
"husky": {
"hooks": {
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
}
}
}