2018-03-23 13:40:07 +00:00
|
|
|
{
|
2018-03-23 14:26:11 +00:00
|
|
|
"name": "rnfirebase-tests",
|
2018-04-21 17:59:52 +00:00
|
|
|
"version": "0.0.1",
|
2018-03-23 13:40:07 +00:00
|
|
|
"private": true,
|
|
|
|
"scripts": {
|
2018-03-25 05:52:30 +00:00
|
|
|
"packager-chrome": "node node_modules/react-native/local-cli/cli.js start --platforms ios,android",
|
2018-03-28 01:10:39 +00:00
|
|
|
"packager-bridge": "REACT_DEBUGGER='echo nope' node node_modules/react-native/local-cli/cli.js start --platforms ios,android",
|
|
|
|
"packager-bridge-reset-cache": "REACT_DEBUGGER='echo nope' node node_modules/react-native/local-cli/cli.js start --platforms ios,android --reset-cache",
|
2018-03-25 05:52:30 +00:00
|
|
|
"build-android": "detox build --configuration android.emu.debug",
|
2018-03-28 00:40:22 +00:00
|
|
|
"build-ios": "detox build --configuration ios.sim.debug",
|
2018-03-25 05:52:30 +00:00
|
|
|
"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",
|
2018-07-10 21:51:45 +00:00
|
|
|
"test-ios": "detox test --configuration ios.sim.debug --loglevel warn",
|
2018-04-21 22:59:19 +00:00
|
|
|
"test-ios-reuse": "detox test --configuration ios.sim.debug --reuse --loglevel warn",
|
2018-04-09 08:32:59 +00:00
|
|
|
"test-ios-cover": "nyc detox test --configuration ios.sim.debug",
|
2018-03-30 16:09:32 +00:00
|
|
|
"test-ios-cover-reuse": "nyc detox test --configuration ios.sim.debug --reuse --loglevel warn",
|
2018-03-23 14:26:11 +00:00
|
|
|
"ios:pod:install": "cd ios && rm -rf ReactNativeFirebaseDemo.xcworkspace && pod install && cd .."
|
2018-03-23 13:40:07 +00:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2018-04-21 17:59:52 +00:00
|
|
|
"babel-preset-es2015-mod": "^6.6.0",
|
|
|
|
"babel-preset-es3": "^1.0.1",
|
2018-04-22 15:06:13 +00:00
|
|
|
"bridge": "^0.2.7",
|
2018-04-21 17:59:52 +00:00
|
|
|
"detox": "^7.3.3",
|
2018-03-30 16:09:32 +00:00
|
|
|
"escape-string-regexp": "^1.0.5",
|
|
|
|
"fbjs": "^0.8.16",
|
2018-04-09 16:27:23 +00:00
|
|
|
"firebase-admin": "^5.12.0",
|
|
|
|
"jsonwebtoken": "^8.2.1",
|
2018-04-21 17:59:52 +00:00
|
|
|
"mocha": "^5.1.1",
|
2018-03-30 16:09:32 +00:00
|
|
|
"prop-types": "^15.6.1",
|
2018-04-21 17:59:52 +00:00
|
|
|
"react": "^16.3.2",
|
|
|
|
"react-native": "^0.55.3",
|
2018-03-24 05:53:49 +00:00
|
|
|
"should": "^13.2.1",
|
|
|
|
"should-sinon": "0.0.6",
|
2018-04-21 17:59:52 +00:00
|
|
|
"sinon": "^4.5.0"
|
2018-03-23 13:40:07 +00:00
|
|
|
},
|
2018-03-23 14:26:11 +00:00
|
|
|
"devDependencies": {
|
|
|
|
"babel-cli": "^6.24.0",
|
2018-04-21 17:59:52 +00:00
|
|
|
"babel-eslint": "^8.2.3",
|
|
|
|
"babel-plugin-istanbul": "^4.1.6",
|
2018-03-30 16:09:32 +00:00
|
|
|
"babel-plugin-module-resolver": "^3.1.1",
|
2018-04-21 17:59:52 +00:00
|
|
|
"babel-preset-react-native": "^4.0.0",
|
|
|
|
"eslint": "^4.19.1",
|
|
|
|
"eslint-config-airbnb": "^16.1.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",
|
2018-04-21 22:59:19 +00:00
|
|
|
"flow-bin": "^0.70.0",
|
2018-04-21 17:59:52 +00:00
|
|
|
"nyc": "^11.7.1"
|
2018-03-25 05:52:30 +00:00
|
|
|
},
|
|
|
|
"nyc": {
|
|
|
|
"check-coverage": false,
|
|
|
|
"lines": 95,
|
|
|
|
"statements": 95,
|
|
|
|
"functions": 95,
|
|
|
|
"branches": 95,
|
2018-04-09 10:11:42 +00:00
|
|
|
"include": ["**/dist/**"],
|
2018-04-09 19:53:43 +00:00
|
|
|
"exclude": ["node_modules", "**/dist/utils/emitter**", "**/dist/modules/admob**", "**/dist/modules/auth/phone**"],
|
2018-04-09 10:11:42 +00:00
|
|
|
"sourceMap": true,
|
|
|
|
"instrument": true,
|
|
|
|
"cwd": "..",
|
2018-03-25 05:52:30 +00:00
|
|
|
"reporter": ["lcov", "text-summary"]
|
2018-03-23 14:26:11 +00:00
|
|
|
},
|
2018-03-23 13:40:07 +00:00
|
|
|
"detox": {
|
|
|
|
"test-runner": "mocha",
|
|
|
|
"specs": "e2e",
|
|
|
|
"runner-config": "e2e/mocha.opts",
|
|
|
|
"configurations": {
|
|
|
|
"ios.sim.release": {
|
2018-03-28 00:40:22 +00:00
|
|
|
"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",
|
2018-03-23 13:40:07 +00:00
|
|
|
"type": "ios.simulator",
|
|
|
|
"name": "iPhone 7 Plus"
|
|
|
|
},
|
|
|
|
"ios.sim.debug": {
|
2018-03-28 00:40:22 +00:00
|
|
|
"binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/testing.app",
|
|
|
|
"build": "xcodebuild -workspace ios/testing.xcworkspace -scheme testing -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build",
|
2018-03-23 13:40:07 +00:00
|
|
|
"type": "ios.simulator",
|
2018-03-30 16:09:32 +00:00
|
|
|
"name": "iPhone 7 Plus",
|
|
|
|
"logLevel": "error"
|
2018-03-23 13:40:07 +00:00
|
|
|
},
|
|
|
|
"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",
|
2018-03-23 22:18:19 +00:00
|
|
|
"name": "TestingAVD"
|
2018-03-23 13:40:07 +00:00
|
|
|
},
|
|
|
|
"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",
|
2018-03-23 22:18:19 +00:00
|
|
|
"name": "TestingAVD"
|
2018-03-23 13:40:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|