We've decided to implement Aurelia for the frontend of our application. With multiple projects in the pipeline, we are looking to streamline the process by packaging our custom code into npm packages that can be easily integrated by developers. This way, we can add dependencies to our reusable code without cluttering the project's code base and keep it updatable separately as needed.
For example, we want to have tools and service packages which is relatively straightforward to set up.
However, we're currently grappling with how to utilize a 'ui' package that houses all of our custom reusable components. Is this even feasible? And if so, how would we go about requiring a component in an HTML template?
If integrating a 'ui' package isn't possible, do you have any suggestions on how to neatly segregate the reusable code from the application-specific code?
Your insights are greatly appreciated!