-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add docs for customizing the generator templates #140
Comments
We should have a documentation tag. |
Instead of |
That's a possibility. It would be a big change though. Do you want projects polluted with default templates that you're not going to update? What if we fix a bug in generator-donejs that changes the template, since yours are in |
The code change wouldn't be that big I don't think (although I realize this probably isn't what you meant).
I don't think this is a big deal. I think it would help people realize they can do something with them.
This is a good point. Whether or not we do it by default or add |
I think we should do this with a plugin. So you would run |
tldr; Document how to customize templates within the
.donejs/templates/
folder.The Problem
Often times people will want to use the generators, but have to then change the generated files because their project is customized in some way. One example might be using mocha instead of QUnit. The donejs-mocha package will create templates in
.donejs/templates/
that will be used instead of the standard templates.A user can do the same thing, by copying the standard templates into the
.donejs/templates/
folder and modifying them.This is a cumbersome process because:
The Solution
This is a two part solution.
donejs customize
Running
donejs customize
(or some other command, I don't care) will create the.donejs/templates/
folder for you, and populate it with all of the default templates.Document customizing these on donejs.com
Under Guides add a Customizing Generator Templates guide, that walks through step by step of running
donejs customize
and then customizing one of the templates.The text was updated successfully, but these errors were encountered: