-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
support for multiple config files (#2210) #2211
Conversation
I'm unable to reproduce the appveyor errors on my machine with the same $ npm install
......
$ node -v
v0.12.16
$ npm -v
3.10.8
$ npm test
......
812 passing (7s)
7 pending |
I will take a look at it sometime later to see if I can reproduce the error.. |
I'll see what I can do tonight. In the tests, I check for appropriate warnings by reading the debug log, but it looks like Appveyor doesn't give itself permission to read that file... Thanks for looking into it! |
efe40f9
to
c47f4e8
Compare
1 similar comment
Well that's aggravating. Many of the Console tests timedout and thus failed. This PR does not affect the Console submodule. These same tests passed in the previous commit and the only things that changed were some semicolons and new lines added to a test file that happens after the console tests are run. I'm just going to force an update and see if it works... |
c47f4e8
to
c63a90c
Compare
Great work, LGTM. |
Tested and works well. Good job! Usage suggestion:
E.g.
|
Give the
--config
flag support for multiple config files when generating or serving your site.Inspired by Jekyll as suggested by @Lindsor in #2210.
Usage
List the desired config files (JSON or YAML) in a comma-separated list (no spaces) after the config flag:
This will combine all the config files and save the merged settings to
_multiconfig.yml
. The later values take precedence. It works with any number of JSON and YAML files with arbitrarily deep objects.For instance, in the above example if
foo: bar
is inconfig1.yml
, but"foo": "dinosaur"
is inconfig2.json
,_multiconfig.yml
will containfoo: dinosaur
.