Giter Site home page Giter Site logo

drone's Introduction

Drone

The missing library manager for Android Developers (beta)

Build Status npm npm License

Summary

  • โšก Blazing fast way to add libraries
  • ๐ŸŽ‰ No need to search the web for that library
  • ๐Ÿš€ Intuitive, easy-to-learn tool
  • ๐Ÿ’Ž Add multiple dependencies with a one liner
  • โœŒ๏ธ Automated dependency and package management
  • ๐Ÿ”จ Automatic import custom urls (e.g. jitpack)

What is it?

As an android developer I was jealous of the node.js community for their fast and reliable dependency managers, it's so easy to write yarn add <library> and a library is imported into the project... So I made drone for android!

If you think about it there are like 50 libraries that are used in 95% of the apps (retrofit, rxjava, gson, picasso, roboletric, recyclerview-v7, etc.)

I made this because every time I want to add (lets say) butterknife I need to

  1. google butterknife
  2. go to the readme
  3. find the lines to copy
  4. notice that butterknife has 2 dependencies
  5. copy and paste in my gradle file
  6. OPTIONAL if it was not in jcenter, go to the main build gradle and put the custom URL

OR...

drone add jakewharton/butterknife

and everything will be done for you automatically

Install

npm install -g drone

Usage

Simple usage:

drone add creator/library module

Usage

   $ drone <command> <params>

   $ drone install                            # Downloads the packages
   $ drone test <creator/library>             # Tests the library by fetching its version
   $ drone add <creator/library> <module>     # Adds a dependency to a module
   $ drone remove <creator/library> <module>  # Removes the dependency from a module
   $ drone info <creator/library>             # Retrieves the info for this package
   $ drone update                             # Get the latest packages
   $ drone list                               # List all of the packages
   $ drone stats                              # Get some stats regarding the hive
   $ drone hive                               # Opens the hive url
   $ drone open <creator/library>             # Opens the library's homepage
   $ drone new                                # Creates a new one if it's not in the server yet
   $ drone search <library>                   # Searches for the 'library' in the hive

 Examples

   $ drone install                            # Downloads the packages
   $ drone info square/picasso                # Shows the info for square/picasso
   $ drone add square/retrofit app            # Adds retrofit to the 'app' module 
   $ drone rm square/retrofit app             # removes retrofit from the 'app' module 
   $ drone open google/gson                   # Opens GSONs homepage
   $ drone new                                # takes you throught the creation wizard
   $ drone search rxjava                      # Searches the hive for 'rxjava'
   $ drone test square/picasso                # Tests the library by fetching its version

Where are the libraries?

Instead of maintaining a server with all the possible libraries I'm going with a brew approach, the community will create a library once and it will be available to everyone else forever in the hive!

$ drone new

follow the wizard to generate the <library>.json file then open the pull request in the hive with this format:

hive/<creator/library>.json

If you look closely, when you type square/retrofit, drone will autofill everything for you, and even if it takes a few hours for the pull request to be accepted you'll be able to do drone add square/retrofit because the drone new task will add it to your personal server/folder.

Created by

Cesar Ferreira

License

MIT ยฉ Cesar Ferreira

Logo

by Freepik from www.flaticon.com is licensed by CC 3.0 BY

drone's People

Contributors

cesarferreira avatar

Watchers

Michael jentsch 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.