-
Notifications
You must be signed in to change notification settings - Fork 281
/
package.json
113 lines (113 loc) · 2.88 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
{
"name": "beeshell",
"version": "2.0.11",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"start": "mrn start --appName meituan",
"test": "jest --coverage",
"e2e": "detox test --detectOpenHandles",
"build": "mrn build",
"lint": "tslint -p ./ -c ./tslint.json",
"tsc:examples": "rm -rf distExamples && tsc",
"tsc:src": "rm -rf dist && tsc -p ./src && rsync -rv --exclude=*.ts --exclude=*.tsx src/ dist/",
"prepublishOnly": "npm run tsc:src"
},
"files": [
"dist/**/*.{ts,js,png}"
],
"license": "MIT",
"dependencies": {
"moment": "^2.24.0"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint && npm run tsc:src"
}
},
"devDependencies": {
"detox": "^12.8.0",
"@commitlint/cli": "^7.2.1",
"@commitlint/config-conventional": "^7.1.2",
"@mrn/babel-preset-mrn": "latest",
"@mrn/mrn-base": "latest",
"@mrn/mrn-cli": "latest",
"@mrn/mrn-common": "latest",
"@mrn/react-native-safe-area-view": "^0.11.0",
"@types/enzyme": "^3.1.9",
"@types/enzyme-adapter-react-16": "^1.0.2",
"@types/jest": "^23.0.0",
"axios": "^0.18.0",
"commitizen": "^3.0.5",
"cz-customizable": "5.2.0",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
"husky": "^1.3.0",
"jest": "^23.0.0",
"jest-react-native": "^18.0.0",
"react-dom": "^16.3.1",
"ts-jest": "^22.4.2"
},
"repository": {
"type": "git",
"url": ""
},
"jest": {
"globals": {
"ts-jest": {
"useBabelrc": true
},
"NODE_ENV": "test"
},
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
],
"transformIgnorePatterns": [
"node_modules/(?!react-native-gifted-chat)/"
],
"testMatch": [
"**/__test__/**/?(*.)+(spec|test).[tj]s?(x)"
],
"testPathIgnorePatterns": [
"/node_modules/",
"/dist/"
],
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"modulePaths": [
"./components",
"./node_modules"
],
"setupFiles": [
"./node_modules/@mrn/react-native/jest/setup.js"
],
"moduleNameMapper": {
".+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "<rootDir>/node_modules/@mrn/react-native/jest/assetFileTransformer.js",
"^react-navigation$": "@mrn/react-navigation",
"^react-native$": "@mrn/react-native"
},
"preset": "@mrn/react-native",
"verbose": true,
"testEnvironment": "node"
},
"detox": {
"test-runner": "jest",
"configurations": {
"ios.sim.debug": {
"binaryPath": "/Users/wangxiaolong/Library/Developer/Xcode/DerivedData/Example-iOS-ahwpjhefjswhddhfratzlolqspgz/Build/Products/Debug-iphonesimulator/Example-iOS.app",
"type": "ios.simulator",
"name": "iPhone X"
}
}
},
"resolutions": {
"enzyme-adapter-utils": "1.10.1"
}
}