Git Product home page Git Product logo

splicon's Introduction

Splicon (beta)

Build Status

Splicon is a command-line tool and library for generating icons and splash screens for Cordova projects. It generates the images for each platform's required sizes using a single source SVG and updates the project's config.xml.

It was originally built for use in ember-cordova.

It is built for Node 0.12+ but may work on earlier versions.

Icons

For an integration example, see the ember-cordova make-icon command.

Using the CLI, from your Cordova project, run:

 splicon-icons

This command will:

  1. Look for a file called 'icon.svg';
  2. Resize the SVG for each required platform/icon combination;
  3. Move the icons to res/icons/platformName (and create the dir if it does not exist);
  4. Update your config.xml to represent the new icons & paths;
  5. Ensure there are no duplicate icon nodes in config.xml;

By default, images for all platforms will be generated. To generate images for specific platforms you can pass the platforms as arguments:

splicon-icons ios android windows

For more granular control (such as setting the destination path), you will need to require src/icon-task and run the function yourself.

There is a TODO to enhance CLI flag, but in most cases this is handled in ember-cordova.

Splash Screens

splicon-splashes

Like splicon-icons, by default images for all platforms will be generated. To generate images for specific platforms you can pass the platforms as arguments:

splicon-splashes ios

Testing

npm test

Contributing

PRs are very welcome. You can read our style guides here.

If you are unsure about your contribution idea, please feel free to open an issue for feedback.

Credits

ember-cordova is maintained by Isle of Code and was written by Alex Blom and Jordan Yee based on work by Chris Thoburn and Alex Blom.

splicon's People

Contributors

jordanyee avatar alexblom avatar dubistkomisch avatar aaronfischer avatar kitsunde avatar

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.