Skip to content

Instantly share code, notes, and snippets.

@hairyhum
Created May 15, 2019 13:43
Show Gist options
  • Save hairyhum/45e1a4c80495a86ab3ca9bda6c8e11b9 to your computer and use it in GitHub Desktop.
Save hairyhum/45e1a4c80495a86ab3ca9bda6c8e11b9 to your computer and use it in GitHub Desktop.
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
use Mix.Config
config :elixir, [check_endianness: false]
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