-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
config.get('foo.bar.baz') does not process intermediate templates in path #1436
Comments
Did you intend on having underscores in front of We have pretty good test coverage for this example: https://github.com/gruntjs/grunt/blob/master/test/grunt/config_test.js Let us know if it's not working as expected though but I believe this isn't a valid issue. |
Yes, the underscores are intentional. Big idea is that these should be the same:
I added a failing test here: cspotcode@912be5c In me example from above,
* Only applies to template strings that might evaluate to a non-string (e.g. It makes sense that grunt should expand template strings as it goes, since that's what happens with |
Thanks for the failing test. That should work so reopening. |
I create some patch and tests are passed now. Should I add more tests? Also, I don't like this https://github.com/gruntjs/grunt/pull/1524/files#diff-b682e275731164f4f9ea18bcee957dbaR52 I guess I should avoid it. |
When getting a config "path" (passing e.g.
"foo.bar.baz"
or['foo', 'bar', 'baz']
togrunt.config.get
) grunt doesn't process templates as it's stepping through the object graph.The text was updated successfully, but these errors were encountered: