Skip to content
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

Flatten component support #3

Merged
merged 2 commits into from Feb 10, 2020

Conversation

lbane
Copy link
Contributor

@lbane lbane commented Aug 30, 2019

This introduces a new option "flattenComponent". The option is similar to flattenResources, but will leave non WOComponent/EOModeld folder hierarchies intact. The resulting folder structure should be very similar to the one produced by WOLips.

Reason for this change: I have a project with many components, organised in subfolders of the Components folders. Those components must get flattened into to application Resources to be useful. But I have also a folder hierarchy in Resources and WebServerResourced, that should be copied as they are. While flattenResources will either flatten all those components and files or none, this new option flattens only components.

There is also a little bit of code cleanup, mostly warning from the compiler.

…flattenComponent option will flatten all WOComponent (and EOModeld) resources from Resouces and Components folders into the applications Resources folder. But in contrast to flattenResources it will leave all other folders intact.
@paulhoadley
Copy link
Contributor

I am very interested in this. Has anyone had a chance to try it out? @hprange perhaps? I notice it fails in CI, but that seems to be a failure very early in the build.

@paulhoadley
Copy link
Contributor

I've just tried this out and it works perfectly. Nice feature Ralf! Flattens subdirs in src/main/components as promised, and diffing the rest of the tree with Kaleidoscope I can see no other changes.

@hprange: have you had a chance to try it? I would love to merge this in and get using it, but it would be great to have more than two users vouching for it.

@paulhoadley paulhoadley merged commit 9f53612 into wocommunity:master Feb 10, 2020
@hprange hprange added this to the 2.4 milestone Jul 5, 2020
@hprange hprange modified the milestones: 2.4, 2.5 Oct 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants