Use build.js for ol-whitespace.js

This commit is contained in:
Éric Lemoine
2014-06-30 12:09:28 +02:00
parent 3ea304f5bf
commit 4e8c9c5470
2 changed files with 63 additions and 45 deletions
+2 -5
View File
@@ -184,12 +184,9 @@ def build_ol_simple_js(t):
report_sizes(t) report_sizes(t)
@target('build/ol-whitespace.js', PLOVR_JAR, SRC, EXPORTS, @target('build/ol-whitespace.js', SRC, SHADER_SRC, 'buildcfg/ol-whitespace.json')
SHADER_SRC, 'buildcfg/base.json', 'buildcfg/ol.json',
'buildcfg/ol-whitespace.json')
def build_ol_whitespace_js(t): def build_ol_whitespace_js(t):
t.output('%(JAVA)s', '-server', '-XX:+TieredCompilation', '-jar', t.run('node', 'tasks/build.js', 'buildcfg/ol-whitespace.json', 'build/ol-whitespace.js')
PLOVR_JAR, 'build', 'buildcfg/ol-whitespace.json')
report_sizes(t) report_sizes(t)
+61 -40
View File
@@ -1,42 +1,63 @@
{ {
"exports": ["*"],
"id": "ol-whitespace", "src": ["src/**/*.js"],
"compile": {
// If ambiguate-properties and disambiguate-properties are set to true "externs": [
// we get function names like "ol_control_Control_prototype$setMap" in "externs/bingmaps.js",
// the compiled code when using the SIMPLE compilation. It looks like "externs/closure-compiler.js",
// "ambiguate-properties" and "disambiguate-properties" are only "externs/geojson.js",
// appropriate for ADVANCED compilation. To be sure we also don't "externs/oli.js",
// set them for WHITESPACE. "externs/olx.js",
"externs/proj4js.js",
"ambiguate-properties": false, "externs/tilejson.js",
"externs/topojson.js",
"disambiguate-properties": false, "externs/vbarray.js"
],
"externs": [ "define": [
"../externs/bingmaps.js", "goog.dom.ASSUME_STANDARDS_MODE=true",
"../externs/closure-compiler.js", "goog.DEBUG=false"
"../externs/geojson.js", ],
"../externs/oli.js", "jscomp_error": [
"../externs/olx.js", "accessControls",
"../externs/proj4js.js", "ambiguousFunctionDecl",
"../externs/tilejson.js", "checkDebuggerStatement",
"../externs/topojson.js", "checkEventfulObjectDisposal",
"../externs/vbarray.js" "checkProvides",
], "checkRegExp",
"checkStructDictInheritance",
"inherits": "ol.json", "checkTypes",
"checkVars",
"inputs": [ "const",
"../build/exports.js" "constantProperty",
], "deprecated",
"duplicate",
"mode": "WHITESPACE", "duplicateMessage",
"es3",
"output-wrapper": [ "externsValidation",
"var CLOSURE_NO_DEPS = true;\n", "fileoverviewTags",
"%output%" "globalThis",
], "internetExplorerChecks",
"invalidCasts",
"pretty-print": true "misplacedTypeAnnotation",
"missingProperties",
"nonStandardJsDocs",
"strictModuleDepCheck",
"suspiciousCode",
"typeInvalidation",
"tweakValidation",
"undefinedNames",
"undefinedVars",
"unknownDefines",
"uselessCode",
"violatedModuleDep",
"visibility"
],
"jscomp_off": [
"es5Strict"
],
"compilation_level": "WHITESPACE_ONLY",
"output_wrapper": "var CLOSURE_DEPS = false;\n%output%",
"use_types_for_optimization": false,
"manage_closure_dependencies": true
}
} }