# JS code organization

Alls source javascript lives in src/js folder. Each subfolder, with exception of lib results in one compiled JS file and contains that main file and all the immediate dependencies. Below a full list of what scripts each subfolder renders:

  • apple-pay - scripts for donation pages that take Apple Pay payments
  • combo-cart - scripts that pertain only to the eCommerce combo cart app
  • credentials - scripts that get loaded on login confirmation and password reset pages
  • donation - scripts that customize standard donation pages
  • ecommerce - scripts eCommerce catalog and for product only eCommerce checkout
  • lib - global custom library scripts that we write that need to be pulled into different scripts.
  • login - scripts for the custom login page app
  • main - global scripts that get loaded on all pages in AEM and Luminate
  • member-center - scripts for the supporter center app
  • survey - scripts that get loaded on survey and catalog request page (name may need to be updated, to reflect the functionality)
  • site-alerts - script that control Luminate online site alerts
  • sponsorship - scripts for custom child sponsorship app
  • teamraiser - scripts for the teamraiser pages