Code Monkey home page Code Monkey logo

cap-easy-resources's Introduction

cap easy resources

A simple and intuitive cli tool designed for automatic generation of icon and splash screen for your hybrid Capacitor applications.

It's built on top of cordova-res, and it only requires one single image for automatic generation of your app resouces.

screencast

Usage

cap-easy-resources can be use run fully unattended with params:

$ cap-easy-resources --help
cap-easy-resources [args]

Opciones:
      --version         Muestra número de versión                     [booleano]
      --icon-image      icon image path                   [cadena de caracteres]
      --icon-bgcolor    icon background color             [cadena de caracteres]
      --icon-ratio      icon size ratio                                 [número]
      --splash-image    splash image path                 [cadena de caracteres]
      --splash-bgcolor  splash background color           [cadena de caracteres]
      --splash-ratio    splash image size ratio                         [número]
  -p, --project-path    Capacitor project path            [cadena de caracteres]
  -i, --ios             create ios resources         [booleano] [defecto: false]
  -a, --android         create android resources     [booleano] [defecto: false]
      --help            Muestra ayuda                                 [booleano]

Or the tool it will prompt user for any missing parameters:

$ cap-easy-resources 
? Select capacitor project path .
? Enter icon image path batman.png
? Enter icon background color #fff00
? Enter icon size ratio 0.55
? Enter splash screen image path batman.png
? Enter splash screen background color #eee8aa
? Enter splash screen size ratio 0.45
? Build resources for android Yes
? Build resources for iOS Yes

About to run cordova-res:

Generated 24 resources for Android
Copied 31 resource items to Android
Generated 47 resources for iOS
Copied 21 resource items to iOS

🐳 All Good! [3552ms]

Install

Just install the package globally on your sysmtem:

$ npm i -g cap-easy-resources
$ cap-easy-resources

Or use it with with npx:

npx cap-easy-resources

External Links

cap-easy-resources's People

Contributors

jabiinfante avatar

Watchers

 avatar  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.