Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@eventmobi/cordova-splash

AlexDisler14MIT1.0.0

Automatic splash screen cropping for Cordova

cordova, splash, splashscreen, crop

readme

cordova-splash

Automatic splash screen generator for Cordova. Create a splash screen (2208x2208) once in the root folder of your Cordova project and use cordova-splash to automatically crop and copy it for all the platforms your project supports (currenty works with iOS, Android and Windows 10).

Installation

$ sudo npm install cordova-splash -g

Requirements

  • ImageMagick installed (Mac: brew install imagemagick, Debian/Ubuntu: sudo apt-get install imagemagick, Windows: See here)
  • At least one platform was added to your project (cordova platforms docs)
  • Cordova's config.xml file must exist in the root folder (cordova config.xml docs)

Usage

Create a splash.png file in the root folder of your cordova project and run:

$ cordova-splash

You may specify the output path and directory as follows:

# output to path/to/res/screen
$ cordova-splash -p path/to/res -s screen

WARNING: If you were using a previous version of cordova-splash and expect the generated files to be in their respective ./platforms path, use the compability mode:

$ cordova-splash -c

This will override the -p and -s settings.

Icons

Check out cordova-icon

License

MIT

changelog

Change Log

All notable changes to this project will be documented in this file. This project tries to adhere to Semantic Versioning.

[0.7.1] - 2016-04-21

  • iOS: Cleanup sizes (8a6f76e)
  • Android: Add xxhdpi & xxxhdpi (3739f62)

[0.7.0] - 2016-04-17

  • Use wrench to prevent issues with directory creation (6b0da63)
  • uses config/res as the default folder to persist generated files (not backwards compatible)
  • Add --help option
  • Ability to specify output path
  • Backwards-compatibility mode to use platforms path instead of new defaults (-c)

[0.6.0] - 2016-03-26

  • Ahem, nothing?

[0.5.1] - 2016-03-11

  • iOS: Get back sizes from previous version of the repo (eb65d2d)

[0.5.0] - 2016-03-09

  • Add various things that will help to maintain the project (editorconfig, guidelines, changelog...)
  • iOS: add missing sizes (5132435)
  • Windows: add missing sizes (65c2c67)
  • Minor changes