From ad9ca0cc8644b0a89a05ea184483c1d7b8318fcd Mon Sep 17 00:00:00 2001 From: Fred Hebert Date: Fri, 14 Nov 2014 17:44:19 +0000 Subject: Built-in templates create the project directory --- priv/templates/app.template | 12 ++++++------ priv/templates/lib.template | 12 ++++++------ priv/templates/plugin.template | 12 ++++++------ priv/templates/release.template | 20 ++++++++++---------- 4 files changed, 28 insertions(+), 28 deletions(-) (limited to 'priv') diff --git a/priv/templates/app.template b/priv/templates/app.template index 78374af..b7bfebc 100644 --- a/priv/templates/app.template +++ b/priv/templates/app.template @@ -3,9 +3,9 @@ {name, "mylib", "Name of the OTP application"}, {desc, "An OTP application", "Short description of the app"} ]}. -{template, "app.erl.dtl", "src/{{name}}_app.erl"}. -{template, "otp_app.app.src.dtl", "src/{{name}}.app.src"}. -{template, "rebar.config.dtl", "rebar.config"}. -{template, "gitignore.dtl", ".gitignore"}. -{template, "LICENSE.dtl", "LICENSE"}. -{template, "README.md.dtl", "README.md"}. +{template, "app.erl.dtl", "{{name}}/src/{{name}}_app.erl"}. +{template, "otp_app.app.src.dtl", "{{name}}/src/{{name}}.app.src"}. +{template, "rebar.config.dtl", "{{name}}/rebar.config"}. +{template, "gitignore.dtl", "{{name}}/.gitignore"}. +{template, "LICENSE.dtl", "{{name}}/LICENSE"}. +{template, "README.md.dtl", "{{name}}/README.md"}. diff --git a/priv/templates/lib.template b/priv/templates/lib.template index 1db3b07..4b9a75d 100644 --- a/priv/templates/lib.template +++ b/priv/templates/lib.template @@ -3,9 +3,9 @@ {name, "mylib", "Name of the OTP library application"}, {desc, "An OTP library", "Short description of the app"} ]}. -{template, "mod.erl.dtl", "src/{{name}}.erl"}. -{template, "otp_lib.app.src.dtl", "src/{{name}}.app.src"}. -{template, "rebar.config.dtl", "rebar.config"}. -{template, "gitignore.dtl", ".gitignore"}. -{template, "LICENSE.dtl", "LICENSE"}. -{template, "README.md.dtl", "README.md"}. +{template, "mod.erl.dtl", "{{name}}/src/{{name}}.erl"}. +{template, "otp_lib.app.src.dtl", "{{name}}/src/{{name}}.app.src"}. +{template, "rebar.config.dtl", "{{name}}/rebar.config"}. +{template, "gitignore.dtl", "{{name}}/.gitignore"}. +{template, "LICENSE.dtl", "{{name}}/LICENSE"}. +{template, "README.md.dtl", "{{name}}/README.md"}. diff --git a/priv/templates/plugin.template b/priv/templates/plugin.template index a7e15cc..3419191 100644 --- a/priv/templates/plugin.template +++ b/priv/templates/plugin.template @@ -3,9 +3,9 @@ {name, "myplugin", "Name of the plugin"}, {desc, "A rebar plugin", "Short description of the plugin's purpose"} ]}. -{template, "plugin.erl.dtl", "src/{{name}}.erl"}. -{template, "otp_lib.app.src.dtl", "src/{{name}}.app.src"}. -{template, "rebar.config.dtl", "rebar.config"}. -{template, "gitignore.dtl", ".gitignore"}. -{template, "LICENSE.dtl", "LICENSE"}. -{template, "plugin_README.md.dtl", "README.md"}. +{template, "plugin.erl.dtl", "{{name}}/src/{{name}}.erl"}. +{template, "otp_lib.app.src.dtl", "{{name}}/src/{{name}}.app.src"}. +{template, "rebar.config.dtl", "{{name}}/rebar.config"}. +{template, "gitignore.dtl", "{{name}}/.gitignore"}. +{template, "LICENSE.dtl", "{{name}}/LICENSE"}. +{template, "plugin_README.md.dtl", "{{name}}/README.md"}. diff --git a/priv/templates/release.template b/priv/templates/release.template index 3539392..eb8e6ab 100644 --- a/priv/templates/release.template +++ b/priv/templates/release.template @@ -3,13 +3,13 @@ {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.dtl", "{{apps_dir}}/{{name}}/src/{{name}}_app.erl"}. -{template, "sup.erl.dtl", "{{apps_dir}}/{{name}}/src/{{name}}_sup.erl"}. -{template, "otp_app.app.src.dtl", "{{apps_dir}}/{{name}}/src/{{name}}.app.src"}. -{template, "rebar.config.dtl", "rebar.config"}. -{template, "relx.config.dtl", "relx.config"}. -{template, "sys.config.dtl", "config/sys.config"}. -{template, "vm.args.dtl", "config/vm.args"}. -{template, "gitignore.dtl", ".gitignore"}. -{template, "LICENSE.dtl", "LICENSE"}. -{template, "README.md.dtl", "README.md"}. +{template, "app.erl.dtl", "{{name}}/{{apps_dir}}/{{name}}/src/{{name}}_app.erl"}. +{template, "sup.erl.dtl", "{{name}}/{{apps_dir}}/{{name}}/src/{{name}}_sup.erl"}. +{template, "otp_app.app.src.dtl", "{{name}}/{{apps_dir}}/{{name}}/src/{{name}}.app.src"}. +{template, "rebar.config.dtl", "{{name}}/rebar.config"}. +{template, "relx.config.dtl", "{{name}}/relx.config"}. +{template, "sys.config.dtl", "{{name}}/config/sys.config"}. +{template, "vm.args.dtl", "{{name}}/config/vm.args"}. +{template, "gitignore.dtl", "{{name}}/.gitignore"}. +{template, "LICENSE.dtl", "{{name}}/LICENSE"}. +{template, "README.md.dtl", "{{name}}/README.md"}. -- cgit v1.1