|
36 | 36 | "prepare": "bob build", |
37 | 37 | "release": "release-it --only-version", |
38 | 38 | "open:ios": "open -a \"Xcode\" example/ios", |
39 | | - "open:docs": "open -a \"Typora\" ./docs/README-01-Pre.md", |
40 | 39 | "open:android": "open -a \"Android Studio\" example/android", |
| 40 | + "open:docs": "open -a \"Typora\" ./README.md", |
41 | 41 | "close:ios": "killall Xcode", |
42 | 42 | "reopen:ios": "yarn run close:ios ; yarn run open:ios", |
43 | | - "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 ../..", |
44 | | - "build": "yarn run build:js ; yarn run build:ios ; yarn run build:docs", |
| 43 | + "build": "yarn run build:js ; yarn run build:ios", |
45 | 44 | "build:js": "yarn run lint ; yarn run lint:circular-dep ; yarn run typescript ; yarn run bob build", |
46 | | - "build:ios": "cd ./example/ios ; BUILD_INFO=$(xcodebuild -project ./*.xcodeproj -showBuildSettings -list -json | tr -d ' ' | tr -d '\n') ; SCHEME_NAME=$(node -pe 'JSON.parse(process.argv[1]).project.schemes[0]' $BUILD_INFO) ; xcodebuild -workspace *.xcworkspace -scheme $SCHEME_NAME -destination 'generic/platform=iOS'", |
| 45 | + "build:ios": "cd ./example/ios ; BUILD_INFO=$(xcodebuild -project ./*.xcodeproj -showBuildSettings -list -json | tr -d ' ' | tr -d '\n') ; SCHEME_NAME=$(node -pe 'JSON.parse(process.argv[1]).project.schemes[0]' $BUILD_INFO) ; xcodebuild -workspace *.xcworkspace -scheme $SCHEME_NAME -destination 'generic/platform=iOS' clean build", |
| 46 | + "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 ../..", |
47 | 47 | "build:ios-info": "cd ./example/ios ; xcodebuild -project ./*.xcodeproj -showBuildSettings -list ; xcodebuild -project ./*.xcodeproj -showBuildSettings", |
48 | | - "build:docs": "sh ./make-readme.sh", |
49 | 48 | "run:release": "cd example && npx react-native run-ios --configuration Release", |
50 | 49 | "run:debug": "cd example && npx react-native run-ios --configuration Debug", |
51 | 50 | "build-and-run": "yarn run build && yarn run run:debug && yarn run run:release", |
52 | | - "pod-install": "cd example/ios && bundle install ; RCT_NEW_ARCH_ENABLED=1 bundle exec pod install ; cd ../.. ; yarn run nuke:example-pods-env ; yarn run build:update-version", |
53 | | - "pod-install:old": "cd example/ios && RCT_NEW_ARCH_ENABLED=0 pod install ; cd ../.. ; yarn run nuke:example-pods-env ; yarn run build:update-version", |
| 51 | + "pod-install": "yarn run pod-install:new-static", |
| 52 | + "pod-install:old": "yarn run pod-install:old-static", |
| 53 | + "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", |
| 54 | + "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", |
| 55 | + "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", |
| 56 | + "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", |
54 | 57 | "pod-install:reopen": "yarn run close:ios ; yarn run pod-install ; yarn run open:ios", |
55 | 58 | "pod-install:reopen-old": "yarn run close:ios ; yarn run pod-install:old ; yarn run open:ios", |
56 | | - "nuke:node-modules": "rm -rfv ./yarn.lock ./node_modules ; cd example ; rm -rfv ./node_modules ; cd ../..", |
| 59 | + "nuke:node-modules": "rm -rfv ./yarn.lock ./node_modules ; cd example ; rm -rfv ./node_modules ./yarn.lock ; cd ../..", |
57 | 60 | "nuke:example-pods": "cd example/ios ; pod cache clean --all ; rm -rfv ./Pods ./build ./Podfile.lock ; cd ../..", |
58 | 61 | "nuke:example-pods-env": "cd example/ios && rm -rfv ./.xcode.env.local ./.xcode.env", |
59 | | - "nuke:all": "yarn run nuke:node-modules ; yarn run nuke:example-pods ; yarn run nuke:example-pods-env", |
| 62 | + "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", |
| 63 | + "nuke:all": "yarn run nuke:example-pods ; yarn run nuke:cache-js ; npm run nuke:node-modules", |
60 | 64 | "update-dep": "yarn add react-native-ios-utilities --dev ; cd example ; yarn add react-native-ios-utilities ; cd ..", |
61 | 65 | "update-dep:next": "yarn add react-native-ios-utilities@next --dev ; cd example ; yarn add react-native-ios-utilities@next ; cd ..", |
62 | 66 | "update-dep:pods": "cd example/ios ; pod install --repo-update ; pod update DGSwiftUtilities ContextMenuAuxiliaryPreview ; cd ../.. ; yarn run build:update-version", |
63 | | - "initialize": "yarn initialize:js ; yarn run pod-install", |
| 67 | + "initialize": "yarn run initialize:js ; yarn run pod-install", |
64 | 68 | "initialize:js": "yarn install ; cd example ; yarn install ; cd ..", |
65 | | - "initialize:reset": "yarn run nuke:all && yarn run initialize" |
| 69 | + "initialize:reset": "npm run nuke:all ; yarn ; npm run initialize" |
66 | 70 | }, |
67 | 71 | "keywords": [ |
68 | 72 | "react-native", |
|
0 commit comments