diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2017-08-09 20:08:36 -0400 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2017-08-09 20:10:40 -0400 |
commit | 98354eb8548a304212b3be035a0658d3b4435ea2 (patch) | |
tree | 2fb7bc132b93d82c59cc48984f961785d9358941 /priv | |
parent | 2939110eb85bed0dd494bf0ddeb4c07f5e46bfc7 (diff) |
Add an alias of 'release' template as 'umbrella'
Gets in line with more common usage of the wording, as discussed in
issue #1421 and
https://www.reddit.com/r/erlang/comments/6sd01p/help_terribly_frustrated_with_the_erlang_build/
Diffstat (limited to 'priv')
-rw-r--r-- | priv/templates/umbrella.template | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/priv/templates/umbrella.template b/priv/templates/umbrella.template new file mode 100644 index 0000000..a2855d3 --- /dev/null +++ b/priv/templates/umbrella.template @@ -0,0 +1,15 @@ +{description, "OTP structure for executable programs (alias of 'release' template)"}. +{variables, [ + {name, "myapp", "Name of the OTP release. An app with this name will also be created."}, + {desc, "An OTP application", "Short description of the release's main app's purpose"} +]}. +{template, "app.erl", "{{name}}/{{apps_dir}}/{{name}}/src/{{name}}_app.erl"}. +{template, "sup.erl", "{{name}}/{{apps_dir}}/{{name}}/src/{{name}}_sup.erl"}. +{template, "otp_app.app.src", "{{name}}/{{apps_dir}}/{{name}}/src/{{name}}.app.src"}. +{template, "relx_rebar.config", "{{name}}/rebar.config"}. +{template, "sys.config", "{{name}}/config/sys.config"}. +{template, "vm.args", "{{name}}/config/vm.args"}. +{template, "gitignore", "{{name}}/.gitignore"}. +{template, "LICENSE", "{{name}}/LICENSE"}. +{template, "README.md", "{{name}}/README.md"}. + |