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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

What's the state of custom templates? #48

Open
tunnckoCore opened this issue Aug 5, 2017 · 2 comments
Open

What's the state of custom templates? #48

tunnckoCore opened this issue Aug 5, 2017 · 2 comments

Comments

@tunnckoCore
Copy link

Hi there 馃憢

We were talking about that before, but didn't remember where it was and what issues there had. But didn't follow what's up for awhile, so directly asking: how can we customize the templates of the generators, can we? Where to place them, in what structure?

I have personal streaming scaffolder, which is enough in most cases, but probably i want to start using Generate and i can't until i can customize the templates, because don't want to stick to the default ones. With verb it's easy, because it's just an option "layout": "empty", so that's why integrated it and using it for last year (or probably more; we waiting v0.9 finally ;p).

I'm going through very big changes around my profile and packages, so whole month i'll update all of my ~350 packages and will move most of them to @tunnckoCore organization. I want to unify everything.

@jonschlinkert
Copy link
Member

We've been using them since the beginning. I think there was a bug with nvm that was resolved.

I'm pretty sure you can add templates to the ~/templates directory. Dotfile templates are prefixed with _, like _gitignore, to prevent them from being confused with real dotfiles. The goal was to make the directory customizable. We might have enabled that already, sorry I haven't had a chance to check and I don't remember if I actually published the code to do that.

@tunnckoCore
Copy link
Author

Hm. Yea it was something like that, really.

As about the place of ~/templates, I believe that we discussed that too and was thinking to be 1) hidden or inside the ~/.data-store. (btw not to mention that someone makes .date-store too ;d).

But beside that fact that i probably should ignore, what should be the structure of that folder? Is it something like below?

templates/
- generate-package/templates/
- generate-project/templates/
- generate-git/templates/

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

2 participants