mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-01-12 22:51:18 +08:00
102 lines
3.1 KiB
JSON
102 lines
3.1 KiB
JSON
{
|
|
"description": "Rethinking navigation",
|
|
"private": true,
|
|
"workspaces": {
|
|
"packages": [
|
|
"packages/*",
|
|
"example"
|
|
]
|
|
},
|
|
"publishConfig": {
|
|
"registry": "https://registry.npmjs.org/"
|
|
},
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/satya164/react-navigation.git"
|
|
},
|
|
"author": "Satyajit Sahoo <satyajit.happy@gmail.com> (https://github.com/satya164/), Michał Osadnik <micosa97@gmail.com> (https://github.com/osdnk/)",
|
|
"scripts": {
|
|
"lint": "eslint --ext '.js,.ts,.tsx' .",
|
|
"typescript": "tsc --noEmit",
|
|
"test": "jest",
|
|
"prerelease": "lerna run clean",
|
|
"release": "lerna publish",
|
|
"example": "yarn --cwd example"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/plugin-proposal-class-properties": "^7.8.3",
|
|
"@babel/plugin-proposal-optional-chaining": "^7.8.3",
|
|
"@babel/preset-env": "^7.8.4",
|
|
"@babel/preset-flow": "^7.8.3",
|
|
"@babel/preset-react": "^7.8.3",
|
|
"@babel/preset-typescript": "^7.8.3",
|
|
"@babel/runtime": "^7.8.4",
|
|
"@commitlint/config-conventional": "^8.3.4",
|
|
"@types/jest": "^25.1.2",
|
|
"codecov": "^3.6.5",
|
|
"commitlint": "^8.3.5",
|
|
"core-js": "^3.6.4",
|
|
"detox": "^15.1.4",
|
|
"eslint": "^6.8.0",
|
|
"eslint-config-satya164": "^3.1.5",
|
|
"husky": "^4.2.1",
|
|
"jest": "^25.1.0",
|
|
"lerna": "^3.20.2",
|
|
"prettier": "^1.19.1",
|
|
"typescript": "^3.7.5"
|
|
},
|
|
"resolutions": {
|
|
"react": "~16.9.0",
|
|
"react-native": "~0.61.5"
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
|
|
"pre-commit": "yarn lint && yarn typescript && yarn test"
|
|
}
|
|
},
|
|
"jest": {
|
|
"testEnvironment": "node",
|
|
"testRegex": "/__tests__/.*\\.(test|spec)\\.(js|tsx?)$",
|
|
"transform": {
|
|
"^.+\\.(js|ts|tsx)$": "babel-jest"
|
|
},
|
|
"setupFiles": [
|
|
"<rootDir>/jest/setup.js"
|
|
],
|
|
"moduleNameMapper": {
|
|
"@react-navigation/([^/]+)": "<rootDir>/packages/$1/src"
|
|
},
|
|
"preset": "react-native"
|
|
},
|
|
"prettier": {
|
|
"tabWidth": 2,
|
|
"useTabs": false,
|
|
"singleQuote": true,
|
|
"trailingComma": "es5"
|
|
},
|
|
"detox": {
|
|
"test-runner": "jest",
|
|
"runner-config": "example/e2e/config.json",
|
|
"configurations": {
|
|
"ios.sim.debug": {
|
|
"binaryPath": "example/ios/build/Build/Products/Debug-iphonesimulator/ReactNavigationExample.app",
|
|
"build": "set -o pipefail; xcodebuild -workspace example/ios/ReactNavigationExample.xcworkspace -scheme ReactNavigationExample -configuration Debug -sdk iphonesimulator -derivedDataPath example/ios/build",
|
|
"type": "ios.simulator",
|
|
"device": {
|
|
"type": "iPhone 11 Pro"
|
|
}
|
|
},
|
|
"ios.sim.release": {
|
|
"binaryPath": "example/ios/build/Build/Products/Release-iphonesimulator/ReactNavigationExample.app",
|
|
"build": "export RCT_NO_LAUNCH_PACKAGER=true; set -o pipefail; xcodebuild -workspace example/ios/ReactNavigationExample.xcworkspace -scheme ReactNavigationExample -configuration Release -sdk iphonesimulator -derivedDataPath example/ios/build",
|
|
"type": "ios.simulator",
|
|
"device": {
|
|
"type": "iPhone 11 Pro"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|