mirror of
https://github.com/zhigang1992/devhub.git
synced 2026-06-18 03:58:44 +08:00
113 lines
3.3 KiB
JSON
113 lines
3.3 KiB
JSON
{
|
|
"name": "devhub",
|
|
"version": "0.0.1",
|
|
"scripts": {
|
|
"format": "prettier --write '{.,__tests__,src/**,web,web/src/**}/*.{js,jsx,ts,tsx}'",
|
|
"lint": "tslint -p .",
|
|
"postinstall": "patch-package",
|
|
"precommit": "tsc && 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",
|
|
"tsc": "tsc",
|
|
"web": "npm run web:start",
|
|
"web:build": "pushd web; npm run build; popd;",
|
|
"web:deploy": "pushd web; npm run deploy; popd;",
|
|
"web:serve": "pushd web; npm run serve; popd;",
|
|
"web:start": "pushd web; npm run start; popd;",
|
|
"web:test": "pushd web; npm run test; popd;",
|
|
"xcode": "open ios/devhub.xcodeproj"
|
|
},
|
|
"dependencies": {
|
|
"@octokit/rest": "^15.15.1",
|
|
"gravatar": "^1.6.0",
|
|
"lodash": "^4.17.11",
|
|
"moment": "^2.22.2",
|
|
"polished": "^2.2.0",
|
|
"qs": "^6.5.2",
|
|
"ramda": "^0.25.0",
|
|
"react": "^16.5.2",
|
|
"react-native": "0.56.1",
|
|
"react-native-gesture-handler": "^1.0.8",
|
|
"react-native-linear-gradient": "^2.4.2",
|
|
"react-native-safari-view": "^2.1.0",
|
|
"react-native-screens": "^1.0.0-alpha.15",
|
|
"react-native-splash-screen": "^3.1.1",
|
|
"react-native-vector-icons": "^6.0.2",
|
|
"react-navigation": "^2.18.0",
|
|
"react-navigation-tabs": "^0.8.4",
|
|
"react-redux": "^5.0.7",
|
|
"redux": "^4.0.1",
|
|
"redux-devtools-extension": "^2.13.5",
|
|
"redux-persist": "^5.10.0",
|
|
"redux-saga": "^0.16.2",
|
|
"warna": "^0.2.4"
|
|
},
|
|
"devDependencies": {
|
|
"@types/gravatar": "^1.4.28",
|
|
"@types/jest": "^23.3.5",
|
|
"@types/lodash": "^4.14.117",
|
|
"@types/qs": "^6.5.1",
|
|
"@types/ramda": "^0.25.39",
|
|
"@types/react": "^16.4.18",
|
|
"@types/react-native": "0.56.24",
|
|
"@types/react-native-vector-icons": "^4.6.4",
|
|
"@types/react-navigation": "^2.0.24",
|
|
"@types/react-redux": "^6.0.9",
|
|
"@types/react-test-renderer": "^16.0.3",
|
|
"babel-jest": "^23.6.0",
|
|
"babel-preset-react-native": "^5.0.2",
|
|
"husky": "^1.1.2",
|
|
"jest": "^23.6.0",
|
|
"lint-staged": "^7.3.0",
|
|
"patch-package": "^6.0.0-10",
|
|
"postinstall-postinstall": "^1.0.0",
|
|
"prettier": "^1.14.3",
|
|
"react-native-typescript-transformer": "^1.2.10",
|
|
"react-test-renderer": "^16.5.2",
|
|
"ts-jest": "^23.10.4",
|
|
"tslint": "^5.11.0",
|
|
"tslint-config-airbnb": "^5.11.0",
|
|
"tslint-config-prettier": "^1.15.0",
|
|
"tslint-react": "^3.6.0",
|
|
"typescript": "^3.1.3",
|
|
"why-did-you-update": "^0.1.1"
|
|
},
|
|
"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"
|
|
]
|
|
}
|
|
}
|