You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently building a monorepo which has many apps.
This results in a lot of duplication in workspaces.json, as each app has pretty much the same configuration. It's tedious having to maintain this massive file and do find-replace operations every time I want to add a new application.
Could we consider some kind of templated configuration?
Maybe we could support a separate file called workspace.templates.json or similar, where we can define named templates, with mustache-style tags allowing values to be interpolated, and providing, say, an app object, which has info about the app being configured.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Note: Similar goals might be achieved with this feature: Support for a workspace.js file. #6511.
I'm currently building a monorepo which has many apps.
This results in a lot of duplication in
workspaces.json
, as each app has pretty much the same configuration. It's tedious having to maintain this massive file and do find-replace operations every time I want to add a new application.Could we consider some kind of templated configuration?
Maybe we could support a separate file called
workspace.templates.json
or similar, where we can define named templates, with mustache-style tags allowing values to be interpolated, and providing, say, anapp
object, which has info about the app being configured.E.g.
Then that name can be used in
workspaces.json
to apply the template.E.g.
Thanks for reading.
Beta Was this translation helpful? Give feedback.
All reactions