forked from react-native-netinfo/react-native-netinfo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
158 lines (158 loc) · 5.91 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
{
"name": "@react-native-community/netinfo",
"version": "5.8.1",
"description": "React Native Network Info API for iOS & Android",
"react-native": "src/index.ts",
"types": "lib/typescript/src/index.d.ts",
"main": "lib/commonjs/index.js",
"module": "lib/module/index.js",
"files": [
"/android",
"!/android/build",
"/ios",
"/windows",
"/macos",
"/src",
"/lib",
"/*.podspec",
"/jest"
],
"author": "Matt Oakes <hello@mattoakes.net>",
"contributors": [
"Mike Diarmid (Salakar) <mike@invertase.io>"
],
"homepage": "https://github.com/react-native-community/react-native-netinfo#readme",
"license": "MIT",
"scripts": {
"start": "react-native start",
"start:macos": "node node_modules/react-native-macos/local-cli/cli.js start --use-react-native-macos",
"start:web": "webpack-dev-server --config example/webpack.config.js",
"start:windows": "react-native start --use-react-native-windows",
"test": "yarn validate:eslint && yarn validate:typescript && yarn test:jest",
"validate:eslint": "eslint \"src/**/*.{js,ts,tsx}\" \"example/**/*.{js,ts,tsx}\"",
"validate:typescript": "tsc --project ./ --noEmit",
"test:jest": "jest \"/src/\"",
"test:detox:android:test:debug": "detox test -c android.emu.debug",
"test:detox:android:test:release": "detox test -c android.emu.release",
"test:detox:android:build:debug": "detox build -c android.emu.debug",
"test:detox:android:build:release": "detox build -c android.emu.release",
"test:detox:ios:test:debug": "detox test -c ios.sim.debug",
"test:detox:ios:test:release": "detox test -c ios.sim.release",
"test:detox:ios:build:debug": "detox build -c ios.sim.debug",
"test:detox:ios:build:release": "detox build -c ios.sim.release",
"test:detox:clean": "rimraf example/android/build && rimraf example/android/app/build && rimraf example/android/.gradle && rimraf example/ios/build",
"build:e2e:macos": "scripts/run_macos_e2e.sh 'build'",
"test:e2e:macos": "scripts/run_macos_e2e.sh 'test'",
"ci:publish": "yarn semantic-release",
"semantic-release": "semantic-release",
"prepare": "bob build"
},
"keywords": [
"react-native",
"react native",
"netinfo",
"networking",
"network info"
],
"peerDependencies": {
"react-native": ">=0.59"
},
"dependencies": {},
"devDependencies": {
"@babel/core": "^7.6.2",
"@babel/runtime": "^7.6.2",
"@react-native-community/bob": "^0.4.1",
"@react-native-community/eslint-config": "^0.0.5",
"@semantic-release/changelog": "^3.0.2",
"@semantic-release/git": "7.0.8",
"@types/jest": "^24.0.12",
"@types/react-native": "^0.57.51",
"@typescript-eslint/eslint-plugin": "^1.7.0",
"@typescript-eslint/parser": "^1.7.0",
"babel-loader": "^8.0.6",
"detox": "^12.8.0",
"eslint": "5.16.0",
"eslint-config-prettier": "^4.2.0",
"eslint-plugin-prettier": "3.0.1",
"html-webpack-plugin": "^3.2.0",
"husky": "^2.3.0",
"jest": "^24.8.0",
"jest-expo": "^36.0.1",
"jest-fetch-mock": "^3.0.1",
"lint-staged": "^8.1.7",
"metro-react-native-babel-preset": "^0.56.0",
"prettier": "^1.17.0",
"react": "16.9.0",
"react-dom": "^16.12.0",
"react-native": "0.61.5",
"react-native-macos": "0.60.0-microsoft.50",
"react-native-web": "^0.12.0",
"react-test-renderer": "16.9.0",
"rimraf": "^2.6.3",
"semantic-release": "15.13.3",
"source-map-loader": "^0.2.4",
"ts-jest": "^24.0.2",
"ts-loader": "^6.2.1",
"typescript": "^3.4.1",
"webpack": "^4.41.5",
"webpack-cli": "^3.3.10",
"webpack-dev-server": "^3.10.2",
"react-native-windows": "0.61.0",
"metro": "0.56.0"
},
"detox": {
"test-runner": "jest",
"runner-config": "example/e2e/config.json",
"configurations": {
"ios.sim.debug": {
"binaryPath": "example/ios/build/Build/Products/Debug-iphonesimulator/NetInfoExample.app",
"build": "export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project example/ios/NetInfoExample.xcodeproj -destination 'platform=iOS Simulator,name=iPhone X' -scheme NetInfoExample -parallelizeTargets -configuration Debug -derivedDataPath example/ios/build -UseModernBuildSystem=YES | xcpretty -k",
"type": "ios.simulator",
"name": "iPhone X"
},
"ios.sim.release": {
"binaryPath": "example/ios/build/Build/Products/Release-iphonesimulator/NetInfoExample.app",
"build": "export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project example/ios/NetInfoExample.xcodeproj -destination 'platform=iOS Simulator,name=iPhone X' -scheme NetInfoExample -parallelizeTargets -configuration Release -derivedDataPath example/ios/build -UseModernBuildSystem=YES | xcpretty -k",
"type": "ios.simulator",
"name": "iPhone X"
},
"android.emu.debug": {
"binaryPath": "example/android/app/build/outputs/apk/debug/app-debug.apk",
"build": "export RCT_NO_LAUNCH_PACKAGER=true && pushd example/android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && popd",
"type": "android.emulator",
"name": "TestingAVD"
},
"android.emu.release": {
"binaryPath": "example/android/app/build/outputs/apk/release/app-release.apk",
"build": "export RCT_NO_LAUNCH_PACKAGER=true && pushd example/android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && popd",
"type": "android.emulator",
"name": "TestingAVD"
}
}
},
"repository": {
"type": "git",
"url": "https://github.com/react-native-community/react-native-netinfo.git"
},
"@react-native-community/bob": {
"source": "src",
"output": "lib",
"targets": [
"commonjs",
"module",
"typescript"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "yarn test"
}
},
"lint-staged": {
"*.{js,ts,tsx}": [
"yarn eslint --fix",
"git add"
]
}
}