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 Sep 21, 2024
1 parent 1e23d7b commit 1e45c79
Showing 1 changed file with 27 additions and 15 deletions.
42 changes: 27 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,29 +27,41 @@
],
"scripts": {
"example": "yarn workspace react-native-ios-modal-example",
"test": "jest",
"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",
"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:docs": "open -a \"Typora\" ./README.md",
"open:android": "open -a \"Android Studio\" example/android",
"pod-install": "cd example/ios && bundle install ; RCT_NEW_ARCH_ENABLED=1 bundle exec pod install",
"pod-install-old": "cd example/ios && pod install",
"build:ios": "xcodebuild -workspace example/ios/IosModalExample.xcworkspace -scheme IosModalExample -destination 'generic/platform=iOS'",
"build": "yarn run lint ; yarn run typescript ; yarn run bob build ; yarn run pod-install ; yarn run build:ios",
"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",
"nuke-node-modules": "rm -rfv ./node_modules ; cd example ; rm -rfv ./node_modules ; cd ../..",
"nuke-example-pods": "cd example/ios ; pod cache clean --all ; rm -rfv ./Pods ./build ; cd ../..",
"nuke-all": "yarn run nuke-node-modules ; yarn run nuke-example-pods",
"update-dep-pods": "cd example/ios ; pod update DGSwiftUtilities ComputableLayout ; pod install --repo-update ; cd ../..",
"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: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-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": "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: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: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",
"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-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 initialize:js ; yarn run pod-install",
"initialize:js": "yarn install ; cd example ; yarn install ; cd ..",
"initialize:reset": "yarn run nuke:all && yarn run initialize"
},
"keywords": [
"react-native",
Expand Down

0 comments on commit 1e45c79

Please sign in to comment.