Managing UIO in a project
Desired qualities:
We can look at a project using UIO and know which version is being used
We can look at a project using UIO and know which build of infusion (i.e. which modules from a custom build have been included) is being used
Have a clear idea/instructions of how to update UIO in a project that is using it
Options:
Packaged ZIP file
These distributions are built manually and we don't make dev builds
Check out the project source code and use Grunt to make a custom build
Check out the appropriate revision of the Infusion source code
npm installgrunt custom --include="uiOptions"The custom build will be written to the
builddirectory, copy these files to the appropriate placeWould need to record the build command in a VERSION.md or similar file to identify how to rebuild the package when upgrading
Use the UIO build from the NPM package
Add a
package.jsonfile to the project, with a dependency on the appropriate version of Infusionnpm installWill download Infusion and write to
node_modules
Copy files from
node_modules/infusionto the appropriate placeUIO:
infusion/dist/infusion-uio.jsand/or
infusion/dist/infusion-uio.min.jsStylus built CSS:
infusion/dist/assetsTwo options here:
Copy the whole infusion directory to use in the project
Note: As of Jan 14, 2019, in this option, the OpenSans font will not be successfully loaded. See: https://fluidproject.atlassian.net/browse/FLUID-6361
Copy only the files needed for UIO