Let's say I have a JS application which involves fileA. In addition to fileA, there is fileB which depends on fileA both in folder "js". For example:
fileA:
goog.provide('mainProject');
mainProject.something = function(){return "returned";}
mainproject.something();
My understanding (possibly incorrect) is that I can do:
fileB:
goog.require('mainProject')
mainProject.anotherFunction = function(){return "returned again";}
mainProject.anotherFunction();
and that closurebuilder would detect the dependency.
I've run closurebuilder every way I know how and it's not concatenating what's represented here as "fileB". It does, however, include fileA.
My command is this:
python path-to\closurebuilder.py --root=path-to\closure-library --root=path-to\js --namespace="mainProject" --output_mode=script > path-to-js\concatenated.js
I know I'm probably missing a concept here... Any suggestions would be most appreciated.
Thank you.