Skip to content

Commit 3b41605

Browse files
switched to new library-plugin
1 parent 46ec68d commit 3b41605

6 files changed

Lines changed: 6 additions & 12 deletions

File tree

.gitmodules

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

Makefile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ ZIP_NAME ?= "customDataTypek10plus.zip"
22
PLUGIN_NAME = "custom-data-type-gvk"
33

44
# coffescript-files to compile
5-
COFFEE_FILES = commons.coffee \
6-
CustomDataTypek10plus.coffee \
5+
COFFEE_FILES = CustomDataTypek10plus.coffee \
76
CustomDataTypek10plusFacet.coffee \
87
k10plusUtilities.coffee
98

@@ -25,13 +24,9 @@ build: clean buildinfojson ## clean, compile, copy files to build folder
2524
cp build-info.json build/$(PLUGIN_NAME)/build-info.json # build-info
2625

2726
mkdir -p src/tmp # build code from coffee
28-
cp easydb-library/src/commons.coffee src/tmp
2927
cp src/webfrontend/*.coffee src/tmp
3028
cd src/tmp && coffee -b --compile ${COFFEE_FILES} # bare-parameter is obligatory!
3129

32-
# first: commons! Important
33-
cat src/tmp/commons.js > build/$(PLUGIN_NAME)/webfrontend/customDataTypek10plus.js
34-
3530
cat src/tmp/CustomDataTypek10plus.js >> build/$(PLUGIN_NAME)/webfrontend/customDataTypek10plus.js
3631
cat src/tmp/CustomDataTypek10plusFacet.js >> build/$(PLUGIN_NAME)/webfrontend/customDataTypek10plus.js
3732
cat src/tmp/k10plusUtilities.js >> build/$(PLUGIN_NAME)/webfrontend/customDataTypek10plus.js
@@ -43,7 +38,6 @@ build: clean buildinfojson ## clean, compile, copy files to build folder
4338
rm -rf src/tmp # clean tmp
4439

4540
cp l10n/customDataTypek10plus.csv build/$(PLUGIN_NAME)/l10n/customDataTypek10plus.csv # copy l10n
46-
tail -n+2 easydb-library/src/commons.l10n.csv >> build/$(PLUGIN_NAME)/l10n/customDataTypek10plus.csv # copy commons
4741

4842
cp src/webfrontend/css/main.css build/$(PLUGIN_NAME)/webfrontend/customDataTypek10plus.css # copy css
4943
cp manifest.master.yml build/$(PLUGIN_NAME)/manifest.yml # copy manifest

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ The ZIP can be downloaded and installed using the plugin manager, or used direct
2323

2424
Github has an overview page to get a list of [all releases](https://github.com/programmfabrik/fylr-plugin-custom-data-type-k10plus/releases/).
2525

26+
## requirements
27+
This plugin requires https://github.com/programmfabrik/fylr-plugin-commons-library. In order to use this Plugin, you need to add the [commons-library-plugin](https://github.com/programmfabrik/fylr-plugin-commons-library) to your pluginmanager.
2628

2729
## configuration
2830

easydb-library

Lines changed: 0 additions & 1 deletion
This file was deleted.

manifest.master.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ plugin:
1212
webfrontend:
1313
url: customDataTypek10plus.js
1414
css: customDataTypek10plus.css
15+
dependencies:
16+
- commons-library
1517

1618
base_url_prefix: "webfrontend"
1719

src/webfrontend/CustomDataTypek10plus.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class CustomDataTypeGVK extends CustomDataTypeWithCommons
1+
class CustomDataTypeGVK extends CustomDataTypeWithCommonsAsPlugin
22

33
#######################################################################
44
# return name of plugin

0 commit comments

Comments
 (0)