gesso-wp icon indicating copy to clipboard operation
gesso-wp copied to clipboard

generate theme.json as unminified / formatted

Open jackmakesthings opened this issue 2 years ago • 3 comments

Small improvement - it would be easier to inspect the theme.json if it were formatted with linebreaks & indents rather than compressed to one line.

jackmakesthings avatar Jan 25 '23 15:01 jackmakesthings

Adding a dev breadcrumb here. The modification to un-minify this will likely need to start by making changes to how we are leveraging renderjson: https://github.com/forumone/gesso-wp/blob/5.x/lib/configLoader.js

tropicandid avatar Jul 13 '23 19:07 tropicandid

We should be able to add spacing to the JSON.stringify here: https://github.com/forumone/gesso-wp/blob/5.x/lib/renderJson.js#L103C9-L103C23

return JSON.stringify(themeSettings,null,2);

timnolte avatar Jul 13 '23 20:07 timnolte

I think we can close this issue since we will no longer be generating theme.json by passing design tokens and settings from theme-settings.json? ref: https://github.com/forumone/gesso-wp/pull/444

cssgirl avatar May 16 '24 15:05 cssgirl