Modules - BCLibCoop/nnels-a11y-publishing GitHub Wiki

Modules And Shared Modules

The various scripts in the repository are built up from a number of distinct modules.

A module is a collection of JavaScript source code which provides a set of related features.

Modules are used to help code re-use, and to help structure the code for readability.

Shared modules allows us to write a feature set once, and then use it in multiple scripts.

The shared modules are stored in a subfolder called SharedCode.

At the time of this writing, two shared modules are available: LOG and UTILS.

In a release version of the script, all modules will be combined into a single .jsx file.