Skip to content

Commit fb69fda

Browse files
author
Daniil Fedotov
committed
Docs and README
1 parent a77e8cb commit fb69fda

File tree

6 files changed

+25
-23
lines changed

6 files changed

+25
-23
lines changed

README.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,26 @@
1-
# MixTaskDepsArchive
1+
# Mix tasks to archive project dependencies
22

3-
**TODO: Add description**
3+
This repo contains Mix tasks to create `*.ez` archives for a project dependencies.
4+
5+
There are three new tasks:
6+
7+
- `archive.build.deps` - build archives for a project dependencies
8+
- `archive.build.elixir` - build archives with Elixir and Elixir apps (like `mix` or `logger`)
9+
- `archive.build.all` - build dependencies archives and a project archive
10+
11+
The tasks are intended to use to create no-dependency distributions of Elixir apps,
12+
that can be run from Erlang runtime without installing Elixir and recompiling apps.
413

514
## Installation
615

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

1019
```elixir
1120
def deps do
12-
[{:mix_task_deps_archive, "~> 0.1.0"}]
21+
[{:mix_task_archive_deps, "~> 0.1.0"}]
1322
end
1423
```
1524

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

config/config.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ use Mix.Config
1010

1111
# You can configure for your application as:
1212
#
13-
# config :mix_task_deps_archive, key: :value
13+
# config :mix_task_archive_deps, key: :value
1414
#
1515
# And access this configuration in your application as:
1616
#
17-
# Application.get_env(:mix_task_deps_archive, :key)
17+
# Application.get_env(:mix_task_archive_deps, :key)
1818
#
1919
# Or configure a 3rd-party app:
2020
#

lib/mix/tasks/archive/build.all.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
##
1818
##
1919

20-
2120
defmodule Mix.Tasks.Archive.Build.All do
2221
use Mix.Task
2322

mix.exs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,20 @@
1717
##
1818
##
1919

20-
defmodule MixTaskDepsArchive.Mixfile do
20+
defmodule MixTaskArchiveDeps.Mixfile do
2121
use Mix.Project
2222

2323
def project do
24-
[app: :mix_task_deps_archive,
24+
[app: :mix_task_archive_deps,
2525
version: "0.1.0",
2626
elixir: "~> 1.4",
2727
build_embedded: Mix.env == :prod,
2828
start_permanent: Mix.env == :prod,
2929
description: "Mix task to create archives for a project dependencies and elixit itslef",
3030
package: package(),
31-
deps: deps()]
31+
deps: deps(),
32+
name: "MixTaskArchiveDeps",
33+
source_url: "https://github.com/hairyhum/mix_task_archive_deps"]
3234
end
3335

3436
# Configuration for the OTP application
@@ -49,13 +51,13 @@ defmodule MixTaskDepsArchive.Mixfile do
4951
#
5052
# Type "mix help deps" for more examples and options
5153
defp deps do
52-
[]
54+
[{:ex_doc, "~> 0.14", only: :dev}]
5355
end
5456
defp package() do
55-
[name: :mix_task_deps_archive,
57+
[name: :mix_task_archive_deps,
5658
files: ["lib", "mix.exs", "README*", "LICENSE*"],
5759
maintainers: ["Daniil Fedotov"],
5860
licenses: ["Apache 2.0"],
59-
links: %{"GitHub" => "https://github.com/hairyhum/mix_task_deps_archive"}]
61+
links: %{"GitHub" => "https://github.com/hairyhum/mix_task_archive_deps"}]
6062
end
6163
end

test/mix_task_deps_archive_test.exs

Lines changed: 0 additions & 5 deletions
This file was deleted.

test/test_helper.exs

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)