Extending park-ui.json
for easier use inside of an NX Monorepo
#479
riceboyler
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm one of those pain in the butt developers who uses an NX monorepo and every time I use the CLI to import a new component, I have to spend minutes going through and updating references in both the regenerated
create-style-context
file and each of the newly imported component files.I was wondering if potentially adding some additional optional fields to the park-ui.json file might be able to overcome this? I was thinking something like:
at a minimum. Obviously, the styledSystemImportFrom would be used sort of like
outDir
to populate the code generation templates, and then theregenerateContext
could have values of'always' | 'never'
.'always'
would be the default and would just regenerate thecreate-style-context
every time the CLI ran.'never'
would be the exact opposite behavior, but theoretically would throw up a big scary warning that "Because you set theregenerateContext
key to 'never', you are responsible for ensuring that thecreate-style-context
file is up to date with the standard file that can be found at {github link}."I think could go a long way towards easier adoption in monorepos in general, and especially with NX.
Beta Was this translation helpful? Give feedback.
All reactions