-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
190 lines (190 loc) · 7.67 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
{
"name": "react-native-ios-modal",
"version": "3.0.0-9",
"description": "A react-native component for displaying a modal on iOS by natively wrapping a react-native view inside a UIViewController and presenting it.",
"main": "lib/commonjs/index",
"module": "lib/module/index",
"types": "lib/typescript/src/index.d.ts",
"react-native": "src/index",
"source": "src/index",
"files": [
"src",
"lib",
"android",
"ios",
"cpp",
"*.podspec",
"!ios/build",
"!android/build",
"!android/gradle",
"!android/gradlew",
"!android/gradlew.bat",
"!android/local.properties",
"!**/__tests__",
"!**/__fixtures__",
"!**/__mocks__",
"!**/.*"
],
"scripts": {
"example": "yarn workspace react-native-ios-modal-example",
"typescript": "tsc --noEmit --project tsconfig.build.json",
"typescript:example": "cd example && tsc --noEmit --project tsconfig.json",
"typescript:all": "yarn run typescript ; yarn run typescript-example",
"lint": "eslint \"**/*.{js,ts,tsx}\"",
"lint:circular-dep": "npx dpdm --no-warning --no-tree ./src/index.ts ; npx madge --circular --extensions ts ./src",
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
"prepare": "bob build",
"release": "release-it --only-version",
"open:ios": "open -a \"Xcode\" example/ios",
"open:android": "open -a \"Android Studio\" example/android",
"open:docs": "open -a \"Typora\" ./README.md",
"close:ios": "killall Xcode",
"reopen:ios": "yarn run close:ios ; yarn run open:ios",
"build": "yarn run build:js ; yarn run build:ios",
"build:js": "yarn run lint ; yarn run lint:circular-dep ; yarn run typescript ; yarn run bob build",
"build:ios": "sh ./scripts/build-ios.sh",
"build:ios-release": "sh ./scripts/build-ios.sh Release",
"build:update-version": "PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | sed 's/-.*//') ; cd example/ios ; agvtool new-marketing-version $PACKAGE_VERSION ; xcrun agvtool next-version -all ; cd ../..",
"build:ios-info": "cd ./example/ios ; xcodebuild -project ./*.xcodeproj -showBuildSettings -list ; xcodebuild -project ./*.xcodeproj -showBuildSettings",
"run:release": "cd example && npx react-native run-ios --configuration Release",
"run:debug": "cd example && npx react-native run-ios --configuration Debug",
"build-and-run": "yarn run build && yarn run run:debug && yarn run run:release",
"pod-install": "yarn run pod-install:new-static",
"pod-install:old": "yarn run pod-install:old-static",
"pod-install:new-static": "cd example/ios && bundle install ; RCT_NEW_ARCH_ENABLED=1 USE_FRAMEWORKS='static' bundle exec pod install ; cd ../.. ; yarn run nuke:example-pods-env ; yarn run build:update-version",
"pod-install:new-dynamic": "cd example/ios && bundle install ; RCT_NEW_ARCH_ENABLED=1 USE_FRAMEWORKS='dynamic' bundle exec pod install ; cd ../.. ; yarn run nuke:example-pods-env ; yarn run build:update-version",
"pod-install:old-static": "cd example/ios && RCT_NEW_ARCH_ENABLED=0 USE_FRAMEWORKS='static' pod install ; cd ../.. ; yarn run nuke:example-pods-env ; yarn run build:update-version",
"pod-install:old-dynamic": "cd example/ios && RCT_NEW_ARCH_ENABLED=0 USE_FRAMEWORKS='dynamic' pod install ; cd ../.. ; yarn run nuke:example-pods-env ; yarn run build:update-version",
"pod-install:reopen": "yarn run close:ios ; yarn run pod-install ; yarn run open:ios",
"pod-install:reopen-old": "yarn run close:ios ; yarn run pod-install:old ; yarn run open:ios",
"nuke:node-modules": "rm -rfv ./yarn.lock ./node_modules ; cd example ; rm -rfv ./node_modules ./yarn.lock ; cd ../..",
"nuke:example-pods": "cd example/ios ; pod cache clean --all ; rm -rfv ./Pods ./build ./Podfile.lock ; cd ../..",
"nuke:example-pods-env": "cd example/ios && rm -rfv ./.xcode.env.local ./.xcode.env",
"nuke:derived-data": "rm -rfv $HOME/Library/Developer/Xcode/DerivedData",
"nuke:cache-js": "watchman watch-del-all ; rm -rfv $TMPDIR/react-* ; rm -rfv $TMPDIR/react-native-packager-cache-* ; rm -rfv $TMPDIR/metro-bundler-cache-* ; rm -rfv $TMPDIR/haste-map-* ; rm -rfv rm -rf $TMPDIR/metro-cache ; npm cache clean --force ; npm cache verify ; yarn cache clean ; rm -rfv ~/.yarn/berry/cache",
"nuke:all": "yarn run nuke:example-pods ; yarn run nuke:cache-js ; yarn run nuke:derived-data ; npm run nuke:node-modules",
"update-dep": "yarn add react-native-ios-utilities --dev ; cd example ; yarn add react-native-ios-utilities ; cd .. ; yarn run update-dep:pods",
"update-dep-next": "yarn add react-native-ios-utilities@next --dev ; cd example ; yarn add react-native-ios-utilities@next ; cd .. ; yarn run update-dep:pods",
"update-dep:pods": "cd example/ios ; pod install --repo-update ; pod update DGSwiftUtilities ; cd ../.. ; yarn run build:update-version",
"initialize": "yarn run initialize:js ; yarn run pod-install",
"initialize:js": "yarn install ; cd example ; yarn install ; cd ..",
"initialize:reset": "npm run nuke:all ; yarn ; npm run initialize",
"test-build:all": "sh ./scripts/test-builds.sh",
"test-build:all-quick": "sh ./scripts/test-builds.sh quick"
},
"keywords": [
"react-native",
"ios",
"android"
],
"repository": {
"type": "git",
"url": "git+https://github.com/dominicstop/react-native-ios-modal.git"
},
"author": "Dominic Go <dominic@dominicgo.dev> (https://github.com/dominicstop)",
"license": "MIT",
"bugs": {
"url": "https://github.com/dominicstop/react-native-ios-modal/issues"
},
"homepage": "https://github.com/dominicstop/react-native-ios-modal#readme",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"devDependencies": {
"@react-native/eslint-config": "^0.73.1",
"@types/react": "^18.2.44",
"del-cli": "^5.1.0",
"eslint": "^8.51.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.1",
"prettier": "^3.0.3",
"react": "18.2.0",
"react-native": "0.74.2",
"react-native-builder-bob": "^0.20.0",
"react-native-ios-utilities": ">=5.0.0-51 || >=5.0.0",
"release-it": "^15.0.0",
"turbo": "^1.10.7",
"typescript": "^5.2.2"
},
"dependencies": {
"@dominicstop/ts-event-emitter": "^1.1.0"
},
"resolutions": {
"@types/react": "^18.2.44"
},
"peerDependencies": {
"react": "*",
"react-native": "*",
"react-native-ios-utilities": "*"
},
"workspaces": [
"example"
],
"packageManager": "yarn@3.6.1",
"release-it": {
"git": {
"commitMessage": "⚙️ chore: release ${version}",
"tagName": "v${version}"
},
"npm": {
"publish": true
},
"github": {
"release": true
}
},
"eslintConfig": {
"root": true,
"extends": [
"@react-native",
"prettier"
],
"rules": {
"prettier/prettier": [
"ignore",
{
"quoteProps": "as-needed",
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false,
"semi": true
}
]
}
},
"eslintIgnore": [
"node_modules/",
"lib/"
],
"prettier": {
"quoteProps": "as-needed",
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
"targets": [
"commonjs",
"module",
[
"typescript",
{
"project": "tsconfig.build.json"
}
]
]
},
"codegenConfig": {
"name": "RNIModalSpec",
"type": "components",
"jsSrcsDir": "src",
"interfaceOnly": true,
"excludedPlatforms": [
"android"
]
}
}