infinum/eightshift-libs

Scope eightshift-libs during installation

Closed this issue · 1 comments

In a situation in which two instances of boilerplate, with different versions, exist in the same project there is a collision with the classes that use older implementation of libs.

Example:
Plugin boilerplate is using newer version and theme is using older version of the libs. Since plugins are loaded earlier than theme, newer Eightshift_Libs namespace will be used and older one (from the theme) will be ignored. This creates fatal errors in theme.

Solution would be to somehow scope or differentiate each installation of libs, so we don't get these collisions. This could be done during the npx installation process but then there is no way to potentially update libs in the future.

Implemented