Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mix.exs #99

Merged
merged 2 commits into from Oct 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions RELEASE.md
@@ -0,0 +1,7 @@
# Steps for publishing new version

1. Update version in `src/telemetry.app.src`
2. Update version in `docs.sh`
3. Run `./docs.sh`
4. Run `rebar3 as docs hex publish`
5. Run `rebar3 as docs hex docs`
20 changes: 20 additions & 0 deletions mix.exs
@@ -0,0 +1,20 @@
# This file is only used by Telemetry as a dependency.
# Use rebar3 instead for compiling, running tests, etc.
defmodule Telemetry.MixProject do
use Mix.Project

{:ok, [{:application, :telemetry, props}]} = :file.consult("src/telemetry.app.src")
@props props

def application do
@props
end

def project do
[
app: :telemetry,
version: to_string(application()[:vsn]),
language: :erlang
]
end
end
2 changes: 1 addition & 1 deletion src/telemetry.app.src
@@ -1,6 +1,6 @@
{application, telemetry,
[{description, "Dynamic dispatching library for metrics and instrumentations"},
{vsn, "git"},
{vsn, "1.0.0"},
{registered, []},
{mod, {telemetry_app, []}},
{applications,
Expand Down