11defmodule Ot.Mixfile do
22 use Mix.Project
33
4+ @ version "0.1.0"
5+ @ github_url "https://github.com/jclem/ot"
6+
47 def project do
58 [ app: :ot ,
6- version: "0.1.0" ,
9+ version: @ version ,
10+ description: description ( ) ,
11+ package: package ( ) ,
712 elixir: "~> 1.4" ,
813 build_embedded: Mix . env == :prod ,
914 start_permanent: Mix . env == :prod ,
@@ -12,33 +17,46 @@ defmodule Ot.Mixfile do
1217 dialyzer: [ flags: ~w( -Werror_handling
1318 -Wrace_conditions
1419 -Wunderspecs
15- -Wunmatched_returns) ] ]
20+ -Wunmatched_returns) ] ,
21+
22+ # Docs
23+ name: "OT" ,
24+ homepage_url: @ github_url ,
25+ source_url: @ github_url ,
26+ docs: docs ( ) ]
27+ end
28+
29+ defp aliases do
30+ [ lint: [ "credo" , "dialyzer --halt-exit-status" ] ]
1631 end
1732
18- # Configuration for the OTP application
19- #
20- # Type "mix help compile.app" for more information
2133 def application do
2234 # Specify extra applications you'll use from Erlang/Elixir
2335 [ ]
2436 end
2537
26- # Dependencies can be Hex packages:
27- #
28- # {:my_dep, "~> 0.3.0"}
29- #
30- # Or git/path repositories:
31- #
32- # {:my_dep, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
33- #
34- # Type "mix help deps" for more examples and options
3538 defp deps do
3639 [ { :ex_doc , "~> 0.14" , only: [ :dev ] } ,
3740 { :dialyxir , "~> 0.4" , only: [ :dev ] , runtime: false } ,
3841 { :credo , "~> 0.5" , only: [ :dev , :test ] } ]
3942 end
4043
41- defp aliases do
42- [ lint: [ "credo" , "dialyzer --halt-exit-status" ] ]
44+ defp description do
45+ """
46+ OT provides libraries for operational transformation, which is a method of
47+ achieving consistency in a collaborative software system.
48+ """
49+ end
50+
51+ defp docs do
52+ [ source_ref: "v#{ @ version } " ,
53+ extras: [ "README.md": [ filename: "README.md" , title: "Readme" ] ,
54+ "LICENSE.md": [ filename: "LICENSE.md" , title: "License" ] ] ]
55+ end
56+
57+ defp package do
58+ [ maintainers: [ "Jonathan Clem <[email protected] >" ] , 59+ licenses: [ "ISC" ] ,
60+ links: % { "GitHub" => @ github_url } ]
4361 end
4462end
0 commit comments