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.
41 lines
1.1 KiB
JSON
41 lines
1.1 KiB
JSON
{
|
|
|
|
// 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.
|
|
|
|
"ambiguate-properties": false,
|
|
|
|
"disambiguate-properties": false,
|
|
|
|
"id": "ol-simple",
|
|
|
|
"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",
|
|
"../build/src/external/src/exports.js"
|
|
],
|
|
|
|
"mode": "SIMPLE",
|
|
|
|
// Note: we can't have a (function(){%output%})() output wrapper with
|
|
// WHITESPACE and SIMPLE modes. See this link for explanations:
|
|
// https://groups.google.com/forum/#!topic/plovr/gQyZEa2NpsU
|
|
"output-wrapper": "%output%"
|
|
}
|