0.0.1 • Published 8 years ago

ionic2-pgb-zipper v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

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 to www
  • Adds the resources folder to www
  • 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