You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an application that uses lib-admin-ui is built in dev mode, Gradle first builds lib-admin-ui locally, then creates a JAR file, then triggers the build of the app itself, which unpacks lib-admin-ui's JAR file and uses its resources in the build.
This is inefficient because in this case we could simply use lib-admin-ui resources directly, without spending time to build, then unpack the JAR file.
lib-admin-ui should be changed to an ordinary NPM module that is published to the NPM registry every time we release a new version. A SNAPSHOT of lib-admin-ui should be deployed to an NPM registry in our Artifactory (we can then remove it from Maven repository).
So, to sum up.
Changes in lib-admin-ui:
lib-admin-ui should be made to an NPM module (under @enonic namespace).
We should set up NPM registry in the Artifactory which will store the snapshots.
Publishing of lib-admin-ui should be changed to publish snapshots to the Artifactory's NPM registry and publish releases to the central NPM registry.
Changes in apps that are using lib-admin-ui (requires additional tasks):
Build in the dev mode should be changed to access lib-admin-ui resources directly, if they exist locally. JAR should not be needed.
If an app is using a SNAPSHOT of lib-admin-ui, it should be fetched from our Artifactory's NPM registry.
Otherwise lib-admin-ui should be fetched as an ordinary NPM module from the central NPM registry.
The text was updated successfully, but these errors were encountered:
When an application that uses lib-admin-ui is built in dev mode, Gradle first builds lib-admin-ui locally, then creates a JAR file, then triggers the build of the app itself, which unpacks lib-admin-ui's JAR file and uses its resources in the build.
This is inefficient because in this case we could simply use lib-admin-ui resources directly, without spending time to build, then unpack the JAR file.
lib-admin-ui should be changed to an ordinary NPM module that is published to the NPM registry every time we release a new version. A SNAPSHOT of lib-admin-ui should be deployed to an NPM registry in our Artifactory (we can then remove it from Maven repository).
So, to sum up.
Changes in lib-admin-ui:
@enonic
namespace).Changes in apps that are using lib-admin-ui (requires additional tasks):
The text was updated successfully, but these errors were encountered: