-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
0.9.0: global config logic not working correctly? #93
Comments
I haven't really done much with the global config yet. that's the last thing I plan to work on. honestly the "store" logic has been a pita, mostly b/c of having different versions of stores running in different places. any ideas/suggestions would be great |
I think they (stores) should be per app basis. Verb config in verb.json, Generate in generate.json, Assemble - assemble.json, on {
"project-one": {
"cwd": "path/to/cwd",
"other": "options here"
},
"project-two": {
"cwd": "path/to/cwd",
"foo": "bar"
}
} So global verb config would looks like {
"capture-spawn": {
"run": false,
"tasks": ["readme"],
"layout": "empty"
},
"foo-bar": {
"cwd": "/home/charlike/dev/foo-bar",
"layout": "empty"
},
"layout": "default",
"run": true
} But... hm. I'm not sure. |
Or okey, one global config for all, and in it to be as first example. {
"verb": {},
"generate": {},
"assemble": {}
} Yea, this looks better. I also think that |
stores (persisted) there are 3 "types" of stores implemented already, each is (should be) persisted to
2 bonus types In addition to the stores exposed on the API, there are two
{
"data": {
"fooo": "baaar"
}
} |
Hm, yea. 👍 Only one thing... I think folders in |
yea I was just about to comment the same thing. also, I think that # verb config
~/.data-store/app/verb.json
# verb project configs
~/.data-store/app/verb/foo.json
~/.data-store/app/verb/bar.json
~/.data-store/app/verb/baz.json |
one more thing, is that we could make changes to be able to use But we can rename that to |
see edit: draft and the wrong one lol. try this one https://github.com/verbose/verb/blob/dev/docs/src/content/stores.md |
Yea, thanks! I also noticed today, that there is |
yeah that's the globals store, which should be in |
I've tried to save to global config some options.
for example and it saves it to
~/.data-store/generate.json
it may seems okey in first glance, but here appears two questions/problems:
run:true
to be for all projects? I guess this cwd will be changed if i'm in another project?run:true
seems not works - i've tested it by removingrun
from local config and try running verb and it not works as if it is in local config.The text was updated successfully, but these errors were encountered: