Skip to content

Commit de125e6

Browse files
added auto-updater
1 parent 3d1aedd commit de125e6

File tree

6 files changed

+393
-278
lines changed

6 files changed

+393
-278
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ COFFEE_FILES = commons.coffee \
77
CustomDataTypeDante.coffee \
88
CustomDataTypeDanteFacet.coffee \
99
CustomDataTypeDanteTreeview.coffee \
10-
CustomDataTypeDanteParseJSKOS.coffee \
11-
DANTEUpdater.coffee
12-
10+
CustomDataTypeDanteParseJSKOS.coffee
1311

1412
help:
1513
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
@@ -18,6 +16,8 @@ all: build ## build all
1816

1917
build: clean ## clean, compile, copy files to build folder
2018

19+
npm install --save node-fetch # install needed node-module
20+
2121
mkdir -p build
2222
mkdir -p build/$(PLUGIN_NAME)
2323
mkdir -p build/$(PLUGIN_NAME)/webfrontend
@@ -27,7 +27,6 @@ build: clean ## clean, compile, copy files to build folder
2727
mkdir -p src/tmp # build code from coffee
2828
cp easydb-library/src/commons.coffee src/tmp
2929
cp src/webfrontend/*.coffee src/tmp
30-
cp src/updater/*.coffee src/tmp
3130
cd src/tmp && coffee -b --compile ${COFFEE_FILES} # bare-parameter is obligatory!
3231

3332
cat src/tmp/commons.js >> build/$(PLUGIN_NAME)/webfrontend/customDataTypeDante.js
@@ -40,7 +39,7 @@ build: clean ## clean, compile, copy files to build folder
4039
cat src/external/geojson-extent.js >> build/$(PLUGIN_NAME)/webfrontend/customDataTypeDante.js # add mapbox
4140
cat src/external/geo-viewport.js >> build/$(PLUGIN_NAME)/webfrontend/customDataTypeDante.js # add mapbox
4241

43-
cp src/tmp/DANTEUpdater.js build/$(PLUGIN_NAME)/updater/DANTEUpdater.js # build updater
42+
cp src/updater/DANTEUpdater.js build/$(PLUGIN_NAME)/updater/DANTEUpdater.js # build updater
4443
cat src/tmp/DANTEUtil.js >> build/$(PLUGIN_NAME)/updater/DANTEUpdater.js
4544
rm -rf src/tmp # clean tmp
4645

@@ -49,6 +48,7 @@ build: clean ## clean, compile, copy files to build folder
4948
cp src/webfrontend/css/main.css build/$(PLUGIN_NAME)/webfrontend/customDataTypeDante.css # copy css
5049
cp manifest.master.yml build/$(PLUGIN_NAME)/manifest.yml # copy manifest
5150

51+
cp -r node_modules build/$(PLUGIN_NAME)/
5252

5353
clean: ## clean
5454
rm -rf build

src/updater/DANTEUpdater.coffee

Lines changed: 0 additions & 255 deletions
This file was deleted.

0 commit comments

Comments
 (0)