@@ -7,9 +7,7 @@ COFFEE_FILES = commons.coffee \
7
7
CustomDataTypeDante.coffee \
8
8
CustomDataTypeDanteFacet.coffee \
9
9
CustomDataTypeDanteTreeview.coffee \
10
- CustomDataTypeDanteParseJSKOS.coffee \
11
- DANTEUpdater.coffee
12
-
10
+ CustomDataTypeDanteParseJSKOS.coffee
13
11
14
12
help :
15
13
@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
18
16
19
17
build : clean # # clean, compile, copy files to build folder
20
18
19
+ npm install --save node-fetch # install needed node-module
20
+
21
21
mkdir -p build
22
22
mkdir -p build/$(PLUGIN_NAME)
23
23
mkdir -p build/$(PLUGIN_NAME)/webfrontend
@@ -27,7 +27,6 @@ build: clean ## clean, compile, copy files to build folder
27
27
mkdir -p src/tmp # build code from coffee
28
28
cp easydb-library/src/commons.coffee src/tmp
29
29
cp src/webfrontend/*.coffee src/tmp
30
- cp src/updater/*.coffee src/tmp
31
30
cd src/tmp && coffee -b --compile ${COFFEE_FILES} # bare-parameter is obligatory!
32
31
33
32
cat src/tmp/commons.js >> build/$(PLUGIN_NAME)/webfrontend/customDataTypeDante.js
@@ -40,7 +39,7 @@ build: clean ## clean, compile, copy files to build folder
40
39
cat src/external/geojson-extent.js >> build/$(PLUGIN_NAME)/webfrontend/customDataTypeDante.js # add mapbox
41
40
cat src/external/geo-viewport.js >> build/$(PLUGIN_NAME)/webfrontend/customDataTypeDante.js # add mapbox
42
41
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
44
43
cat src/tmp/DANTEUtil.js >> build/$(PLUGIN_NAME)/updater/DANTEUpdater.js
45
44
rm -rf src/tmp # clean tmp
46
45
@@ -49,6 +48,7 @@ build: clean ## clean, compile, copy files to build folder
49
48
cp src/webfrontend/css/main.css build/$(PLUGIN_NAME)/webfrontend/customDataTypeDante.css # copy css
50
49
cp manifest.master.yml build/$(PLUGIN_NAME)/manifest.yml # copy manifest
51
50
51
+ cp -r node_modules build/$(PLUGIN_NAME)/
52
52
53
53
clean : # # clean
54
54
rm -rf build
0 commit comments