defmodule Kwfuns.Mixfile do use Mix.Project def project do [app: :kwfuns, version: "0.0.4", elixir: "~> 1.1", description: description, package: package, build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps] end # Configuration for the OTP application # # Type "mix help compile.app" for more information def application do [applications: [:logger]] end # Dependencies can be Hex packages: # # {:mydep, "~> 0.3.0"} # # Or git/path repositories: # # {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1.0"} # # Type "mix help deps" for more examples and options defp deps do [ {:earmark, "~> 0.1", only: :dev}, {:ex_doc, "~> 0.11", only: :dev}, {:inch_ex, only: :docs} ] end def description do """ Macros to create functions with syntax based keyword parameters with default values defkw make_list_elem( parent, text, spaced: false, type: :ul ) do ... end translates to def make_list_elem( parent, text, keywords \\ [] ) do some_code_with( spaces, typed) end """ end def package do [ maintainers: ["Robert Dober "], licenses: ["Apache 2.0"], links: %{github: "https://github.com/RobertDober/lab42_defkw"} ] end end