109 lines
4.1 KiB
JSON
Executable File
109 lines
4.1 KiB
JSON
Executable File
{
|
|
"name": "react-native-firebase-tests",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"scripts": {
|
|
"packager-chrome": "node node_modules/react-native/local-cli/cli.js start --platforms ios,android",
|
|
"packager-jet": "REACT_DEBUGGER='echo nope' node node_modules/react-native/local-cli/cli.js start --platforms ios,android",
|
|
"packager-jet-reset-cache": "REACT_DEBUGGER='echo nope' node node_modules/react-native/local-cli/cli.js start --platforms ios,android --reset-cache",
|
|
"build-android": "detox build --configuration android.emu.debug",
|
|
"build-ios": "detox build --configuration ios.sim.debug",
|
|
"test": "npm run test-android && test-ios",
|
|
"test-android": "detox test --configuration android.emu.debug",
|
|
"test-android-reuse": "detox test --configuration android.emu.debug --reuse",
|
|
"test-android-cover": "nyc detox test --configuration android.emu.debug",
|
|
"test-android-cover-reuse": "nyc detox test --configuration android.emu.debug --reuse",
|
|
"test-ios": "detox test --configuration ios.sim.debug --loglevel warn",
|
|
"test-ios-reuse": "detox test --configuration ios.sim.debug --reuse --loglevel warn",
|
|
"test-ios-cover": "nyc detox test --configuration ios.sim.debug",
|
|
"test-ios-cover-reuse": "nyc detox test --configuration ios.sim.debug --reuse --loglevel warn",
|
|
"ios:pod:install": "cd ios && rm -rf ReactNativeFirebaseDemo.xcworkspace && pod install && cd .."
|
|
},
|
|
"dependencies": {
|
|
"jet": "0.0.2",
|
|
"detox": "^8.1.1",
|
|
"fbjs": "^0.8.16",
|
|
"firebase-admin": "^5.12.0",
|
|
"jsonwebtoken": "^8.2.1",
|
|
"mocha": "^5.2.0",
|
|
"prop-types": "^15.6.1",
|
|
"react": "^16.4.1",
|
|
"react-native": "^0.56.0",
|
|
"should": "^13.2.1",
|
|
"should-sinon": "0.0.6",
|
|
"sinon": "^6.1.4"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "7.0.0-beta.47",
|
|
"@babel/core": "7.0.0-beta.47",
|
|
"babel-eslint": "^8.2.6",
|
|
"babel-plugin-istanbul": "^5.0.1",
|
|
"babel-plugin-module-resolver": "^3.1.1",
|
|
"babel-preset-react-native": "^5.0.2",
|
|
"eslint": "^5.3.0",
|
|
"eslint-config-airbnb": "^17.0.0",
|
|
"eslint-plugin-flowtype": "^2.46.3",
|
|
"eslint-plugin-import": "^2.11.0",
|
|
"eslint-plugin-jsx-a11y": "^6.0.3",
|
|
"eslint-plugin-react": "^7.7.0",
|
|
"flow-bin": "^0.78.0",
|
|
"nyc": "^12.0.2",
|
|
"rimraf": "^2.6.2"
|
|
},
|
|
"nyc": {
|
|
"check-coverage": false,
|
|
"lines": 95,
|
|
"statements": 95,
|
|
"functions": 95,
|
|
"branches": 95,
|
|
"include": [
|
|
"**/dist/**"
|
|
],
|
|
"exclude": [
|
|
"node_modules",
|
|
"**/dist/utils/emitter**",
|
|
"**/dist/modules/admob**",
|
|
"**/dist/modules/auth/phone**"
|
|
],
|
|
"sourceMap": true,
|
|
"instrument": true,
|
|
"cwd": "..",
|
|
"reporter": [
|
|
"lcov",
|
|
"text-summary"
|
|
]
|
|
},
|
|
"detox": {
|
|
"test-runner": "mocha",
|
|
"specs": "e2e",
|
|
"runner-config": "e2e/mocha.opts",
|
|
"configurations": {
|
|
"ios.sim.release": {
|
|
"binaryPath": "ios/build/Build/Products/Release-iphonesimulator/testing.app",
|
|
"build": "export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -workspace ios/testing.xcworkspace -scheme testing -configuration Release -sdk iphonesimulator -derivedDataPath ios/build -quiet",
|
|
"type": "ios.simulator",
|
|
"name": "iPhone 7 Plus"
|
|
},
|
|
"ios.sim.debug": {
|
|
"binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/testing.app",
|
|
"build": "xcodebuild -workspace ios/testing.xcworkspace -scheme testing -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build",
|
|
"type": "ios.simulator",
|
|
"name": "iPhone 7 Plus",
|
|
"logLevel": "error"
|
|
},
|
|
"android.emu.debug": {
|
|
"binaryPath": "android/app/build/outputs/apk/debug/app-debug.apk",
|
|
"build": "pushd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && popd",
|
|
"type": "android.emulator",
|
|
"name": "TestingAVD"
|
|
},
|
|
"android.emu.release": {
|
|
"binaryPath": "android/app/build/outputs/apk/release/app-release.apk",
|
|
"build": "pushd android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && popd",
|
|
"type": "android.emulator",
|
|
"name": "TestingAVD"
|
|
}
|
|
}
|
|
}
|
|
}
|