1.1.4 • Published 6 years ago

pp-bundler v1.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

This tool is use to generate bundle for samsara. Its take care of most of manual work. Its kind of run the command and upload generated Archive.zip to samsara.

How to setup this Project: 1. Instal this package globally npm install -g pp-bundler

How to use this tool 1. Cd to your react native project root Directory 2. Run pp-bundler bundle command with required options. (Ex: pp-bundler bundle --entry-file redbus.ios.js --platform ios --bundle-version 1 --phonepe-sdk-version 1 --dev false --app-name redbus --app-id com.phonepe.redbus --root-project-directory phonepe-rn) 3. Run pp-bundler clear. Its optional, only required if you force terminate bundle command. 4. Upload Archive.zip to samsara

What is root-project-directory

Directory that contain your project and all other dependency. Mainly this folder or any other subfolder should contain all node_modules folder. You just need to pass the folder name not path of folder.

Example 1. Suppose you are currently working in redbus.ios.js file that is at path: /user/mithilesh/development/phonepe/phonepe-rn/packages/redbus/redbus.ios.js and some of your node modules are in folder redbus and few other are in phone-rn and non of other folder above phonepe-rn contains any other node modules then your root folder is phonepe-rn.

Example 2. Suppose you are currently working in ols.ios.js file that is at path: /user/mithilesh/development/rocky/ola/ola.ios.js and all your node modules are in ola folder then root folder will be ola.

pp-bundler use this folder to generate the unique id for all modules so that the change set or update pack will be minimal. It makes our over the wire update blazing fast.

Commands

Options:

--help                    Show help                                    [boolean]

--version                 Show version number                          [boolean]

--entry-file              Entery file of app                 [string] [required]

--app-name                App name, Ex: redbus, ola,...      [string] [required]

--app-id                  App id, Ex: com.phonepe.redbus     [string] [required]

--platform                Traget platform, Ex: ios, android  [string] [default: "ios"]

--bundle-version       p   Bundle version, Ex: 1,2,3,...      [number] [required]

--phonepe-sdk-version     JS SDK Version, Ex: 1,2,3          [number] [required]

--dev                     true, doen't minify the bundle     [boolean] [default: false]

--root-project-directory  root folder which contail all your project and dependencies [string] [required]

Options:

-h, --help  output usage information

Troubleshooting

If you are facing issue like: bundle is not a valid command or not a valid react native project then try to symlink the node_modules to app folder if its is any parent folder. (Ex: ln ../../node_modules node_modules).

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago