Giter Club home page Giter Club logo

community's Introduction

Hex Community

Hex community are packages the community maintains on Hex.

A package may be maintained by the community because the project authors have not yet published it to Hex.

Community packages are added to this repository as a mixfile with metadata describing the project and how to fetch it. To add a package or add a new version of a package simply send a pull request with the necessary changes to the package mixfile. When the pull request is merged the package will be published.

If your project have been published to Hex through Hex Community and you want to take over ownership send an email to [email protected] with your Hex user details and the admins will transfer the package after verifing your ownership.

Instructions

Instructions for adding a new package to Hex or releasing a new version of a package.

  1. Fork

  2. Clone and enter the forked repository git clone [email protected]:myself/community.git && cd community

  3. Create the package file if it does not exist touch packages/the_package.exs

  4. Edit the package file (see below for example file) vim packages/the_package.exs

  5. Check out new branch git checkout -b add-the_package

  6. Commit git commit -a -m "Add the_package"

  7. Push git push -u origin add-the_package

  8. Send pull request

Please include, in the pull request, why you want the package published and which package(s) is going to depend on it. When the pull request has been merged the package will be published to Hex.

Example package file

defmodule ThePackage.Mixfile do
  use Mix.Project

  def project do
    [app: :the_package,
     version: "1.2.3",

     deps: deps,
     description: description,
     package: package,
     fetch: fetch]
  end

  # List of Hex dependencies, return empty list if package has no dependencies
  defp deps do
    [{:other_package, "~> 1.0"}]
  end

  defp description do
    """
    A few paragraphs describing of the package.
    """
  end

  defp package do
    [contributors: ["Eric Meadows-Jönsson", "José Valim"],
     licenses: ["Apache 2.0"],
     links: %{"GitHub" => "https://github.com/someone/the_package"},
     files: [...]] # make sure to add all files necessary for mix to compile the package here. (e.g. rebar.config)
  end

  # Metadata for finding the package that will be published
  # Currently the only supported scm is :git
  # A :tag or :ref option is required, it should match the version of the
  # project that should be published
  defp fetch do
    [scm: :git,
     url: "git://github.com/someone/the_package.git",
     tag: "v1.2.3"]
  end
end

community's People

Contributors

edgurgel avatar ericmj avatar fishcakez avatar josevalim avatar lau avatar lexmag avatar liveforeverx avatar msbt avatar msch avatar novabyte avatar okeuday avatar philss avatar pma avatar reset avatar sebastianszturo avatar surik avatar yrashk avatar zyro 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.