forked from ZhongAnTech/zarm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
174 lines (174 loc) · 6.6 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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
{
"name": "zarm",
"version": "2.0.0-alpha.10",
"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/ZhonganTechENG/zarm",
"bugs": {
"url": "https://github.com/ZhonganTechENG/zarm/issues"
},
"module": "es/index.js",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"scripts": {
"start": "npm run deploy && npm run dev",
"clean": "rm -rf lib es dist assets coverage .temp",
"clean:ignore": "git clean -dxf -e node_modules",
"dev": "webpack-dev-server --config scripts/webpack/config.dev.js",
"rn-start": "react-native start",
"rn-watch": "tsc --module es6 --jsx react-native --w",
"ios": "concurrently \"npm run rn-watch\" \"npm run rn-start\" \"react-native run-ios --project-path examples-rn/ios\"",
"android": "concurrently \"npm run rn-watch\" \"react-native run-android --root examples-rn\"",
"build:ios": "concurrently \"npm run clean\" \"node scripts/native/mkdir\" \"node node_modules/react-native/local-cli/cli.js bundle --platform ios --dev false --entry-file examples-rn/index.js --bundle-output examples-rn/ios/bundle/index.bundle --assets-dest examples-rn/ios/bundle\"",
"build:android": "concurrently \"npm run clean\" \"node scripts/native/mkdir\" \"node node_modules/react-native/local-cli/cli.js bundle --platform android --dev false --entry-file examples-rn/index.js --bundle-output examples-rn/android/bundle/index.bundle --assets-dest examples-rn/android/bundle\"",
"build:es": "tsc --outDir es -d --module es6",
"build:lib": "tsc --outDir lib -d && tsc --outDir .temp --jsx preserve && babel .temp --out-dir lib --presets=env,react,stage-2 && rm -rf .temp",
"build:umd": "webpack --config scripts/webpack/config.umd.js && cross-env NODE_ENV=production webpack --config scripts/webpack/config.umd.js",
"build:css": "cd scripts/gulp && gulp",
"build": "npm run clean && npm run build:lib && npm run build:es && npm run build:umd && npm run build:css",
"deploy:build": "rm -rf assets && webpack --config scripts/webpack/config.deploy.js",
"deploy": "npm run deploy:build && touch assets/CNAME && echo 'zarm.design' > assets/CNAME && gh-pages -d assets",
"lint:ts": "tslint 'components/**/*.{ts,tsx}'",
"lint:js": "eslint --ext '.js,.jsx' examples examples-rn",
"lint:style": "stylelint --syntax scss components/**/*.scss components/**/**/*.scss examples/styles/**/*.scss",
"lint": "npm run lint:ts && npm run lint:js && npm run lint:style",
"test": "cross-env TZ=America/New_York jest --config scripts/jest/config.web.js --coverage",
"test:rn": "jest --config scripts/jest/config.native.js --coverage",
"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",
"precommit": "lint-staged",
"commitmsg": "commitlint -e $GIT_PARAMS",
"release": "bash scripts/release.sh"
},
"peerDependencies": {
"react": ">=16.0.0",
"react-dom": ">=16.0.0"
},
"dependencies": {
"better-scroll": "^1.8.0",
"classnames": "^2.2.5",
"normalize.css": "^7.0.0",
"react-native-camera-roll-picker": "^1.2.3"
},
"devDependencies": {
"@commitlint/cli": "^6.2.0",
"@commitlint/config-conventional": "^6.1.3",
"@types/classnames": "^2.2.3",
"@types/enzyme-to-json": "^1.5.0",
"@types/jest": "^23.1.4",
"@types/react": "^16.4.10",
"@types/react-dom": "^16.0.7",
"@types/react-native": "^0.51.9",
"autoprefixer": "^6.7.7",
"awesome-typescript-loader": "^5.0.0",
"babel-cli": "^6.24.1",
"babel-core": "^6.24.1",
"babel-eslint": "^8.0.1",
"babel-jest": "^20.0.3",
"babel-loader": "^7.0.0",
"babel-plugin-import": "^1.6.2",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.0",
"babel-preset-react": "^6.24.1",
"babel-preset-react-hmre": "^1.1.1",
"babel-preset-react-native": "^4.0.0",
"babel-preset-react-native-stage-0": "^1.0.1",
"babel-preset-stage-2": "^6.24.1",
"babel-runtime": "^6.23.0",
"babel-standalone": "^6.26.0",
"concurrently": "^3.5.1",
"conventional-changelog-cli": "^1.3.22",
"core-js": "^2.5.1",
"coveralls": "^2.13.1",
"cross-env": "^5.2.0",
"css-loader": "^0.28.1",
"dragon-ui": "1.0.0-alpha.18",
"enzyme": "^3.1.0",
"enzyme-adapter-react-16": "^1.0.3",
"enzyme-to-json": "^3.2.0",
"eslint": "^4.19.1",
"eslint-config-za": "^1.0.2",
"eslint-plugin-import": "^2.11.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.7.0",
"fastclick": "^1.0.6",
"file-loader": "^1.1.11",
"gh-pages": "^1.0.0",
"gulp": "^3.9.1",
"highlight.js": "^9.12.0",
"history": "^4.7.2",
"html-webpack-plugin": "^3.2.0",
"husky": "^0.14.3",
"jest": "^23.3.0",
"lint-staged": "^4.3.0",
"marked": "^0.4.0",
"mini-css-extract-plugin": "^0.4.0",
"node-sass": "^4.5.2",
"optimize-css-assets-webpack-plugin": "^5.0.0",
"postcss-loader": "^2.1.5",
"prop-types": "^15.6.2",
"qrious": "^4.0.2",
"raw-loader": "^0.5.1",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-loadable": "^5.5.0",
"react-native": "^0.55.2",
"react-native-mock-render": "0.0.27",
"react-navigation": "^2.9.2",
"react-router-dom": "^4.2.2",
"react-test-renderer": "^16.0.0",
"react-transition-group": "^2.2.1",
"sass-loader": "^6.0.3",
"style-loader": "^0.18.2",
"stylelint": "^7.12.0",
"stylelint-config-standard": "^16.0.0",
"ts-jest": "^22.4.6",
"tslint": "^5.9.1",
"tslint-eslint-rules": "^5.1.0",
"tslint-react": "^3.2.0",
"typescript": "^3.0.1",
"uglifyjs-webpack-plugin": "^1.2.5",
"url-loader": "^1.0.1",
"webpack": "^4.8.3",
"webpack-bundle-analyzer": "^2.9.0",
"webpack-cli": "^2.1.3",
"webpack-dev-server": "^3.1.4"
},
"lint-staged": {
"components/**/*.{ts,tsx}": "tslint",
"{components,examples,examples-rn}/**/*.{js,jsx}": "eslint",
"{styles,examples}/**/*.scss": "stylelint"
},
"sideEffects": [
"dist/*",
"components/style/*",
"components/**/style/*",
"es/**/style/*",
"lib/**/style/*",
"examples/**/**.scss",
"site/**/**.scss"
]
}