-
Notifications
You must be signed in to change notification settings - Fork 82
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
lineman config --process does not process object keys #324
Comments
Yeah, I'm not entirely sure how it would interpolate keys. Maybe look into a PR? On Wed, Sep 24, 2014 at 10:26 AM, Andrew Nichols [email protected]
|
Interesting. I assume we're using If so, does |
If you're using underscore or lodash templating (and I assume you are), seems like you should be able to do the entire config object as a json string, rather than each key individually. But this might be naive; I have not looked at all at how that lineman config is built. But presumably, once you compile the object, you could do something like: console.log(_.template(JSON.stringify(configObj, null, 2), filesObj)); Again, that's probably oversimplified, but that's probably roughly what I'd try for. But per @jasonkarns point, if you're using something else, maybe this doesn't work. Doesn't seem like it would be hard to do it yourself, though. |
I started working on something similar here: cc4899a but never ended up going further with it. |
The
--process
flag on thelineman config
command is a great tool, but it only expands values in the config, but leaves keys untouched, so you end up with output that looks like:Seems like
--process
should do the "dest" key too.The text was updated successfully, but these errors were encountered: