0

I have two projects, project A and B, both built with the Google Closure Library.

How can I make project B dependent on Project A so that I can goog.require Project A modules in Project B allowing for seamless integration(compilation, minification etc)?

flavian
  • 28,161
  • 11
  • 65
  • 105
  • 1
    look at modules. http://stackoverflow.com/questions/3204474/using-the-module-option-in-closure-compiler-to-create-multiple-output-files – lennel May 28 '13 at 13:32
  • I'm confused what the issue is - can you not just use the same goog.provide/goog.require statements between your projects and compile both together at the same time? – ne8il May 28 '13 at 17:56

1 Answers1

1

If both projects can be compiled then you can compile any project into any project. Dependency should be solved with goog.require and goog.provide

When I was looking into how to use lime I wrote a wiki after fiddling with where to put the code and how to use calcdeps.py you can find it here: WIKI: How to use Lime (how to use closure-compiler with 3rd party (closure) libraries)

Basically Lime is a 3rd party library but any code that provide something and is used by other code can be compiled with that other code.

Community
  • 1
  • 1
HMR
  • 37,593
  • 24
  • 91
  • 160