mirror of
https://github.com/zhigang1992/devhub.git
synced 2026-06-12 08:05:15 +08:00
106 lines
3.2 KiB
JSON
106 lines
3.2 KiB
JSON
{
|
|
"name": "devhub",
|
|
"version": "0.0.1",
|
|
"scripts": {
|
|
"format": "prettier --write '{.,__tests__,src/**}/*.{js,jsx,ts,tsx}'",
|
|
"lint": "tslint -p .",
|
|
"postinstall": "patch-package",
|
|
"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",
|
|
"tsc": "tsc -p .",
|
|
"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": {
|
|
"gravatar": "^1.6.0",
|
|
"lodash": "^4.17.10",
|
|
"moment": "^2.22.1",
|
|
"qs": "^6.5.2",
|
|
"ramda": "^0.25.0",
|
|
"react": "^16.3.2",
|
|
"react-native": "0.56.1",
|
|
"react-native-gesture-handler": "^1.0.7",
|
|
"react-native-linear-gradient": "^2.4.0",
|
|
"react-native-safari-view": "^2.1.0",
|
|
"react-native-screens": "^1.0.0-alpha.14",
|
|
"react-native-splash-screen": "^3.0.6",
|
|
"react-native-vector-icons": "5.0.0",
|
|
"react-navigation": "^2.0.4",
|
|
"react-navigation-tabs": "^0.8.2",
|
|
"warna": "^0.2.4"
|
|
},
|
|
"devDependencies": {
|
|
"@types/gravatar": "^1.4.28",
|
|
"@types/jest": "^23.3.2",
|
|
"@types/lodash": "^4.14.109",
|
|
"@types/qs": "^6.5.1",
|
|
"@types/ramda": "^0.25.30",
|
|
"@types/react": "^16.3.14",
|
|
"@types/react-native": "0.56.24",
|
|
"@types/react-native-vector-icons": "^4.6.1",
|
|
"@types/react-navigation": "^2.0.23",
|
|
"@types/react-test-renderer": "^16.0.1",
|
|
"babel-jest": "^23.0.1",
|
|
"babel-preset-react-native": "^5.0.2",
|
|
"husky": "^1.1.0",
|
|
"jest": "^23.0.1",
|
|
"lint-staged": "^7.1.2",
|
|
"patch-package": "^6.0.0-7",
|
|
"postinstall-postinstall": "^1.0.0",
|
|
"prettier": "^1.13.0",
|
|
"react-native-typescript-transformer": "^1.2.9",
|
|
"react-test-renderer": "^16.4.0",
|
|
"ts-jest": "^23.10.3",
|
|
"tslint": "^5.10.0",
|
|
"tslint-config-airbnb": "^5.9.2",
|
|
"tslint-config-prettier": "^1.13.0",
|
|
"tslint-react": "^3.6.0",
|
|
"typescript": "^3.1.1",
|
|
"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",
|
|
"tsc --allowJs --allowSyntheticDefaultImports --experimentalDecorators --emitDecoratorMetadata --lib dom,es2017 --jsx react-native --noEmit --skipLibCheck --strict --typeRoots @types,../../@types",
|
|
"git add"
|
|
]
|
|
}
|
|
}
|