forked from cybergrind/rebar-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
project.template
32 lines (31 loc) · 1.4 KB
/
project.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{variables, [
{projectid, "myproject"},
{copyright_year, "2015"},
{author_name, "Rebar Template"},
{author_email,"[email protected]"},
{description, "Fill in description of project here."},
{basedir, "."}
]}.
{dir, "{{basedir}}/{{projectid}}"}.
{dir, "{{basedir}}/{{projectid}}/deps"}.
{dir, "{{basedir}}/{{projectid}}/src"}.
{dir, "{{basedir}}/{{projectid}}/ebin"}.
{dir, "{{basedir}}/{{projectid}}/include"}.
{dir, "{{basedir}}/{{projectid}}/test"}.
{dir, "{{basedir}}/{{projectid}}/priv"}.
{dir, "{{basedir}}/{{projectid}}/log"}.
{template, "project_README", "{{basedir}}/{{projectid}}/README"}.
{file, "project_CHANGELOG", "{{basedir}}/{{projectid}}/CHANGELOG"}.
{file, "project_rebar.config", "{{basedir}}/{{projectid}}/rebar.config"}.
{file, "project_app.config", "{{basedir}}/{{projectid}}/app.config"}.
{file, "project_Emakefile", "{{basedir}}/{{projectid}}/Emakefile"}.
{file, "project_Makefile", "{{basedir}}/{{projectid}}/Makefile"}.
{file, "project_gitignore", "{{basedir}}/{{projectid}}/.gitignore"}.
{file, "project_codestyle.md", "{{basedir}}/{{projectid}}/codestyle.md"}.
{file, "project_project.vars", "{{basedir}}/{{projectid}}/project.vars"}.
{cwd, "{{basedir}}/{{projectid}}"}.
{cmd, "git init"}.
{cmd, "wget https://github.com/rebar/rebar/releases/download/2.5.1/rebar"}.
{cmd, "chmod +x ./rebar;"}.
{cmd, "./rebar get-deps"}.
%{cmd, "./rebar create template=stdapp appname={{appname}}"}