ionic2-pgb-zipper
v0.0.1
Published
Creates a zip file to be uploaded to the PhoneGap Build from Ionic 2 app.
Downloads
2
Maintainers
Readme
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-zipper
Local package
npm install --save-dev ionic2-pgb-zipper
Add 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 pgb
in 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.xml
towww
- Adds the
resources
folder towww
- Replaces all backslashes in
config.xml
with slashes (necessary on Windows) - Makes a file named
pgb.zip
inside the current folder
Future improvements
- Use temp folder instead of www
- Only replace icon and splash screen backslashes with slashes in config.xml