-
Notifications
You must be signed in to change notification settings - Fork 56
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
Make a Yeoman generator #185
Comments
So here we are, we have a starting point. It's all on the What I still have to do:
What I'm not sure about:
What I would like your help on:
Let's coordinate on IRC @hugogiraudel @valeriangalliat |
To test the generator: |
I'll see if I can help. When using |
@valeriangalliat is the path master. He'll know. |
It's not about if it's possible (it is), it's about whether it's relevant/needed. |
Yes, at the moment it's one block. |
No. By the way, since we are outputing a blank theme, I think the different views will be very easy to do. Basically only the comments will change. |
Yes, not too much hassle. |
Not really. The only thing is you won't have a |
Yep, that's what I meant. Not much, indeed. Maybe you could make it for Swig ? Which would serve as a reference for the other engines. I'll start converting the |
Should we consider making the theme folder the first question in order to force the user to manually create it?
|
The default and common behavior for generators is to work from inside the destination directory: So I wouldn't make it a prompt and then trying to chdir in it. The way to do it in Yeoman is to use the If being able to pass a different dir is really something that you want, than I'll uncomment the code I already have: https://github.com/SassDoc/generator-sassdoc-theme/blob/develop/generators/app/index.js#L16-L23 This would then be used as follow:
|
Let's keep it simple for now. |
sassdoc-indexer
andsassdoc-filter
(defaults to both).assets/{css,img,js}
andviews
folders.package.json
with Themeleon and template engine mixin dependencies,sassdoc-indexer
andsassdoc-filter
if selected.index.js
using filter and indexer likesassdoc-theme-light
if selected, and rendering theindex.*
according to the choosen template engine. Theindex.*
needs also to be different if there is the filter and the indexer... because the structure won't be the same.The text was updated successfully, but these errors were encountered: