This repository has been archived by the owner on Jul 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For contributor history, see the following: * https://github.com/rebar/rebar/blame/master/src/rebar_lfe_compiler.erl * https://github.com/oubiwann/rebar3/pull/1
- Loading branch information
Showing
2 changed files
with
16 additions
and
9 deletions.
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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
Copyright (c) 2015, Anonymous <[email protected]>. | ||
Copyright (c) 2009, Dave Smith <[email protected]> & | ||
Tim Dysinger <[email protected]> | ||
Copyright (c) 2014, 2015 Duncan McGreggor <[email protected]> | ||
|
||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
|
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
%% Copyright (c) 2009, Dave Smith <[email protected]> & | ||
%% Tim Dysinger <[email protected]> | ||
%% Copyright (c) 2014, 2015 Duncan McGreggor <[email protected]> | ||
%% | ||
-module('lfe-compile'). | ||
-behaviour(provider). | ||
|
||
|
@@ -15,15 +19,15 @@ | |
-spec init(rebar_state:t()) -> {ok, rebar_state:t()}. | ||
init(State) -> | ||
Provider = providers:create([ | ||
{name, compile}, % The 'user friendly' name of the task | ||
{module, ?MODULE}, % The module implementation of the task | ||
{name, compile}, | ||
{module, ?MODULE}, | ||
{namespace, lfe}, | ||
{bare, true}, % The task can be run by the user, always true | ||
{deps, ?DEPS}, % The list of dependencies | ||
{example, "rebar3 lfe compile"}, % How to use the plugin | ||
{short_desc, "rebar compile for LFE"}, | ||
{desc, "The LFE compile rebar plugin"}, | ||
{opts, []} % list of options understood by the plugin | ||
{bare, true}, | ||
{deps, ?DEPS}, | ||
{example, "rebar3 lfe compile"}, | ||
{short_desc, "rebar3 compile for LFE"}, | ||
{desc, "The LFE rebar3 compiler plugin"}, | ||
{opts, []} | ||
]), | ||
{ok, rebar_state:add_provider(State, Provider)}. | ||
|
||
|