-
-
Save lamvd0101/8db52fe2238fd707a04f72783aace84f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CLI_PATH=./node_modules/react-native/local-cli/cli.js | |
INTEGRATION_MODULE_FOLDER=ios/SDKOutput/Rescources | |
BUNDLE_NAME=rnsdk.jsbundle | |
if [ -d "${INTEGRATION_MODULE_FOLDER}" ]; then | |
rm -rf $INTEGRATION_MODULE_FOLDER | |
fi | |
mkdir $INTEGRATION_MODULE_FOLDER | |
# Create bundle | |
node $CLI_PATH ram-bundle \ | |
--entry-file ./index.js \ | |
--platform ios \ | |
--dev false \ | |
--bundle-output $INTEGRATION_MODULE_FOLDER/$BUNDLE_NAME \ | |
--assets-dest $INTEGRATION_MODULE_FOLDER | |
# Remove json files | |
find $INTEGRATION_MODULE_FOLDER -name "*.json" -type f -delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment