Use build.js for ol-simple.js

This commit is contained in:
Éric Lemoine
2014-06-30 12:09:10 +02:00
parent 04e60a9d37
commit 3ea304f5bf
2 changed files with 63 additions and 41 deletions
+2 -4
View File
@@ -178,11 +178,9 @@ def build_ol_new_js(t):
report_sizes(t) report_sizes(t)
@target('build/ol-simple.js', PLOVR_JAR, SRC, EXPORTS, SHADER_SRC, @target('build/ol-simple.js', SRC, SHADER_SRC, 'buildcfg/ol-simple.json')
'buildcfg/base.json', 'buildcfg/ol.json', 'buildcfg/ol-simple.json')
def build_ol_simple_js(t): def build_ol_simple_js(t):
t.output('%(JAVA)s', '-server', '-XX:+TieredCompilation', '-jar', t.run('node', 'tasks/build.js', 'buildcfg/ol-simple.json', 'build/ol-simple.js')
PLOVR_JAR, 'build', 'buildcfg/ol-simple.json')
report_sizes(t) report_sizes(t)
+61 -37
View File
@@ -1,39 +1,63 @@
{ {
"exports": ["*"],
// If ambiguate-properties and disambiguate-properties are set to true "src": ["src/**/*.js"],
// we get function names like "ol_control_Control_prototype$setMap" in "compile": {
// the compiled code when using the SIMPLE compilation. It looks like "externs": [
// "ambiguate-properties" and "disambiguate-properties" are only "externs/bingmaps.js",
// appropriate for ADVANCED compilation. "externs/closure-compiler.js",
"externs/geojson.js",
"ambiguate-properties": false, "externs/oli.js",
"externs/olx.js",
"disambiguate-properties": false, "externs/proj4js.js",
"externs/tilejson.js",
"id": "ol-simple", "externs/topojson.js",
"externs/vbarray.js"
"externs": [ ],
"../externs/bingmaps.js", "define": [
"../externs/closure-compiler.js", "goog.dom.ASSUME_STANDARDS_MODE=true",
"../externs/geojson.js", "goog.DEBUG=false"
"../externs/oli.js", ],
"../externs/olx.js", "jscomp_error": [
"../externs/proj4js.js", "accessControls",
"../externs/tilejson.js", "ambiguousFunctionDecl",
"../externs/topojson.js", "checkDebuggerStatement",
"../externs/vbarray.js" "checkEventfulObjectDisposal",
], "checkProvides",
"checkRegExp",
"inherits": "ol.json", "checkStructDictInheritance",
"checkTypes",
"inputs": [ "checkVars",
"../build/exports.js" "const",
], "constantProperty",
"deprecated",
"mode": "SIMPLE", "duplicate",
"duplicateMessage",
// Note: we can't have a (function(){%output%})() output wrapper with "es3",
// WHITESPACE and SIMPLE modes. See this link for explanations: "externsValidation",
// https://groups.google.com/forum/#!topic/plovr/gQyZEa2NpsU "fileoverviewTags",
"output-wrapper": "%output%" "globalThis",
"internetExplorerChecks",
"invalidCasts",
"misplacedTypeAnnotation",
"missingProperties",
"nonStandardJsDocs",
"strictModuleDepCheck",
"suspiciousCode",
"typeInvalidation",
"tweakValidation",
"undefinedNames",
"undefinedVars",
"unknownDefines",
"uselessCode",
"violatedModuleDep",
"visibility"
],
"jscomp_off": [
"es5Strict"
],
"compilation_level": "SIMPLE_OPTIMIZATIONS",
"output_wrapper": "%output%",
"use_types_for_optimization": false,
"manage_closure_dependencies": true
}
} }