Skip to content
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 foo.json files inside _data/ that are not listitems.json to be added to the global data object #375

Closed
bmuenzenmeyer opened this issue Jun 30, 2016 · 2 comments

Comments

@bmuenzenmeyer
Copy link
Member

Dave informed me during WebDesignDay that a user should be able to structure files inside _data/ as follows:

_data/
 - data.json
 - foo.json
 - listitems.json
 - zed.json

And expect data.json, foo.json, and zed.json to be merged together as global data.

@bramsmulders
Copy link
Contributor

This is totally what i want, currently i'm fixing this issue by merging seperate data files into data.json before patternlab runs. But it would be awesome to have this included. :)

@bmuenzenmeyer
Copy link
Member Author

Good to hear there is interest, I didn't even know the feature in PL/PHP existed until Dave Brad and I got together a couple weeks ago. I will try to prioritize this, but cannot promise anything concrete yet besides "soon"

stevemartin pushed a commit to stevemartin/patternlab-node that referenced this issue Jul 21, 2016
* glob data files in data folder, excluding listitems
* merge data as global data
@stevemartin stevemartin mentioned this issue Jul 21, 2016
stevemartin pushed a commit to stevemartin/patternlab-node that referenced this issue Jul 21, 2016
* glob data files in data folder, excluding listitems
* merge data as global data
stevemartin pushed a commit to stevemartin/patternlab-node that referenced this issue Jul 21, 2016
* glob data files in data folder, excluding listitems
* merge data as global data
stevemartin pushed a commit to stevemartin/patternlab-node that referenced this issue Jul 22, 2016
* glob data files in data folder, excluding listitems
* merge data as global data
* tests inform code
* use lodash for merge
bmuenzenmeyer pushed a commit that referenced this issue Jul 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants