For the Infusion 2.0 release we'd like to improve the use of Infusion, through NPM, for integrators, specifically those making use of UI components.
This will just be a preliminary and potentially temporary approach until a more robust solution is developed ( see: FLUID-5579 ).
Use a pre-publish script to create a "dist" directory containing various pre-built instances of infusion plus a copy of the entire source. Pre-built infusions should include framework only, infusion all, and no jquery variants of them. May also want to include minified versions as well as source.