Code Monkey home page Code Monkey logo

meteor-cordova-splash's Introduction

meteor-cordova-splash

Automatic splash screen generator for Meteor with Cordova. Create a splash screen (2732x2732px) once in the root folder of your Meteor project and use meteor-cordova-splash to automatically resize and copy it for Android and iOS.

The generated images will be placed in resources/launch_screens/

Installation

$ npm install meteor-cordova-splash -g

Requirements

  • ImageMagick installed (Mac: brew install imagemagick, Debian/Ubuntu: sudo apt-get install imagemagick, Windows: See here)

Usage

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

$ meteor-cordova-splash

Config

Copy relevant contents the configuration below to your mobile-config.js file.

// mobile-config.js
App.launchScreens({

  // iOS splash screens
  iphone5: 'resources/launch_screens/iphone5.png',
  iphone6: 'resources/launch_screens/iphone6.png',
  iphone6p_portrait: 'resources/launch_screens/iphone6p_portrait.png',
  iphone6p_landscape: 'resources/launch_screens/iphone6p_landscape.png',
  iphoneX_portrait: 'resources/launch_screens/iphoneX_portrait.png',
  iphoneX_landscape: 'resources/launch_screens/iphoneX_landscape.png',
  ipad_portrait_2x: 'resources/launch_screens/ipad_portrait_2x.png',
  ipad_landscape_2x: 'resources/launch_screens/ipad_landscape_2x.png',
  ipad_portrait_pro_10_5: 'resources/launch_screens/ipad_portrait_pro_10_5.png',
  ipad_landscape_pro_10_5: 'resources/launch_screens/ipad_landscape_pro_10_5.png',
  ipad_portrait_pro_12_9: 'resources/launch_screens/ipad_portrait_pro_12_9.png',
  ipad_landscape_pro_12_9: 'resources/launch_screens/ipad_landscape_pro_12_9.png',

  // iOS splash screens legacy
  iphone_2x: 'resources/launch_screens/iphone_2x.png',
  ipad_portrait: 'resources/launch_screens/ipad_portrait.png',
  ipad_landscape: 'resources/launch_screens/ipad_landscape.png',

  // Android splash screens
  android_mdpi_portrait: 'resources/launch_screens/android_mdpi_portrait.png',
  android_mdpi_landscape: 'resources/launch_screens/android_mdpi_landscape.png',
  android_hdpi_portrait: 'resources/launch_screens/android_hdpi_portrait.png',
  android_hdpi_landscape: 'resources/launch_screens/android_hdpi_landscape.png',
  android_xhdpi_portrait: 'resources/launch_screens/android_xhdpi_portrait.png',
  android_xhdpi_landscape: 'resources/launch_screens/android_xhdpi_landscape.png',
  android_xxhdpi_portrait: 'resources/launch_screens/android_xxhdpi_portrait.png',
  android_xxhdpi_landscape: 'resources/launch_screens/android_xxhdpi_landscape.png',
  android_xxxhdpi_portrait: 'resources/launch_screens/android_xxxhdpi_portrait.png',
  android_xxxhdpi_landscape: 'resources/launch_screens/android_xxxhdpi_landscape.png'

});

Icons

Check out meteor-cordova-icon

Acknowledgements

This is a fork of cordova-splash by Alex Disler. Most of the work was already done by him.

License

MIT

meteor-cordova-splash's People

Contributors

alexdisler avatar brunocartier avatar emilbryggare avatar felixhamel avatar phcorp avatar samaxes avatar welovewebdesign avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

meteor-cordova-splash's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.