Skip to content

Commit

Permalink
⚙️ Chore: Update Package Scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Dec 5, 2024
1 parent 2c8a1bd commit 888c4d7
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,33 +36,37 @@
"prepare": "bob build",
"release": "release-it --only-version",
"open:ios": "open -a \"Xcode\" example/ios",
"open:docs": "open -a \"Typora\" ./docs/README-01-Pre.md",
"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: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": "yarn run build:js ; yarn run build:ios ; yarn run build:docs",
"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": "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'",
"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",
"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",
"build:docs": "sh ./make-readme.sh",
"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": "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",
"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",
"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 ; cd ../..",
"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:all": "yarn run nuke:node-modules ; yarn run nuke:example-pods ; yarn run nuke:example-pods-env",
"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 ; npm run nuke:node-modules",
"update-dep": "yarn add react-native-ios-utilities --dev ; cd example ; yarn add react-native-ios-utilities ; cd ..",
"update-dep:next": "yarn add react-native-ios-utilities@next --dev ; cd example ; yarn add react-native-ios-utilities@next ; cd ..",
"update-dep:pods": "cd example/ios ; pod install --repo-update ; pod update DGSwiftUtilities ContextMenuAuxiliaryPreview ; cd ../.. ; yarn run build:update-version",
"initialize": "yarn initialize:js ; yarn run pod-install",
"initialize": "yarn run initialize:js ; yarn run pod-install",
"initialize:js": "yarn install ; cd example ; yarn install ; cd ..",
"initialize:reset": "yarn run nuke:all && yarn run initialize"
"initialize:reset": "npm run nuke:all ; yarn ; npm run initialize"
},
"keywords": [
"react-native",
Expand Down

0 comments on commit 888c4d7

Please sign in to comment.