|
45 | 45 | "prepare": "bob build", |
46 | 46 | "release": "release-it --only-version", |
47 | 47 | "open:ios": "open -a \"Xcode\" example/ios", |
| 48 | + "open:docs": "open -a \"Typora\" ./docs/README-01-Pre.md", |
48 | 49 | "open:android": "open -a \"Android Studio\" example/android", |
| 50 | + "close:ios": "killall Xcode", |
| 51 | + "reopen:ios": "yarn run close:ios ; yarn run open:ios", |
49 | 52 | "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 ../..", |
50 | | - "build": "yarn run build:js ; yarn run build:ios", |
| 53 | + "build": "yarn run build:js ; yarn run build:ios ; yarn run build:docs", |
51 | 54 | "build:js": "yarn run lint ; yarn run typescript ; yarn run bob build", |
52 | 55 | "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'", |
53 | 56 | "build:ios-info": "cd ./example/ios ; xcodebuild -project ./*.xcodeproj -showBuildSettings -list ; xcodebuild -project ./*.xcodeproj -showBuildSettings", |
| 57 | + "build:docs": "sh ./make-readme.sh", |
54 | 58 | "run:release": "cd example && npx react-native run-ios --configuration Release", |
55 | 59 | "run:debug": "cd example && npx react-native run-ios --configuration Debug", |
56 | 60 | "build-and-run": "yarn run build && yarn run run:debug && yarn run run:release", |
57 | | - "pod-install": "cd example/ios && bundle install ; RCT_NEW_ARCH_ENABLED=1 bundle exec pod install ; rm -rfv ./.xcode.env.local ; cd ../.. ; yarn run build:update-version", |
| 61 | + "pod-install": "yarn run close:ios ; cd example/ios && bundle install ; RCT_NEW_ARCH_ENABLED=1 bundle exec pod install ; rm -rfv ./.xcode.env.local ; cd ../.. ; yarn run build:update-version", |
58 | 62 | "pod-install:old": "cd example/ios && RCT_NEW_ARCH_ENABLED=0 pod install ; rm -rfv ./.xcode.env.local ; cd ../.. ; yarn run build:update-version", |
| 63 | + "pod-install:reopen": "yarn run close:ios ; yarn run pod-install ; yarn run open:ios", |
| 64 | + "pod-install:reopen-old": "yarn run close:ios ; yarn run pod-install:old ; yarn run open:ios", |
59 | 65 | "nuke:node-modules": "rm -rfv ./yarn.lock ./node_modules ; cd example ; rm -rfv ./node_modules ; cd ../..", |
60 | 66 | "nuke:example-pods": "cd example/ios ; pod cache clean --all ; rm -rfv ./Pods ./build ./Podfile.lock ; cd ../..", |
61 | 67 | "nuke:all": "yarn run nuke:node-modules ; yarn run nuke:example-pods", |
|
0 commit comments