Picture of Christoph Schuster
Split block/component json in seperate files/folders
by Christoph Schuster - Monday, 13 February 2017, 2:57 PM
 

Hi,

we have a project with several developers and would like to split the contents into subfolders.

This would also mean to split the blocks.json and components.json in separate (sub)files.

Is there already a solution for this or do i have to write an custom grunt task for merging them together before the build starts?

thank you

Christoph Schuster

Picture of Matt Leathes
Re: Split block/component json in seperate files/folders
by Matt Leathes - Monday, 13 February 2017, 3:47 PM
 

Hi Christoph

If you use a version control system then this makes it possible for multiple developers to work on the .json at the same time as the VCS will merge changes together... plus you also get the massive added benefit of having version control.

Although Git is the popular option these days we use Subversion in house as we find it's easier for non-technical folks to use.

Picture of Christoph Schuster
Re: Split block/component json in seperate files/folders
by Christoph Schuster - Monday, 13 February 2017, 4:00 PM
 

Hi Matt,

sure we use git right now, but i want to have the json files smaller and more readable.

This would need to seperate (and combine them on grunt build).

greetz

 

 

Picture of Matt Leathes
Re: Split block/component json in seperate files/folders
by Matt Leathes - Monday, 13 February 2017, 5:48 PM
 

Ah I see, then yes - you would have to write your own grunt task to recombine the files in the build