ionic2-pgb-zipper

0.0.1 • Public • Published

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

Package Sidebar

Install

npm i ionic2-pgb-zipper

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • roopehakulinen