I'm trying to migrate from the closurebuilder.py script to the Closure compiler because of this message:
../../closure-library/closure/bin/build/closurebuilder.py: Closure Compiler now natively understands and orders Closure dependencies and
is prefererred over using this script for performing JavaScript compilation
Since I'm using Google Closure Library and the OpenLayers 3, how do I have to call the compiler (compiler.jar) to
- Build an myapp-deps.js dependency file
- Build an minified version myapp.js that includes only used OL3 and CL classes
- Build both with the usage of pre-calculated dependency files of OL3 and CL (e.g. ol3-deps.js)
Let's further say everything is located in the following structure. This almost equals to my own project but it is to big and complex to be posted here directly.
project/
src/
js/
<some other js "required" in myapp.js>
myapp.js
myapp-deps.js # This should be the dependency file
lib/
closure/goog/...
third_party/closure/goog/...
myapp.js # This should be the minified version
ol3/
I'm thankful for every hint.