Parcourir la source

fix lib to not start mod

pull/3/head
Tristan Sloughter il y a 10 ans
Parent
révision
0f6c6305d6
3 fichiers modifiés avec 14 ajouts et 3 suppressions
  1. +13
    -0
      priv/templates/mod.erl
  2. +0
    -1
      priv/templates/otp_lib.app.src
  3. +1
    -2
      priv/templates/otp_lib.template

+ 13
- 0
priv/templates/mod.erl Voir le fichier

@ -0,0 +1,13 @@
-module({{appid}}).
%% Application callbacks
-export([]).
%%====================================================================
%% API
%%====================================================================
%%====================================================================
%% Internal functions
%%====================================================================

+ 0
- 1
priv/templates/otp_lib.app.src Voir le fichier

@ -3,7 +3,6 @@
{description, "{{appid}}"}
,{vsn, "0.1.0"}
,{registered, []}
,{mod, {'{{appid}}_app', []}}
,{applications,
[kernel
,stdlib

+ 1
- 2
priv/templates/otp_lib.template Voir le fichier

@ -1,6 +1,5 @@
{variables, []}.
{template, "app.erl", "src/{{appid}}_app.erl"}.
{template, "sup.erl", "src/{{appid}}_sup.erl"}.
{template, "mod.erl", "src/{{appid}}.erl"}.
{template, "otp_lib.app.src", "src/{{appid}}.app.src"}.
{template, "rebar.config", "rebar.config"}.
{template, "gitignore", ".gitignore"}.

Chargement…
Annuler
Enregistrer