We are in the process of developing a JavaScript component for integration into a JSF application, utilizing Dojo framework. Our aim is to streamline our code by incorporating only the necessary parts of the library required to achieve our objectives.
While manual inclusion of files and folders is an option, we anticipate future requirements that may involve additional Dojo functionalities, prompting the need for a more efficient approach. Admittedly, our expertise with Dojo and JavaScript is limited at this point.
Essentially, we are seeking a method to automate the selection of relevant resources. One idea is to compile a list of dependencies and devise a script to accurately filter the files accordingly.
Is this feasible? Has anyone else embarked on a similar endeavor before? Appreciate any insights or advice. Thank you.