The single externs/olx.js file describes all of the "options" objects we accept in our constructors. The @typedef annotations are used by the compiler for type checking. The @type annotations include documentation for individual options and serve as externs when compiling a profile of the library. When compiling an application together with the library, the externs/olx.js file is included as one of the sources to provide the @typedef's without generating externs. If we want to maintain multiple src/*.externs.js files instead of one large externs/olx.js file, we can. But while we are still using Plovr, it makes for easier build configurations to have one file. This removes the build tasks that generated the build/src/external/src/externs/types.js and build/src/internal/src/types.js files as those are both replaced by the single externs/olx.js file.
43 lines
992 B
JSON
43 lines
992 B
JSON
{
|
|
|
|
"id": "ol-whitespace",
|
|
|
|
// If ambiguate-properties and disambiguate-properties are set to true
|
|
// we get function names like "ol_control_Control_prototype$setMap" in
|
|
// the compiled code when using the SIMPLE compilation. It looks like
|
|
// "ambiguate-properties" and "disambiguate-properties" are only
|
|
// appropriate for ADVANCED compilation. To be sure we also don't
|
|
// set them for WHITESPACE.
|
|
|
|
"ambiguate-properties": false,
|
|
|
|
"disambiguate-properties": false,
|
|
|
|
"externs": [
|
|
"../externs/bingmaps.js",
|
|
"../externs/closure-compiler.js",
|
|
"../externs/geojson.js",
|
|
"../externs/oli.js",
|
|
"../externs/olx.js",
|
|
"../externs/proj4js.js",
|
|
"../externs/tilejson.js",
|
|
"../externs/topojson.js",
|
|
"../externs/vbarray.js"
|
|
],
|
|
|
|
"inherits": "ol.json",
|
|
|
|
"inputs": [
|
|
"../build/src/internal/src/requireall.js"
|
|
],
|
|
|
|
"mode": "WHITESPACE",
|
|
|
|
"output-wrapper": [
|
|
"var CLOSURE_NO_DEPS = true;\n",
|
|
"%output%"
|
|
],
|
|
|
|
"pretty-print": true
|
|
}
|