AlexDisler/cordova-icon — pull request #10 by jtuchsen (2014-09-27 05:54:16+00:00)
Title: Just a few changes...

I made some pretty significant changes to your project. The good news is that I implemented two of your TODO's, getPlatforms no longer makes synchronous requests, and project options are now passed in from the command line. The bad news is that I worked off of condrof's branch, so the previously rejected
splash screen feature request is in. The splash screen is no longer required to be specified though, and for that matter neither is the icon, as long as one of them is passed in the script will still work.

The splash screen isn't the only additional complexity that has been added though. A quick rundown of the features include:

- Moved the platform information into a JSON file

- Added optional icon background generation for the iOS platform

- Switched the imagemagick module dependency to gm (Required for the
aforementioned background generation)

- Added a 'www' platform to generate the standard web icons

- The config file can be specifed from the command line

- Refactored things so the project doesn't swallow unexpected errors anymore

- Added an option to generate art assets from html files. This is really
neat because it allows you to lay out splash screen files without
having to distort the image for the different aspect ratios. To do this
out of the box I added the phantomjs module as a dependency, which is a
little heavy because it downloads a binary, maybe not including the
module and just printing an error if the phantomjs binary can't be found
would be a better path?

It's the mother of all pull requests. I just kept adding stuff over the last week as I needed it for my project and it got to be substantial rather quickly, I won't blame you if you want to keep your module small and single purpose, but I thought I'd better at least try to get it back into the main repo.