Skip to content

Add ability to transmit outputFileName into getJSON#72

Merged
madyankin merged 3 commits intomadyankin:masterfrom
lutien:add-parameter-to-getJSON
Oct 23, 2017
Merged

Add ability to transmit outputFileName into getJSON#72
madyankin merged 3 commits intomadyankin:masterfrom
lutien:add-parameter-to-getJSON

Conversation

@lutien
Copy link
Copy Markdown
Contributor

@lutien lutien commented Oct 19, 2017

In postcss-cli now there is an ability to keep folder structure that's why placement of built files can be a bit unpredictable. But still, it would be nice for some cases to keep json files with built files together. So, here is my proposal to provide output file name into getJSON method to give ability use it in generation paths for json files

@madyankin
Copy link
Copy Markdown
Owner

@lutien Great suggestion! Could you please update the readme, too?

@lutien
Copy link
Copy Markdown
Contributor Author

lutien commented Oct 20, 2017

I have added it now in an example of getJSON usage. Will it be enough?

@madyankin
Copy link
Copy Markdown
Owner

It would be great to add some tests for this. Could you add them please?

@lutien
Copy link
Copy Markdown
Contributor Author

lutien commented Oct 20, 2017

I have added one test. I can not find some other cases which would be nice to cover. If you know point me, please 😊

@madyankin
Copy link
Copy Markdown
Owner

@lutien LGTM, thank you!

@madyankin madyankin merged commit 76c1dd5 into madyankin:master Oct 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants