Created
December 22, 2016 15:48
-
-
Save seymores/b63e0f9740022f822ec36bfffa0e1c3c to your computer and use it in GitHub Desktop.
Publish new elixir library
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. In mix.exs, create | |
defp package do | |
[ | |
files: ["lib", "mix.exs", "README", "LICENSE*"], | |
maintainers: ["Your Name"], | |
licenses: ["Apache 2.0"], | |
links: %{"GitHub" => "https://github.com/fteem/some_app_name"} | |
] | |
end | |
2. Add to project section like this; | |
def project do | |
[app: :app_name, | |
version: "0.0.1", | |
elixir: "~> 1.0", | |
build_embedded: Mix.env == :prod, | |
start_permanent: Mix.env == :prod, | |
deps: deps, | |
description: "Something something", | |
package: package ] | |
end | |
3. Run `mix hex.publish" | |
4. If not registered yet then `mix hex.user register`. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment