FLUID-5978: Implement a pre-publish script to include build distributions for Infusion

Metadata

Source
FLUID-5978
Type
Task
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
N/A
Reporter
Justin Obara
Created
2016-10-04T14:10:53.373-0400
Updated
2019-07-12T09:16:28.626-0400
Versions
N/A
Fixed Versions
  1. 2.0
Component
  1. Build Scripts
  2. Infrastructure
  3. Release

Description

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 ).

This Approach

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.

Structure:

  • dist/
    • infusion.js
    • ...
    • assets/
      • componets/
      • framework/
      • lib/