Skip to content

Commit

Permalink
Docs and README
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniil Fedotov committed Jan 20, 2017
1 parent a77e8cb commit fb69fda
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 23 deletions.
23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
# MixTaskDepsArchive
# Mix tasks to archive project dependencies

**TODO: Add description**
This repo contains Mix tasks to create `*.ez` archives for a project dependencies.

There are three new tasks:

- `archive.build.deps` - build archives for a project dependencies
- `archive.build.elixir` - build archives with Elixir and Elixir apps (like `mix` or `logger`)
- `archive.build.all` - build dependencies archives and a project archive

The tasks are intended to use to create no-dependency distributions of Elixir apps,
that can be run from Erlang runtime without installing Elixir and recompiling apps.

## Installation

If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `mix_task_deps_archive` to your list of dependencies in `mix.exs`:
The package can be installed by adding `mix_task_archive_deps`
to your list of dependencies in `mix.exs`:

```elixir
def deps do
[{:mix_task_deps_archive, "~> 0.1.0"}]
[{:mix_task_archive_deps, "~> 0.1.0"}]
end
```

Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at [https://hexdocs.pm/mix_task_deps_archive](https://hexdocs.pm/mix_task_deps_archive).
The docs can be found at [https://hexdocs.pm/mix_task_archive_deps](https://hexdocs.pm/mix_task_archive_deps).

4 changes: 2 additions & 2 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ use Mix.Config

# You can configure for your application as:
#
# config :mix_task_deps_archive, key: :value
# config :mix_task_archive_deps, key: :value
#
# And access this configuration in your application as:
#
# Application.get_env(:mix_task_deps_archive, :key)
# Application.get_env(:mix_task_archive_deps, :key)
#
# Or configure a 3rd-party app:
#
Expand Down
1 change: 0 additions & 1 deletion lib/mix/tasks/archive/build.all.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
##
##


defmodule Mix.Tasks.Archive.Build.All do
use Mix.Task

Expand Down
14 changes: 8 additions & 6 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,20 @@
##
##

defmodule MixTaskDepsArchive.Mixfile do
defmodule MixTaskArchiveDeps.Mixfile do
use Mix.Project

def project do
[app: :mix_task_deps_archive,
[app: :mix_task_archive_deps,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: "Mix task to create archives for a project dependencies and elixit itslef",
package: package(),
deps: deps()]
deps: deps(),
name: "MixTaskArchiveDeps",
source_url: "https://github.com/hairyhum/mix_task_archive_deps"]
end

# Configuration for the OTP application
Expand All @@ -49,13 +51,13 @@ defmodule MixTaskDepsArchive.Mixfile do
#
# Type "mix help deps" for more examples and options
defp deps do
[]
[{:ex_doc, "~> 0.14", only: :dev}]
end
defp package() do
[name: :mix_task_deps_archive,
[name: :mix_task_archive_deps,
files: ["lib", "mix.exs", "README*", "LICENSE*"],
maintainers: ["Daniil Fedotov"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => "https://github.com/hairyhum/mix_task_deps_archive"}]
links: %{"GitHub" => "https://github.com/hairyhum/mix_task_archive_deps"}]
end
end
5 changes: 0 additions & 5 deletions test/mix_task_deps_archive_test.exs

This file was deleted.

1 change: 0 additions & 1 deletion test/test_helper.exs

This file was deleted.

0 comments on commit fb69fda

Please sign in to comment.