0

Is it possible to make a custom Angular schematic that finds all the JSON files in a project, reads them and creates one JSON file?

My each component contains a json file with the translation. I would like to find all such files, read their contents and create a single json file in assets, using schematic.

I can check if a file exists using tree.exists() however I need to specify the exact path to the file. tree.create() will create a new file with the contents. The main problem here is to find all the json files that have the same name throughout the project

JorgenDev
  • 3
  • 2

0 Answers0