mirror of
https://github.com/zhigang1992/devhub.git
synced 2026-05-29 00:21:04 +08:00
88 lines
2.4 KiB
JSON
88 lines
2.4 KiB
JSON
{
|
|
"name": "devhub",
|
|
"version": "0.0.1",
|
|
"scripts": {
|
|
"format": "prettier --write '{.,__tests__,src/**}/*.{js,jsx,ts,tsx}'",
|
|
"lint": "tslint -p .",
|
|
"precommit": "lint-staged",
|
|
"prepare": "patch-package",
|
|
"start": "node node_modules/react-native/local-cli/cli.js start",
|
|
"studio": "open -a /Applications/Android\\ Studio.app ./android/",
|
|
"test": "jest",
|
|
"xcode": "open ios/devhub.xcodeproj"
|
|
},
|
|
"dependencies": {
|
|
"gravatar": "^1.6.0",
|
|
"ramda": "^0.25.0",
|
|
"react": "^16.2.0",
|
|
"react-native": "^0.51.0",
|
|
"react-native-gesture-handler": "^1.0.0-alpha.37",
|
|
"react-native-linear-gradient": "^2.4.0",
|
|
"react-native-navigation": "^1.1.334",
|
|
"react-native-safari-view": "^2.1.0",
|
|
"react-native-vector-icons": "^4.4.3",
|
|
"warna": "^0.2.4"
|
|
},
|
|
"devDependencies": {
|
|
"@types/gravatar": "^1.4.28",
|
|
"@types/jest": "^22.0.1",
|
|
"@types/ramda": "^0.25.13",
|
|
"@types/react": "^16.0.34",
|
|
"@types/react-native": "^0.51.9",
|
|
"@types/react-native-vector-icons": "^4.4.2",
|
|
"@types/react-test-renderer": "^16.0.0",
|
|
"babel-jest": "22.0.4",
|
|
"babel-preset-react-native": "4.0.0",
|
|
"husky": "^0.14.3",
|
|
"jest": "^22.0.4",
|
|
"lint-staged": "^6.0.0",
|
|
"patch-package": "^5.0.0",
|
|
"postinstall-prepare": "^1.0.1",
|
|
"prettier": "^1.9.2",
|
|
"react-native-typescript-transformer": "^1.1.4",
|
|
"react-test-renderer": "^16.2.0",
|
|
"ts-jest": "^22.0.0",
|
|
"tslint": "^5.8.0",
|
|
"tslint-config-airbnb": "^5.4.2",
|
|
"tslint-config-prettier": "^1.6.0",
|
|
"tslint-react": "^3.3.3",
|
|
"typescript": "^2.6.2",
|
|
"why-did-you-update": "^0.1.0"
|
|
},
|
|
"jest": {
|
|
"preset": "react-native",
|
|
"setupFiles": [
|
|
"./jest/setup.js"
|
|
],
|
|
"globals": {
|
|
"ts-jest": {
|
|
"useBabelrc": true
|
|
}
|
|
},
|
|
"moduleFileExtensions": [
|
|
"ts",
|
|
"tsx",
|
|
"js",
|
|
"jsx",
|
|
"json"
|
|
],
|
|
"transform": {
|
|
"^.+\\.(jsx?)$": "<rootDir>/node_modules/babel-jest",
|
|
"^.+\\.(tsx?)$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
|
|
},
|
|
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
|
|
"testPathIgnorePatterns": [
|
|
"<rootDir>/node_modules/",
|
|
"<rootDir>/.history/"
|
|
],
|
|
"cacheDirectory": ".jest/cache"
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,jsx,ts,tsx}": [
|
|
"prettier --write",
|
|
"tslint --fix",
|
|
"git add"
|
|
]
|
|
}
|
|
}
|