Skip to content
This repository has been archived by the owner on Apr 2, 2022. It is now read-only.

Get list of touched (by @extends) files #5

Open
kopach opened this issue Jun 14, 2016 · 1 comment
Open

Get list of touched (by @extends) files #5

kopach opened this issue Jun 14, 2016 · 1 comment

Comments

@kopach
Copy link

kopach commented Jun 14, 2016

I've created webpack loader based on your tool: https://github.com/kopach/json_merger-loader
And now I would like to update it to have an ability to auto recompile files if something got changes. To do so I would need to get somehow all touched files. For example, if fileA.json uses ./path/fileB.json which uses ./fileC.json and so on, I would like to have the list of next files with related to the main file fileA.json paths. In this case it would be like so:

['./path/fileB.json', './path/fileC.json']

Is there any chance to update json_merger to have such functionality? The interface I can imagine may look like this:

var merger = json_merger(json, {
   scope: '/some/path';
});

var paths = merger.getListOfTouchedFiles();
var result = merger.merge();
@andlrc
Copy link
Owner

andlrc commented Jun 14, 2016 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants