-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This allows Elixir to compile the project without shelling out to Rebar 3, which is useful in low memory environments. Generally speaking, I wouldn't say this is a requirement for projects, but given telemetry usage is widespread, it makes sense to optimize it to different build tools. The only downside is that the vsn can no longer be hardcoded to "git". For this reason, we also introduce a "RELEASE.md" file with steps to release a new version (which already requires some extra steps due to the use of ExDoc for docs).
- Loading branch information
Showing
3 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
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