Przeglądaj źródła

Auto-boot main app in OTP app project templates

People are starting to expect these niceties! It's also easier to drop
the config when you know it's there than add it when you don't know it
exists.
pull/1790/head
Fred Hebert 7 lat temu
rodzic
commit
0a0539ae2a
2 zmienionych plików z 8 dodań i 1 usunięć
  1. +1
    -1
      priv/templates/app.template
  2. +7
    -0
      priv/templates/app_rebar.config

+ 1
- 1
priv/templates/app.template Wyświetl plik

@ -6,7 +6,7 @@
{template, "app.erl", "{{name}}/src/{{name}}_app.erl"}. {template, "app.erl", "{{name}}/src/{{name}}_app.erl"}.
{template, "sup.erl", "{{name}}/src/{{name}}_sup.erl"}. {template, "sup.erl", "{{name}}/src/{{name}}_sup.erl"}.
{template, "otp_app.app.src", "{{name}}/src/{{name}}.app.src"}. {template, "otp_app.app.src", "{{name}}/src/{{name}}.app.src"}.
{template, "rebar.config", "{{name}}/rebar.config"}.
{template, "app_rebar.config", "{{name}}/rebar.config"}.
{template, "gitignore", "{{name}}/.gitignore"}. {template, "gitignore", "{{name}}/.gitignore"}.
{template, "LICENSE", "{{name}}/LICENSE"}. {template, "LICENSE", "{{name}}/LICENSE"}.
{template, "README.md", "{{name}}/README.md"}. {template, "README.md", "{{name}}/README.md"}.

+ 7
- 0
priv/templates/app_rebar.config Wyświetl plik

@ -0,0 +1,7 @@
{erl_opts, [debug_info]}.
{deps, []}.
{shell, [
% {config, [{config, "config/sys.config"}]},
{apps, [{{name}}]}
]}.

Ładowanie…
Anuluj
Zapisz