pattern-lab / patternlab-php-core

This repository provides the core functionality for Pattern Lab. It is meant to be used from within an Edition with a PatternEngine and StarterKit.
http://patternlab.io/
MIT License
43 stars 62 forks source link

Consider dropping ./packages #14

Closed dmolsen closed 8 years ago

dmolsen commented 8 years ago

Figure out what would be required to drop ./packages from the directory layout. There are some templates that are available in ./packages but maybe those need to go elsewhere in ./source or similar.

dmolsen commented 8 years ago

@aleksip @EvanLovely -

Looking for feedback. If I move ./packages/listeners.json and ./packages/patternengines.json to ./config the only reason for ./packages to exist is the pattern engine-specific templates for the view all view and a generic header/footer inserts. I think I can read them out of ./vendor just fine. Sound ok to ditch ./packages then? Unified Asset Installer could also go away at that point.

EvanLovely commented 8 years ago

@dmolsen I like that idea! I had a few issues with ./packages/listeners.json being gitignored. Not really reproducible or to be worried about, but overall I like the idea of that folder being folded into ./vendor.

aleksip commented 8 years ago

@dmolsen Sounds good!

dmolsen commented 8 years ago

The feature-installupdate branches of the development edition and core (amongst others) now support a new install process. Key points:

I still need to play with this a bit more. Not a ton changed honestly but I'm sure there may be a quirk or two. Still to do:

Take a peek at it and let me know what you all think.

aleksip commented 8 years ago

Tried out the feature-installupdate branch. Successful install & generate, ./packages not there, listeners.json and patternengines.json found under ./config.

Also tested installing with plugin-data-transform. Successful install & generate, plugin working as expected!

dmolsen commented 8 years ago

I was able to get the package uninstall stuff working so I feel pretty comfortable wrapping this up and pushing a release. This is currently a blocker for a number of other ideas that are currently floating around. We will need to coordinate on this as I'd like to reduce conflicts as much as I can.

Again, this will be released as v1.0.0 because it breaks BC. I would like to see editions standardize on the following:

I need to check included packages and try to map out how each references core and update how editions refer to them. Meaning, I could need to update composer.json for the various packages and then push new tags. I feel like pattern lab packages need to reference core as a dependency in case core changes an expected output and we need to tweak a package. But, like I said, I need to draw this out and think it through.

Would making this change on Wednesday, May 18 work for people?

EvanLovely commented 8 years ago

That day works for me! Been wanting to wrap up a lot of stuff we're pushing out by depending on 1.x instead of 0.x too.

EvanLovely commented 8 years ago

@dmolsen Just tossing an idea out there: what about bumping core to v2.0.0 instead as v1.0.0 feels like the original: pattern-lab/patternlab-php - anyway, just an idea :)

dmolsen commented 8 years ago

@EvanLovely my first thought was "no" but when looking at dependencies for the final mustache edition of this it would look odd to be pulling 2.0 of PL and be grabbing 1.x dependencies. Especially core. We'll go with 2.0.

EvanLovely commented 8 years ago

Awesome!! Agreed!

dmolsen commented 8 years ago

With v2.0.0 out this has been addressed.