0.0.1 • Published 9 years ago
ionic2-pgb-zipper v0.0.1
Ionic 2 PhoneGap Build zipper
Ionic2 PhoneGap Build zipper creates a PGB-compatible .zip archive from your Ionic 2 project.
Usage
Install
Install either as global or local package.
Global package
npm install -g ionic2-pgb-zipperLocal package
npm install --save-dev ionic2-pgb-zipperAdd NPM script
Open up your package.json file and add new entry to scripts as follows:
"scripts:" [
"pgb": "ionic2-pgb-zipper"
]Build the archive
Now, run
npm run pgbin your app's root folder.
You should now have file called pgb.zip in your root folder to be uploaded to the PhoneGap Build.
What it actually does?
- Adds the
config.xmltowww - Adds the
resourcesfolder towww - Replaces all backslashes in
config.xmlwith slashes (necessary on Windows) - Makes a file named
pgb.zipinside the current folder
Future improvements
- Use temp folder instead of www
- Only replace icon and splash screen backslashes with slashes in config.xml
0.0.1
9 years ago