Skip to content

Consider dropping ./packages #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dmolsen opened this issue Apr 8, 2016 · 11 comments
Closed

Consider dropping ./packages #14

dmolsen opened this issue Apr 8, 2016 · 11 comments
Assignees

Comments

@dmolsen
Copy link
Member

dmolsen commented Apr 8, 2016

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 dmolsen self-assigned this Apr 8, 2016
@dmolsen
Copy link
Member Author

dmolsen commented Apr 27, 2016

@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
Copy link
Member

@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
Copy link
Member

aleksip commented May 5, 2016

@dmolsen Sounds good!

@dmolsen
Copy link
Member Author

dmolsen commented May 6, 2016

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
Copy link
Member

aleksip commented May 11, 2016

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
Copy link
Member Author

dmolsen commented May 15, 2016

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:

  • a .gitignore that matches the drupal edition
  • including composer.lock in editions
  • looser package requirements. at first this will just be ~ on packages based on Don't require very specific dependencies of upstream libraries #9 . a future version bump after the Travis work is complete could be completely updated version numbers for packages.

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
Copy link
Member

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
Copy link
Member

EvanLovely commented May 17, 2016

@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
Copy link
Member Author

dmolsen commented May 17, 2016

@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
Copy link
Member

Awesome!! Agreed!

@dmolsen
Copy link
Member Author

dmolsen commented May 20, 2016

With v2.0.0 out this has been addressed.

@dmolsen dmolsen closed this as completed May 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants