Created
May 15, 2019 13:43
-
-
Save hairyhum/45e1a4c80495a86ab3ca9bda6c8e11b9 to your computer and use it in GitHub Desktop.
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
defmodule App do | |
@moduledoc """ | |
Documentation for App. | |
""" | |
@doc """ | |
Hello world. | |
## Examples | |
iex> App.hello() | |
:world | |
""" | |
def hello do | |
:world | |
end | |
def main(_) do | |
IO.puts "HELLO" | |
end | |
end |
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
use Mix.Config | |
config :elixir, [check_endianness: false] |
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
defmodule App.MixProject do | |
use Mix.Project | |
def project do | |
[ | |
app: :app, | |
version: "0.1.0", | |
elixir: "~> 1.9-dev", | |
start_permanent: Mix.env() == :prod, | |
deps: deps(), | |
escript: [main_module: App, | |
path: "escript/app" | |
# , | |
# emu_args: "-elixir check_endianness false" | |
] | |
] | |
end | |
# Run "mix help compile.app" to learn about applications. | |
def application do | |
[ | |
extra_applications: [:logger] | |
] | |
end | |
# Run "mix help deps" to learn about dependencies. | |
defp deps do | |
[ | |
# {:dep_from_hexpm, "~> 0.3.0"}, | |
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"} | |
] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment