-
Notifications
You must be signed in to change notification settings - Fork 42
/
package.json
78 lines (78 loc) · 2.33 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"name": "HelloReactNative",
"version": "0.0.1",
"license": "MIT",
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "npm run static-code-analysis && npm run dynamic-code-analysis",
"static-code-analysis": "npm run typecoverage && npm run tslint && npm run prettier",
"dynamic-code-analysis": "jest --coverage",
"typecoverage": "type-coverage -p src --detail",
"tslint": "tslint -p src",
"prettier": "prettier --check \"src/**/*.{ts,tsx}\"",
"format": "prettier --write \"src/**/*.{ts,tsx}\"",
"jest": "jest",
"bundle:android": "mkdir -p android/app/src/main/assets && react-native bundle --platform android --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res",
"run:android": "react-native run-android",
"android": "npm run bundle:android && npm run run:android",
"ios": "react-native run-ios"
},
"dependencies": {
"react": "16.9.0",
"react-native": "0.61.4"
},
"devDependencies": {
"@types/jest": "24.0.23",
"@types/node": "10.12.9",
"@types/react": "16.9.0",
"@types/react-native": "0.60.22",
"@types/react-test-renderer": "16.8.3",
"babel-jest": "23.6.0",
"babel-preset-react-native": "5.0.2",
"jest": "24.5.0",
"prettier": "1.16.4",
"react-native-typescript-transformer": "1.2.12",
"react-test-renderer": "16.8.3",
"ts-jest": "24.0.2",
"tslint": "5.11.0",
"tslint-config-prettier": "1.15.0",
"type-coverage": "2.3.1",
"typescript": "3.7.2"
},
"jest": {
"preset": "react-native",
"transform": {
"^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js",
"^.+\\.tsx?$": "ts-jest"
},
"testPathIgnorePatterns": [
"<rootDir>/build/",
"<rootDir>/node_modules/"
],
"transformIgnorePatterns": [
"node_modules/(?!(jest-)?react-native|react-navigation)"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"ios.ts",
"ios.tsx",
"android.ts",
"android.tsx"
],
"globals": {
"ts-jest": {
"tsConfig": "src/tsconfig.json"
}
}
},
"prettier": {
"bracketSpacing": false,
"singleQuote": true,
"trailingComma": "all",
"arrowParens": "always"
}
}