Remove ol-simple.js build
We've proven that we can, but that doesn't mean we should be building with `SIMPLE_OPTIMIZATIONS`.
This commit is contained in:
@@ -122,9 +122,6 @@ executing the `host-examples` build target:
|
|||||||
|
|
||||||
After running `host-examples` you can now open the examples index page in the browser, for example: <http://localhost/~elemoine/ol3/build/hosted/master/examples/>. (This assumes that the `hosted` directory is a web directory, served by Apache for example.)
|
After running `host-examples` you can now open the examples index page in the browser, for example: <http://localhost/~elemoine/ol3/build/hosted/master/examples/>. (This assumes that the `hosted` directory is a web directory, served by Apache for example.)
|
||||||
|
|
||||||
To make an example use `ol-simple.js` or `ol-whitespace.js` instead of `ol.js`
|
|
||||||
append `?mode=simple` or `?mode=whitespace` to the example URL.
|
|
||||||
|
|
||||||
Append `?mode=debug` or `?mode=raw` to make the example work in full debug mode. In
|
Append `?mode=debug` or `?mode=raw` to make the example work in full debug mode. In
|
||||||
full debug mode the OpenLayers and Closure Library scripts are loaded individually by
|
full debug mode the OpenLayers and Closure Library scripts are loaded individually by
|
||||||
the Closure Library's `base.js` script (which the example page loads and
|
the Closure Library's `base.js` script (which the example page loads and
|
||||||
|
|||||||
@@ -5,9 +5,9 @@
|
|||||||
* This loader is used for the hosted examples. It is used in place of the
|
* This loader is used for the hosted examples. It is used in place of the
|
||||||
* development loader (examples/loader.js).
|
* development loader (examples/loader.js).
|
||||||
*
|
*
|
||||||
* ol.js, ol-simple.js, ol-whitespace.js, and ol-deps.js are built
|
* The ol.js, ol-whitespace.js, and ol-deps.js scripts are built by OL3's
|
||||||
* by OL3's build.py script. They are located in the ../build/ directory,
|
* build.py script. They are located in the ../build/ directory, relative to
|
||||||
* relatively to this script.
|
* this script.
|
||||||
*
|
*
|
||||||
* The script must be named loader.js.
|
* The script must be named loader.js.
|
||||||
*
|
*
|
||||||
|
|||||||
12
build.py
12
build.py
@@ -127,8 +127,7 @@ virtual('ci', 'lint', 'jshint', 'build', 'build-all',
|
|||||||
'test', 'build/examples/all.combined.js', 'check-examples', 'apidoc')
|
'test', 'build/examples/all.combined.js', 'check-examples', 'apidoc')
|
||||||
|
|
||||||
|
|
||||||
virtual('build', 'build/ol.css', 'build/ol.js',
|
virtual('build', 'build/ol.css', 'build/ol.js', 'build/ol-whitespace.js')
|
||||||
'build/ol-simple.js', 'build/ol-whitespace.js')
|
|
||||||
|
|
||||||
|
|
||||||
virtual('check', 'lint', 'jshint', 'build/ol-all.js', 'test')
|
virtual('check', 'lint', 'jshint', 'build/ol-all.js', 'test')
|
||||||
@@ -148,12 +147,6 @@ def build_ol_new_js(t):
|
|||||||
report_sizes(t)
|
report_sizes(t)
|
||||||
|
|
||||||
|
|
||||||
@target('build/ol-simple.js', SRC, SHADER_SRC, 'buildcfg/ol-simple.json')
|
|
||||||
def build_ol_simple_js(t):
|
|
||||||
t.run('node', 'tasks/build.js', 'buildcfg/ol-simple.json', 'build/ol-simple.js')
|
|
||||||
report_sizes(t)
|
|
||||||
|
|
||||||
|
|
||||||
@target('build/ol-whitespace.js', SRC, SHADER_SRC, 'buildcfg/ol-whitespace.json')
|
@target('build/ol-whitespace.js', SRC, SHADER_SRC, 'buildcfg/ol-whitespace.json')
|
||||||
def build_ol_whitespace_js(t):
|
def build_ol_whitespace_js(t):
|
||||||
t.run('node', 'tasks/build.js', 'buildcfg/ol-whitespace.json', 'build/ol-whitespace.js')
|
t.run('node', 'tasks/build.js', 'buildcfg/ol-whitespace.json', 'build/ol-whitespace.js')
|
||||||
@@ -609,8 +602,7 @@ def host_examples(t):
|
|||||||
split_example_file(example, examples_dir % vars(variables))
|
split_example_file(example, examples_dir % vars(variables))
|
||||||
t.cp_r('examples/data', examples_dir + '/data')
|
t.cp_r('examples/data', examples_dir + '/data')
|
||||||
t.cp('bin/loader_hosted_examples.js', examples_dir + '/loader.js')
|
t.cp('bin/loader_hosted_examples.js', examples_dir + '/loader.js')
|
||||||
t.cp('build/ol.js', 'build/ol-simple.js', 'build/ol-whitespace.js',
|
t.cp('build/ol.js', 'build/ol-whitespace.js', build_dir)
|
||||||
build_dir)
|
|
||||||
t.cp('build/ol.css', css_dir)
|
t.cp('build/ol.css', css_dir)
|
||||||
t.cp('examples/index.html', 'examples/example-list.js',
|
t.cp('examples/index.html', 'examples/example-list.js',
|
||||||
'examples/example-list.xml', 'examples/Jugl.js',
|
'examples/example-list.xml', 'examples/Jugl.js',
|
||||||
|
|||||||
@@ -1,65 +0,0 @@
|
|||||||
{
|
|
||||||
"exports": ["*"],
|
|
||||||
"compile": {
|
|
||||||
"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"
|
|
||||||
],
|
|
||||||
"define": [
|
|
||||||
"goog.dom.ASSUME_STANDARDS_MODE=true",
|
|
||||||
"goog.DEBUG=false"
|
|
||||||
],
|
|
||||||
"jscomp_error": [
|
|
||||||
"accessControls",
|
|
||||||
"ambiguousFunctionDecl",
|
|
||||||
"checkEventfulObjectDisposal",
|
|
||||||
"checkRegExp",
|
|
||||||
"checkStructDictInheritance",
|
|
||||||
"checkTypes",
|
|
||||||
"checkVars",
|
|
||||||
"const",
|
|
||||||
"constantProperty",
|
|
||||||
"deprecated",
|
|
||||||
"duplicateMessage",
|
|
||||||
"es3",
|
|
||||||
"externsValidation",
|
|
||||||
"fileoverviewTags",
|
|
||||||
"globalThis",
|
|
||||||
"internetExplorerChecks",
|
|
||||||
"invalidCasts",
|
|
||||||
"misplacedTypeAnnotation",
|
|
||||||
"missingGetCssName",
|
|
||||||
"missingProperties",
|
|
||||||
"missingProvide",
|
|
||||||
"missingRequire",
|
|
||||||
"missingReturn",
|
|
||||||
"newCheckTypes",
|
|
||||||
"nonStandardJsDocs",
|
|
||||||
"suspiciousCode",
|
|
||||||
"strictModuleDepCheck",
|
|
||||||
"typeInvalidation",
|
|
||||||
"undefinedNames",
|
|
||||||
"undefinedVars",
|
|
||||||
"unknownDefines",
|
|
||||||
"uselessCode",
|
|
||||||
"visibility"
|
|
||||||
],
|
|
||||||
"extra_annotation_name": [
|
|
||||||
"api", "observable"
|
|
||||||
],
|
|
||||||
"jscomp_off": [
|
|
||||||
"es5Strict"
|
|
||||||
],
|
|
||||||
"compilation_level": "SIMPLE",
|
|
||||||
"output_wrapper": "%output%",
|
|
||||||
"use_types_for_optimization": false,
|
|
||||||
"manage_closure_dependencies": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user