javascript - How to unextend Extendables framework, keeping just the logger and Jasmine test functionalities -


i'm using nice framework adobe extendscript called extendables. forked project here: https://github.com/daluu/extendables

a problem though in ways using framework worse not because framework extends javascript objects more functionality. , on initial review of code files, seem rather interdependent such take work uncouple strict dependencies make optional/configurable load need , skip rest in case of issues particular features (i.e. can not load/include don't use - don't think that's possible, although might mistaken). see issue tracker in project details in general issues encountered using full framework failure of try/catch blocks , object iteration includes unintented properties.

for me, i'd @ minimum make functionality optional , load logger , jasmine test framework 2 feature/modules use extendables. don't care extensions strings, files, object, arrays, etc.

as i'm novice in javascript/extendscript, , not trivially simple javascript framework, use suggestions on how decouple dependencies every module (baring it's dependendencies) can optionally loaded, , there dependencies can group sets in can load or not load set of features.

sorry can't include code snippets post, can find in github fork.

not sure if best stackexchange site post starting here.

you should able extract log module file:

https://github.com/daluu/extendables/blob/master/core-packages/logging/lib/index.jsx

try use (not tested):

#include "core-packages/logging/lib/index.jsx" log.debug("log this"); 

you might need adjust things in there e.g. folder.extendables not exist in extendscript. exports.log @ end throw error.