miapp-resources

0.1.9 • Public • Published

miapp-resources

Resources generator for your miapp's (based on Cordova).

Create a splash screen (2732x2732 png) and an icon (1024x1024 png) once in the resources folder of your Cordova project and use miapp-resources to automatically crop and copy it for all the platforms your project supports (currenty works with iOS, Android and Windows 10).

Create one marketing json file to generate all your required marketing stuff in /resources/marketing directory.

Installation

$ sudo npm install miapp-resources -g

Requirements

  • GraphicsMagick installed (Mac: brew install graphicsmagick, Debian/Ubuntu: sudo apt-get install graphicsmagick, Windows: See here)
  • ghostscript installed (Mac: brew install ghostscript, ...)

Usage

For your app platform (like android, ios ...), create a splash.png and a icon.png files in the /resources folder of your cordova project and run:

$ miapp-resources --android --ios

For your marketing, create a marketing.json as

{
  "marketing": [
    {
      "text": "My app is doing this",
      "landscape": "resources/marketing-01-ipad.png",
      "portrait": "resources/marketing-01-iphone.png"
    },
    {
      "text": "and doing that !",
      "landscape": "resources/marketing-02-iphone.png",
      "portrait": "resources/marketing-02-ipad.png"
    }
  ]
}

and run

$ miapp-resources --marketing

or

$ miapp-resources --android --ios --marketing    

License

MIT

Fork from (and thanks to) https://github.com/helixhuang/cordova-resources

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.9
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.9
    1
  • 0.1.8
    1
  • 0.1.7
    1
  • 0.1.6
    1

Package Sidebar

Install

npm i miapp-resources

Weekly Downloads

4

Version

0.1.9

License

MIT

Unpacked Size

22.4 kB

Total Files

7

Last publish

Collaborators

  • mlefree