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

Consider writing rebar3 templates and shipping them with LFE #203

Closed
yurrriq opened this issue Mar 18, 2016 · 4 comments
Closed

Consider writing rebar3 templates and shipping them with LFE #203

yurrriq opened this issue Mar 18, 2016 · 4 comments
Labels

Comments

@yurrriq
Copy link
Contributor

yurrriq commented Mar 18, 2016

If you put rebar3 templates in priv/ at the project root, they're usable in projects that depend on them.

I think it'd be cool to be able to do:

$ rebar3 new lfe sup
$ rebar3 new lfe gen_server
$ rebar3 new lfe unit-test

etc

@oubiwann
Copy link
Member

Here are my thoughts:

  • basic library template -- cool
  • OTP templates (for gen_server, get_event, gen_fsm, etc.) -- cool
  • templates that require any other library in order to be useful -- I'd vote for those going in their respective library's priv dirs ...

Regardless, this capability of rebar3 is neat; I didn't know that it would take advantage of the deps libs priv dirs for templates.

@yurrriq
Copy link
Contributor Author

yurrriq commented Mar 21, 2016

Agreed. For templates packaged with the language, I was thinking just barebones stuff like OTP behaviours and maybe super generic application and library templates.

@rvirding
Copy link
Member

Now I have to expose my ignorance here. Why would I need a template for
gen_server etc? And what is in such a template?

Robert

On 21 March 2016 at 07:26, Eric Bailey notifications@github.com wrote:

Agreed. For templates packaged with the language, I was thinking just
barebones stuff like OTP behaviours and maybe super generic application and
library templates.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#203 (comment)

@oubiwann
Copy link
Member

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

No branches or pull requests

3 participants