Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Compile Diameter .dia files on Erlang Rebar3 projects

License

NotificationsYou must be signed in to change notification settings

carlosedp/rebar3_diameter_compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compilediameter .dia files in rebar3 projects

Erlang CIHex pm

Build

./rebar3 compile

Use

Add the plugin to your rebar config from Github:

{plugins, [    {rebar3_diameter_compiler, {git,"https://github.com/carlosedp/rebar3_diameter_compiler.git", {branch,"master"}}}]}.{provider_hooks, [    {pre, [        {compile, {diameter,compile}},        {clean, {diameter,clean}}    ]}]}.

Or fetch the plugin using Hex.pm:

{plugins, [rebar3_diameter_compiler]}.{provider_hooks, [    {pre, [        {compile, {diameter,compile}},        {clean, {diameter,clean}}    ]}]}.

The plugin will be ran on compile and clean commands or call your plugin directly in an existing application:

$ rebar3 diameter compile===> Fetching rebar3_diameter_compiler===> Compiling rebar3_diameter_compiler===> Compiling diameter...$ rebar3 diameter clean===> Cleaning diameter compiled files...

The option specified below allows to compile only specific diameter dictionaries

{dia_only_files, [your_dictionary    ]}.

Test

One test compiles a.dia file for validation, another compares the generated erl/hrl files with the expected files intest/expected directory.

rebar3 eunit

If the format changes in the future(for example due a compiler change), the expected files can be re-generated withGOLDEN_RUN=1 rebar3 unit. This will overwrite the existing expected files.

Publishing new versions

This is mostly a reminder on how to bump and publish a new version.

# Login to Hexrebar3 hex user auth# Cut new version with hexrebar3 hex cut

About

Compile Diameter .dia files on Erlang Rebar3 projects

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published

Contributors9

Languages


[8]ページ先頭

©2009-2025 Movatter.jp