Build externs file from info.json

This change adds all information that is needed to generate the externs
file to build/info.json, so tasks/generate-externs.js no longer needs
to spawn JSDoc.
This commit is contained in:
Andreas Hocevar
2014-08-01 17:50:59 +02:00
parent 0d86e4a237
commit 1e79acac20
8 changed files with 180 additions and 274 deletions
+4 -1
View File
@@ -91,7 +91,10 @@ Called internally to generate a `build/exports.js` file optionally with a limite
## `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.
Can be called to generate a Closure externs file for the full OpenLayers 3 API.
See the `--help` option for more detail.
node tasks/generate-externs.js --help
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.