diff --git a/src/commands/bundle.yml b/src/commands/bundle.yml new file mode 100644 index 0000000..83f2312 --- /dev/null +++ b/src/commands/bundle.yml @@ -0,0 +1,25 @@ +description: Bundles all JS files. + +parameters: + platform: + description: The platform to build for. Usually one of "ios" or "android". + type: string + bundle_output: + description: The location to output the bundle to. + type: string + asset_dest: + description: The location to output assets to. + type: string + entry_file: + description: The entry file for the bundle. Defaults to "index.js". + type: string + default: "index.js" + dev: + description: If we should bundle in dev mode. Defaults to "false" + type: boolean + default: false + +steps: + - run: + name: Bundle React Native JS + command: react-native bundle --platform <> --bundle-output <> --assets-dest <> --entry-file <> --dev <>