Skip to content

Commit c9909bd

Browse files
committed
Merge pull request #143 from gberaudo/debug_version
Generate a debug version like in Ol3.
2 parents 026535d + 3300a1c commit c9909bd

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ serve: npm-install ol3/build/ol.js ol3/build/ol.css cesium/Build/Cesium/Cesium.j
3737
node build/serve.js
3838

3939
.PHONY: dist
40-
dist: dist/ol3cesium.js
40+
dist: dist/ol3cesium.js dist/ol3cesium-debug.js
4141

4242
.PHONY: dist-examples
4343
dist-examples: .build/dist-examples.timestamp
@@ -100,6 +100,10 @@ cleanall: clean
100100
.build/python-venv/bin/pip install "http://closure-linter.googlecode.com/files/closure_linter-latest.tar.gz"
101101
touch $@
102102

103+
dist/ol3cesium-debug.js: build/ol3cesium-debug.json $(SRC_JS_FILES) ol3/build/ol-externs.js Cesium.externs.js build/build.js npm-install
104+
mkdir -p $(dir $@)
105+
node build/build.js $< $@
106+
103107
# A sourcemap is prepared, the source is exected to be deployed in 'source' directory
104108
dist/ol3cesium.js: build/ol3cesium.json $(SRC_JS_FILES) ol3/build/ol-externs.js Cesium.externs.js build/build.js npm-install
105109
mkdir -p $(dir $@)

build/ol3cesium-debug.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"ignoreRequires": "^ol\\.",
3+
"exports": ["*"]
4+
}

0 commit comments

Comments
 (0)