From fc3ed93080ea5a2a3522b502c66bd669b157062d Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Wed, 9 Jul 2014 14:49:28 +0200 Subject: [PATCH] Use proj4.js from node_modules/ instead of copying it to build/ --- build.py | 13 ++----------- test/index.html | 2 +- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/build.py b/build.py index ff6b9a4ded..b24075599f 100755 --- a/build.py +++ b/build.py @@ -128,8 +128,6 @@ SRC = [path if path.endswith('.js') if path not in SHADER_SRC] -PROJ4JS = 'build/proj4js/dist/proj4.js' - def report_sizes(t): stringio = StringIO() @@ -346,7 +344,7 @@ def examples_star_combined_js(name, match): return Target(name, action=action, dependencies=dependencies) -@target('serve', PROJ4JS, 'examples') +@target('serve', 'examples') def serve(t): t.run('node', 'tasks/serve.js') @@ -669,14 +667,7 @@ def check_examples(t): t.run('%(PHANTOMJS)s', 'bin/check-example.js', example) -@target(PROJ4JS) -def proj4js(t): - contents = open('node_modules/proj4/dist/proj4.js').read() - with open(t.name, 'wb') as f: - f.write(contents) - - -@target('test', PROJ4JS, phony=True) +@target('test', phony=True) def test(t): t.run('node', 'tasks/test.js') diff --git a/test/index.html b/test/index.html index ae9d85feaa..e8400cbaef 100644 --- a/test/index.html +++ b/test/index.html @@ -13,6 +13,7 @@ + -