Can we create externs from a complete .js file using the Google Closure Compiler?

I am wondering if the extern files for the Google compiler should be manually closed. I did not see anything about the possibility of generating these files from my .js files. It is quite a bit of work to create all external elements manually, and this is also prone to errors (i.e. Incorrect parameter definitions, as they change over time ...)

So I was wondering if there is a Linux tool (command line) for this purpose. If not, would there be a way to compare .js with extern files so that I can at least make sure they are in sync.?

+6
source share
1 answer

http://www.dotnetwise.com/Code/Externs/ aims to do this, but I have not used it myself, so I'm not sure how much it works.

We have a problem open to doing this as part of the compiler , but I do not expect this to happen any time soon.

+2
source

All Articles