Skip to content

Commit

Permalink
Document the generate-externs.js task
Browse files Browse the repository at this point in the history
  • Loading branch information
ahocevar committed Aug 4, 2014
1 parent 4cb60fe commit 0d86e4a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tasks/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ The `defines` section of `build.json` above lists common settings for the Closur
Called internally to generate a `build/exports.js` file optionally with a limited set of exports.


## `generate-externs.js`

Can be called to generate a Closure externs file for the full OpenLayers 3 API. The externs file will be placed as `ol-externs.js` in the `build/` directory.

This is useful for projects that use the Closure Compiler to build, but want to use OpenLayers 3 as external library rather than building together with OpenLayers 3.


## `generate-info.js`

Called internally to parse the library for annotations and write out a `build/info.json` file.
Expand Down

0 comments on commit 0d86e4a

Please sign in to comment.