Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a new Dragon web app skeleton #1

Open
6 of 9 tasks
oubiwann opened this issue Mar 7, 2016 · 3 comments
Open
6 of 9 tasks

Create a new Dragon web app skeleton #1

oubiwann opened this issue Mar 7, 2016 · 3 comments
Assignees

Comments

@oubiwann
Copy link
Member

oubiwann commented Mar 7, 2016

Along the same lines as rebar3 newor lein new. In particular, the following should create a new Dragon app skeleton:

$ rebar3 dragon new <project-name>

The result should be a project very similar to what the current lfetool new yaws bootstrap command does (I think that's the lfetool command ...). The first version of this plugin should be an automated process of what the dragon v0 site demonstrates for starting a new project (documentation for that is forthcoming ...).

Provide the following templates:

  • mod.lfe
  • app.lfe
  • sup.lfe
  • app.src
  • README.md
  • rebar.config
  • lfe.config
  • gitignore
  • LICENSE
@yurrriq
Copy link
Member

yurrriq commented Mar 9, 2016

Something interesting here is that rebar3 looks for templates in ./priv so I think we can provide templates in rebar3-dragon/priv. Relevant documentation.

@rvirding
Copy link

rvirding commented Mar 9, 2016

Question is whether it does this at all levels or only for plugins?

@yurrriq
Copy link
Member

yurrriq commented Mar 9, 2016

As I understand, if you depend on some-plugin which provides templates in its priv, when you call rebar3 in your project root, it will see some-plugin' s templates. I haven't tried it though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants