-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
allow generator options from global verb config #2
Comments
do you want to store config values that will be used for all generators, or different values for each generator? we should be able to do either, or both. I'm still working on questions/data/config atm |
Yea, I think for each generator would be better in long term. We don't know what users would create, it is real scenario to have more than generator. Currently I don't need, but at least it's in mind to have more than one. |
TBH, I liked the old version of verb for this better, where somethings came predefined with verb, so you could just include "license" or "copyright" or "changelog" yourself.. Is this still as easliy done now like before? Where is the docs for that? |
@phun-ky architecture is totally changed. Providing "templates" things and paths is in process (i think) in Docs can be found mostly in all of the @node-base org repos, also the It's a big trip. But you can start from If you want to play and try, you can fork this repo and create you generator, then instead of But at all, you can pretty easily modify this generator to load templates from different folders by default and fallback to these here in the repo - I did it locally before few weeks. |
overload Well, I will try to fiddle around with this, but I will not make promises :P But a tip or doc on how to produce custom layouts would be nice, or if you could try to make a default layout for private npm packages, that would be of great help.
EDIT: found the generation for the twitter and github links |
agreed
before releasing 0.9.0 these things will be easier to add. keep the feedback coming
working on it now |
yeah, we'll be publishing a single documentation resource for verb.
I believe the following is implemented: add a custom layout to a local file. Then in package.json: {
"verb": {
"templates": {
"layout": {
"path": "my-layout.md"
}
}
}
} |
I'm thinking for global generators options, so it can't be simple
templates
property in~/data-store/verb.json
config, because verb may need more than one generator, so it could be something like thator full paths/globs to dirs
for this generator
The text was updated successfully, but these errors were encountered: