-
Notifications
You must be signed in to change notification settings - Fork 84
/
package.json
66 lines (66 loc) · 3.37 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
{
"private": true,
"workspaces": [ "src", "example" ],
"scripts": {
"test": "yarn test:jest && yarn test:eslint && test:type-check",
"test:eslint": "eslint 'src/js/**/*.ts' 'src/js/**/*.tsx'",
"test:type-check": "cd src && tsc --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:android:bundle:release": "mkdir -p .tmp && react-native bundle --max-workers 4 --platform android --dev false --entry-file example/index.js --bundle-output .tmp/android-bundle.js",
"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:ios:bundle:release": "mkdir -p .tmp && react-native bundle --max-workers 4 --platform ios --dev false --entry-file example/index.js --bundle-output .tmp/ios-bundle.js",
"test:detox:clean": "rimraf example/android/build && rimraf example/android/app/build && rimraf example/android/.gradle && rimraf example/ios/build"
},
"prettier": {
"bracketSpacing": false,
"jsxBracketSameLine": true,
"parser": "typescript",
"singleQuote": true,
"trailingComma": "all"
},
"jest": {
"preset": "react-native",
"testPathIgnorePatterns":[
"node_modules",
"example",
"/e2e"
]
},
"detox": {
"test-runner": "jest",
"runner-config": "example/e2e/config.json",
"configurations": {
"ios.sim.debug": {
"binaryPath": "example/ios/build/Build/Products/Debug-iphonesimulator/example.app",
"build": "export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project example/ios/example.xcodeproj -destination 'platform=iOS Simulator,name=iPhone 11' -scheme example -parallelizeTargets -configuration Debug -derivedDataPath example/ios/build -UseModernBuildSystem=YES",
"type": "ios.simulator",
"name": "iPhone 11"
},
"ios.sim.release": {
"binaryPath": "example/ios/build/Build/Products/Release-iphonesimulator/example.app",
"build": "export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project example/ios/example.xcodeproj -destination 'platform=iOS Simulator,name=iPhone 11' -scheme example -parallelizeTargets -configuration Release -derivedDataPath example/ios/build -UseModernBuildSystem=YES",
"type": "ios.simulator",
"name": "iPhone 11"
},
"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"
}
}
}
}