forked from invertase/notifee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
103 lines (103 loc) · 4.5 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"name": "@notifications/root",
"private": true,
"license": "Apache-2.0",
"scripts": {
"prepare": "yarn lerna:link && lerna run prepare && (yarn tests_rn:ios:pod:install || true)",
"precommit": "yarn build:all:clean && yarn prepare && yarn build:all && yarn gen:reference && yarn validate:all && yarn test:all",
"build:all": "yarn build:core && yarn build:rn",
"build:core": "yarn build:core:android && yarn build:core:ios",
"build:core:android": "cd ./android && ./gradlew assembleRelease compileDebugJavaWithJavac compileDebugUnitTestJavaWithJavac publish",
"build:core:ios": "cd ./ios && xcodebuild BITCODE_GENERATION_MODE=bitcode OTHER_CFLAGS=-fembed-bitcode -workspace NotifeeCore.xcworkspace -scheme Framework ONLY_ACTIVE_ARCH=NO -configuration Release -sdk iphoneos -UseModernBuildSystem=YES clean build",
"build:all:clean": "rimraf android/build && rimraf packages/react-native/android/libs && rimraf android/.gradle && rimraf ios/build && lerna run build:clean",
"build:rn": "cd packages/react-native && yarn build",
"build:rn:watch": "cd packages/react-native && yarn build:watch",
"format:all": "yarn format:core && yarn format:rn",
"format:rn": "yarn format:rn:android && yarn format:rn:ios",
"format:rn:android": "cd packages/react-native/android && yarn format:android",
"format:rn:ios": "cd packages/react-native/ios && yarn format:ios",
"format:core": "yarn format:core:android && yarn format:core:ios",
"format:core:android": "cd android && yarn format:android",
"format:core:ios": "cd ios && yarn format:ios",
"format:android": "google-java-format --replace -i $(find . -type f -name \"*.java\")",
"format:ios": "npx clang-format -i --glob=\"*/**/*.{h,cpp,m,mm}\" --style=Google",
"validate:all": "yarn validate:all:js && yarn validate:all:ts && yarn gen:reference",
"validate:all:js": "eslint . --ext .js,.jsx,.ts,.tsx --resolve-plugins-relative-to .",
"validate:all:ts": "tsc --project ./",
"lerna:bootstrap": "lerna bootstrap",
"lerna:link": "lerna link && lerna exec -- yarn link",
"lerna:clean": "lerna clean",
"gen:reference": "rimraf docs/typedoc.json docs/typedoc.min.json && node scripts/generate-typedoc.js",
"test:all": "yarn test:core:android && yarn tests_rn:test && yarn tests_rn:android:test && yarn tests_rn:ios:test",
"test:core:android": "cd android && ./gradlew testDebugUnit",
"tests_rn:packager": "cd tests_react_native && npx react-native start",
"tests_rn:packager:reset-cache": "cd tests_react_native && npx react-native start --reset-cache",
"run:android": "cd tests_react_native && npx react-native run-android --variant 'debug' --appIdSuffix dev",
"run:ios": "cd tests_react_native && npx react-native run-ios --scheme=Notifee",
"tests_rn:test": "cd tests_react_native && jest",
"tests_rn:test-watch": "cd tests_react_native && jest --watch",
"tests_rn:test-coverage": "cd tests_react_native && jest --coverage",
"tests_rn:android:test": "cd tests_react_native && npx cavy-cli run-android --appIdSuffix dev",
"tests_rn:ios:test": "cd tests_react_native && npx cavy-cli run-ios --scheme=Notifee",
"tests_rn:ios:pod:install": "cd tests_react_native && cd ios && pod install && cd .."
},
"devDependencies": {
"@react-native-community/eslint-config": "^3.0.0",
"@types/node": "^14.17.3",
"@typescript-eslint/eslint-plugin": "^4.27.0",
"@typescript-eslint/parser": "^4.27.0",
"clang-format": "^1.5.0",
"eslint": "^7.28.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-react": "^7.24.0",
"lerna": "^4.0.0",
"prettier": "^2.3.1",
"rimraf": "^3.0.2",
"typedoc": "^0.19.2",
"typescript": "^4.3.4"
},
"resolutions": {
"@types/node": "^14"
},
"lint-staged": {
"packages/**/*.js": [
"eslint --fix",
"git add"
],
"tests/**/*.js": [
"eslint --fix",
"git add"
],
"*.{json,md}": [
"prettier --write",
"git add"
]
},
"workspaces": {
"packages": [
"packages/*",
"tests_react_native"
],
"nohoist": [
"**/chai",
"**/chai/**",
"**/cavy",
"**/cavy/**",
"**/cavy-native-reporter",
"**/cavy-native-reporter/**",
"**/prop-types",
"**/prop-types/**",
"**/patch-package",
"**/patch-package/**",
"**/react",
"**/react/**",
"**/react-native",
"**/react-native/**"
]
},
"dependencies": {
"axios": "^0.21.1",
"shelljs": "^0.8.4"
}
}