Closed bmuenzenmeyer closed 6 years ago
require()
s another that provides some atoms it needs, for example, then I can imagine one of two things:
require()
d one has an API that can hand us a list of absolute paths to watch, we should be okay.require()
d one is static, and we therefore don't need to watch it.I like this approach, a few questions though which I could see being relevant at least in the way we're thinking through multi-site (think theme-specific rather than product-specific) …
Unrelated to the above topics - which are important - I wanted to get down a paper another approach that came on the back of support for starterkits.
Starterkits, when used as a base for derivative development, could be consumed in one of two ways:
source
, so as to be mutable per instance of PL. This would satisfy the needs of agencies that might have a foundation for every client project. This seems to align with the current starterkit strategy as it's built and will be built for PL/Node 2.0.0source
patterns / assets. This would satisfy the use case of a base product family or design system. Themes? perhaps. I need to think about if that even applies. This would likely be a PL/Node 2.X feature, if not something we need to bless with Dave and Brad conceptually altogether as the evolved form/application of starterkitscc @geoffp since we were talking about this today, but I hadn't really worked through the whole reference thing.
👍 to "referenced." This is the feedback I've gotten as well.
👍 to referenced from me too. This is pretty much the vision that we have over here for our ideal thing. It would let us keep our "base" patterns, which are intended to be shared with multiple product teams, under source control separately from each team's more product-specific patterns. And it provides a clear upgrade path for base patterns, widget sets, or whatever without having to dig them all out of your source directory.
Cool - import should be wrapped up in no time flat for PL/Node 2.0.0-alpha and align with the current way of doing things in PL/PHP (afaik), with a early 2.X goal adding reference as an option.
Addressed in #645
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Capturing some notes from Target folks:
If
confg.patterns.source
accepted an array of patterns directories, one might be able to inherit shared / base patterns from a separate repository directory and build product-specific pattern libraries atop them.Questions
pattern_assembler.processPatternIterative()
andpattern_assembler.processPatternRecursive()
to go through the array instead of one directory.