-
Notifications
You must be signed in to change notification settings - Fork 6
/
package.json
268 lines (268 loc) · 7.69 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
{
"name": "react-native-aps",
"version": "2.0.1",
"author": "AdversportTeam <[email protected]> (https://github.com/AdversportTeam)",
"contributors": [
"Jay Kim <[email protected]> (https://github.com/wjaykim)"
],
"description": "Amazon Publisher Services SDK for React Native",
"license": "LGPL-3.0",
"keywords": [
"react",
"react-native",
"aps",
"ad",
"ads",
"header bidding",
"Amazon Publisher Services",
"Transparent Ad Marketplace"
],
"repository": "https://github.com/AdversportTeam/react-native-aps",
"bugs": {
"url": "https://github.com/AdversportTeam/react-native-aps/issues"
},
"homepage": "https://github.com/AdversportTeam/react-native-aps#readme",
"main": "lib/commonjs/index",
"module": "lib/module/index",
"types": "lib/typescript/index.d.ts",
"react-native": "src/index",
"source": "src/index",
"files": [
"/android/",
"/ios/",
"/lib/",
"/src/",
"/babel.config.js",
"/jest.setup.ts",
"/RNAmazonPublisherServices.podspec",
"!android/build",
"!ios/build"
],
"scripts": {
"prepare": "yarn build",
"build": "bob build",
"build:clean": "rimraf android/build && rimraf ios/build && rimraf lib",
"lint:code": "yarn lint:js:check && yarn lint:android:check && yarn lint:ios:check",
"lint:js:check": "eslint src/ --ext .js,.jsx,.ts,.tsx --max-warnings=0",
"lint:js:fix": "eslint src/ --ext .js,.jsx,.ts,.tsx --fix",
"lint:android:check": "google-java-format --set-exit-if-changed --replace --glob=\"android/**/*.java\"",
"lint:android:fix": "google-java-format --replace --glob=\"android/**/*.java\"",
"lint:ios:check": "clang-format --glob=\"ios/**/*.{h,cpp,m,mm}\" --style=Google -n -Werror",
"lint:ios:fix": "clang-format -i --glob=\"ios/**/*.{h,cpp,m,mm}\" --style=Google",
"lint:fix": "yarn lint:js:fix && yarn lint:android:fix && yarn lint:ios:fix",
"lint:report": "eslint --output-file=eslint-report.json --format=json src/ --ext .js,.jsx,.ts,.tsx",
"lint:spellcheck": "spellchecker --quiet --files=\"docs/**/*.md\" --dictionaries=\"./.spellcheck.dict.txt\" --reports=\"spelling.json\" --plugins spell indefinite-article repeated-words syntax-mentions syntax-urls frontmatter",
"tsc:compile": "tsc --noEmit",
"lint": "yarn lint:code && yarn tsc:compile",
"test:jest": "jest",
"test:jest-watch": "jest --watch",
"test:jest-coverage": "jest --coverage",
"test:android:build": "yarn detox build --configuration android",
"test:android": "detox test -c android",
"test:android:local": "detox test -c android.local",
"test:ios:build": "yarn detox build --configuration ios",
"test:ios": "detox test -c ios",
"test:ios:pod:install": "cd Example && cd ios && rm -rf ApsExample.xcworkspace && rm -f Podfile.lock && pod install --repo-update && cd ..",
"test:packager:ci": "cd Example && cross-env TMPDIR=$HOME/.metro REACT_DEBUGGER=\"echo nope\" node_modules/.bin/react-native start --no-interactive",
"test": "yarn test:jest",
"release": "release-it",
"example": "yarn --cwd Example",
"pods": "cd Example && pod-install --quiet",
"bootstrap": "yarn example && yarn && yarn pods"
},
"devDependencies": {
"@babel/core": "^7.18.2",
"@babel/preset-env": "^7.18.2",
"@commitlint/config-conventional": "^17.0.0",
"@react-native-community/eslint-config": "^3.0.2",
"@release-it/conventional-changelog": "^5.0.0",
"@types/jest": "^27.5.1",
"@types/react": "^18.0.9",
"@types/react-native": "0.67.7",
"clang-format": "^1.8.0",
"codecov": "^3.8.3",
"commitlint": "^17.0.1",
"cross-env": "^7.0.3",
"detox": "^19.7.0",
"eslint": "^8.16.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-detox": "^1.0.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-tsdoc": "^0.2.16",
"google-java-format": "^1.0.1",
"husky": "^8.0.1",
"jest": "^28.1.0",
"jest-circus": "^28.1.0",
"jest-environment-node": "^28.1.0",
"pod-install": "^0.1.36",
"prettier": "^2.6.2",
"react": "18.0.0",
"react-native": "0.69.0-rc.3",
"react-native-builder-bob": "^0.18.2",
"react-native-test-app": "^1.3.8",
"release-it": "^15.0.0",
"rimraf": "^3.0.2",
"ts-jest": "^28.0.3",
"typescript": "^4.7.2"
},
"peerDependencies": {
"react": "*",
"react-native": "*"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"jest": {
"preset": "react-native",
"modulePathIgnorePatterns": [
"<rootDir>/Example/node_modules",
"<rootDir>/lib/"
],
"setupFiles": [
"./jest.setup.ts"
]
},
"detox": {
"testRunner": "jest",
"runnerConfig": "e2e/config.json",
"behavior": {
"init": {
"exposeGlobals": false
}
},
"apps": {
"ios": {
"type": "ios.app",
"binaryPath": "Example/ios/build/Build/Products/Debug-iphonesimulator/RNAPSExample.app",
"build": "set -o pipefail && xcodebuild VALID_ARCHS=\"`uname -m`\" CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ -workspace Example/ios/RNAPSExample.xcworkspace -scheme RNAPSExample -configuration Debug -sdk iphonesimulator -derivedDataPath Example/ios/build | xcbeautify"
},
"android": {
"type": "android.apk",
"binaryPath": "Example/android/app/build/outputs/apk/debug/app-debug.apk",
"build": "cd Example/android && ./gradlew assembleDebug assembleAndroidTest lintDebug -DtestBuildType=debug && cd ../.."
}
},
"devices": {
"simulator": {
"type": "ios.simulator",
"device": {
"type": "iPhone 13"
}
},
"emulator": {
"type": "android.emulator",
"device": {
"avdName": "TestingAVD"
}
},
"emulator.local": {
"type": "android.emulator",
"device": {
"avdName": "Pixel_4_API_Tiramisu"
}
}
},
"configurations": {
"ios": {
"device": "simulator",
"app": "ios"
},
"android": {
"device": "emulator",
"app": "android"
},
"android.local": {
"device": "emulator.local",
"app": "android"
}
}
},
"eslintConfig": {
"root": true,
"extends": [
"@react-native-community",
"prettier"
],
"plugins": [
"detox",
"jest",
"eslint-plugin-tsdoc"
],
"env": {
"jest/globals": true
},
"globals": {
"JSX": true
},
"rules": {
"prettier/prettier": [
"error",
{
"quoteProps": "consistent",
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false
}
],
"tsdoc/syntax": "error"
}
},
"eslintIgnore": [
"node_modules/",
"lib/",
"website/"
],
"prettier": {
"quoteProps": "consistent",
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"release-it": {
"git": {
"commitMessage": "chore: release ${version}",
"tagName": "v${version}"
},
"npm": {
"publish": true
},
"github": {
"release": true
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": "angular"
}
}
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
"targets": [
"commonjs",
"module",
[
"typescript",
{
"project": "tsconfig.build.json"
}
]
]
},
"codegenConfig": {
"libraries": [
{
"name": "rnaps",
"type": "modules",
"jsSrcsDir": "./src/turbomodules"
}
]
}
}