Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • master
1 result

Target

Select target project
No results found
Select Git revision
  • master
1 result
Show changes
41 files
+ 2298
78
Compare changes
  • Side-by-side
  • Inline

Files

+23 −4
Original line number Diff line number Diff line
@@ -40,10 +40,20 @@ MAKEFILE_IMPORT_PATH?=$(PROJECT_ROOT)makefiles/
#############################################################################################

include $(MAKEFILE_IMPORT_PATH)directories-standard.mk
#include $(MAKEFILE_IMPORT_PATH)directories-go-lib.mk
#include $(MAKEFILE_IMPORT_PATH)directories-go-utilities.mk
#include $(MAKEFILE_IMPORT_PATH)directories-platform-part.mk
#include $(MAKEFILE_IMPORT_PATH)jsdoc.mk
include $(MAKEFILE_IMPORT_PATH)output.mk
include $(MAKEFILE_IMPORT_PATH)placeholder.mk
#include $(MAKEFILE_IMPORT_PATH)conan.mk
#include $(MAKEFILE_IMPORT_PATH)bob.mk
#include $(MAKEFILE_IMPORT_PATH)s3.mk
#include $(MAKEFILE_IMPORT_PATH)readme-standard.mk
#include $(MAKEFILE_IMPORT_PATH)readme-webcomponents.mk
#include $(MAKEFILE_IMPORT_PATH)readme-go-utilities.mk
#include $(MAKEFILE_IMPORT_PATH)readme-go-lib.mk
#include $(MAKEFILE_IMPORT_PATH)readme-platform-part.mk
#include $(MAKEFILE_IMPORT_PATH)licenses.mk
#include $(MAKEFILE_IMPORT_PATH)license-agpl3.mk
#include $(MAKEFILE_IMPORT_PATH)license-unlicensed.mk
@@ -64,22 +74,31 @@ include $(MAKEFILE_IMPORT_PATH)terminal.mk
#include $(MAKEFILE_IMPORT_PATH)target-add-licenses.mk
#include $(MAKEFILE_IMPORT_PATH)target-deploy-tool.mk
#include $(MAKEFILE_IMPORT_PATH)target-jsdoc-build.mk
#include $(MAKEFILE_IMPORT_PATH)target-jekyll.mk
#include $(MAKEFILE_IMPORT_PATH)target-minerva.mk
#include $(MAKEFILE_IMPORT_PATH)target-docman.mk
#include $(MAKEFILE_IMPORT_PATH)target-node-build.mk
#include $(MAKEFILE_IMPORT_PATH)target-caddy.mk
#include $(MAKEFILE_IMPORT_PATH)target-conan.mk
#include $(MAKEFILE_IMPORT_PATH)target-bob.mk
#include $(MAKEFILE_IMPORT_PATH)target-phpunit.mk
#include $(MAKEFILE_IMPORT_PATH)target-jekyll.mk
include $(MAKEFILE_IMPORT_PATH)target-update-makefiles.mk
include $(MAKEFILE_IMPORT_PATH)target-help.mk
include $(MAKEFILE_IMPORT_PATH)target-go-build.mk
#include $(MAKEFILE_IMPORT_PATH)target-node-build.mk
#include $(MAKEFILE_IMPORT_PATH)target-node-test.mk
#include $(MAKEFILE_IMPORT_PATH)target-npm-publish.mk
#include $(MAKEFILE_IMPORT_PATH)target-npm.mk
include $(MAKEFILE_IMPORT_PATH)target-git.mk
include $(MAKEFILE_IMPORT_PATH)target-init-standard.mk
#include $(MAKEFILE_IMPORT_PATH)target-init-standard.mk
#include $(MAKEFILE_IMPORT_PATH)target-init-webcomponent.mk
#include $(MAKEFILE_IMPORT_PATH)target-init-go-utilities.mk
#include $(MAKEFILE_IMPORT_PATH)target-init-go-lib.mk
#include $(MAKEFILE_IMPORT_PATH)target-init-platform-part.mk
include $(MAKEFILE_IMPORT_PATH)target-version.mk
include $(MAKEFILE_IMPORT_PATH)target-variable.mk	
include $(MAKEFILE_IMPORT_PATH)terminal-check.mk


#############################################################################################

# include target-project.mk only if it exists
-include $(MAKEFILE_IMPORT_PATH)target-project.mk
Original line number Diff line number Diff line
@@ -3,39 +3,39 @@ module gitlab.schukai.com/oss/utilities/conan
go 1.19

require (
	gitea.com/go-chi/session v0.0.0-20211218221615-e3605d8b28b8
	github.com/fsnotify/fsnotify v1.5.4
	github.com/go-chi/chi/v5 v5.0.7
	gitea.com/go-chi/session v0.0.0-20221220005550-e056dc379164
	github.com/Masterminds/sprig/v3 v3.2.3
	github.com/bitfield/script v0.21.4
	github.com/fsnotify/fsnotify v1.6.0
	github.com/go-chi/chi/v5 v5.0.8
	github.com/google/uuid v1.3.0
	github.com/gookit/color v1.5.1
	github.com/gookit/color v1.5.2
	github.com/gorilla/websocket v1.5.0
	github.com/jessevdk/go-flags v1.5.0
	github.com/pkg/errors v0.9.1
	github.com/sethvargo/go-envconfig v0.8.2
	go.uber.org/zap v1.23.0
	github.com/sethvargo/go-envconfig v0.8.3
	go.uber.org/zap v1.24.0
	gopkg.in/yaml.v3 v3.0.1
)

require (
	bitbucket.org/creachadair/shell v0.0.7 // indirect
	github.com/Masterminds/goutils v1.1.1 // indirect
	github.com/Masterminds/semver/v3 v3.1.1 // indirect
	github.com/Masterminds/sprig/v3 v3.2.2 // indirect
	github.com/bitfield/script v0.20.2 // indirect
	github.com/Masterminds/semver/v3 v3.2.0 // indirect
	github.com/dave/jennifer v1.5.1 // indirect
	github.com/evanw/esbuild v0.15.6 // indirect
	github.com/huandu/xstrings v1.3.1 // indirect
	github.com/imdario/mergo v0.3.11 // indirect
	github.com/itchyny/gojq v0.12.7 // indirect
	github.com/itchyny/timefmt-go v0.1.3 // indirect
	github.com/mitchellh/copystructure v1.0.0 // indirect
	github.com/mitchellh/reflectwalk v1.0.0 // indirect
	github.com/shopspring/decimal v1.2.0 // indirect
	github.com/spf13/cast v1.3.1 // indirect
	github.com/huandu/xstrings v1.4.0 // indirect
	github.com/imdario/mergo v0.3.13 // indirect
	github.com/itchyny/gojq v0.12.11 // indirect
	github.com/itchyny/timefmt-go v0.1.5 // indirect
	github.com/mitchellh/copystructure v1.2.0 // indirect
	github.com/mitchellh/reflectwalk v1.0.2 // indirect
	github.com/shopspring/decimal v1.3.1 // indirect
	github.com/spf13/cast v1.5.0 // indirect
	github.com/unknwon/com v1.0.1 // indirect
	github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 // indirect
	go.uber.org/atomic v1.7.0 // indirect
	go.uber.org/multierr v1.6.0 // indirect
	golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 // indirect
	golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect
	github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
	go.uber.org/atomic v1.10.0 // indirect
	go.uber.org/multierr v1.9.0 // indirect
	golang.org/x/crypto v0.5.0 // indirect
	golang.org/x/sys v0.4.0 // indirect
)
Original line number Diff line number Diff line
@@ -2,15 +2,23 @@ bitbucket.org/creachadair/shell v0.0.7 h1:Z96pB6DkSb7F3Y3BBnJeOZH2gazyMTWlvecSD4
bitbucket.org/creachadair/shell v0.0.7/go.mod h1:oqtXSSvSYr4624lnnabXHaBsYW6RD80caLi2b3hJk0U=
gitea.com/go-chi/session v0.0.0-20211218221615-e3605d8b28b8 h1:tJQRXgZigkLeeW9LPlps9G9aMoE6LAmqigLA+wxmd1Q=
gitea.com/go-chi/session v0.0.0-20211218221615-e3605d8b28b8/go.mod h1:fc/pjt5EqNKgqQXYzcas1Z5L5whkZHyOvTA7OzWVJck=
gitea.com/go-chi/session v0.0.0-20221220005550-e056dc379164 h1:nvIOUfSzrQ6EphSLnYI+e4OcvqTd6HWdCnh+aIq9Uew=
gitea.com/go-chi/session v0.0.0-20221220005550-e056dc379164/go.mod h1:fc/pjt5EqNKgqQXYzcas1Z5L5whkZHyOvTA7OzWVJck=
github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI=
github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU=
github.com/Masterminds/semver/v3 v3.1.1 h1:hLg3sBzpNErnxhQtUy/mmLR2I9foDujNK030IGemrRc=
github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs=
github.com/Masterminds/semver/v3 v3.2.0 h1:3MEsd0SM6jqZojhjLWWeBY+Kcjy9i6MQAeY7YgDP83g=
github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ=
github.com/Masterminds/sprig/v3 v3.2.2 h1:17jRggJu518dr3QaafizSXOjKYp94wKfABxUmyxvxX8=
github.com/Masterminds/sprig/v3 v3.2.2/go.mod h1:UoaO7Yp8KlPnJIYWTFkMaqPUYKTfGFPhxNuwnnxkKlk=
github.com/Masterminds/sprig/v3 v3.2.3 h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj9n6YA=
github.com/Masterminds/sprig/v3 v3.2.3/go.mod h1:rXcFaZ2zZbLRJv/xSysmlgIM1u11eBaRMhvYXJNkGuM=
github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8=
github.com/bitfield/script v0.20.2 h1:4DexsRtBILVMEn3EZwHbtJdDqdk43sXI8gM3F04JXgs=
github.com/bitfield/script v0.20.2/go.mod h1:l3AZPVAtKQrL03bwh7nlNTUtgrgSWurpJSbtqspYrOA=
github.com/bitfield/script v0.21.4 h1:XPMD/ti7pa9KW1aPMq7Hfh+mVznQdlqxkbiZSM2lnbE=
github.com/bitfield/script v0.21.4/go.mod h1:l3AZPVAtKQrL03bwh7nlNTUtgrgSWurpJSbtqspYrOA=
github.com/bradfitz/gomemcache v0.0.0-20190329173943-551aad21a668/go.mod h1:H0wQNHz2YrLsuXOZozoeDmnHXkNCRmMW0gwFWDfEZDA=
github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/couchbase/go-couchbase v0.0.0-20201026062457-7b3be89bbd89/go.mod h1:+/bddYDxXsf9qt0xpDUtRR47A2GjaXmGGAqQ/k3GJ8A=
@@ -30,9 +38,13 @@ github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMo
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
github.com/fsnotify/fsnotify v1.5.4 h1:jRbGcIw6P2Meqdwuo0H1p6JVLbL5DHKAKlYndzMwVZI=
github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU=
github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY=
github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw=
github.com/go-chi/chi/v5 v5.0.4/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8=
github.com/go-chi/chi/v5 v5.0.7 h1:rDTPXLDHGATaeHvVlLcR4Qe0zftYethFucbjVQ1PxU8=
github.com/go-chi/chi/v5 v5.0.7/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8=
github.com/go-chi/chi/v5 v5.0.8 h1:lD+NLqFcAi1ovnVZpsnObHGW4xb4J8lNmoYVfECH1Y0=
github.com/go-chi/chi/v5 v5.0.8/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8=
github.com/go-redis/redis/v8 v8.4.0/go.mod h1:A1tbYoHSa1fXwN+//ljcCYYJeLmVrwL9hbQN45Jdy0M=
github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w=
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
@@ -57,6 +69,8 @@ github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/gookit/color v1.5.1 h1:Vjg2VEcdHpwq+oY63s/ksHrgJYCTo0bwWvmmYWdE9fQ=
github.com/gookit/color v1.5.1/go.mod h1:wZFzea4X8qN6vHOSP2apMb4/+w/orMznEzYsIHPaqKM=
github.com/gookit/color v1.5.2 h1:uLnfXcaFjlrDnQDT+NCBcfhrXqYTx/rcCa6xn01Y8yI=
github.com/gookit/color v1.5.2/go.mod h1:w8h4bGiHeeBpvQVePTutdbERIUf3oJE5lZ8HM0UgXyg=
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
github.com/gopherjs/gopherjs v0.0.0-20181103185306-d547d1d9531e h1:JKmoR8x90Iww1ks85zJ1lfDGgIiMDuIptTOhJq+zKyg=
github.com/gopherjs/gopherjs v0.0.0-20181103185306-d547d1d9531e/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
@@ -65,12 +79,21 @@ github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/ad
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
github.com/huandu/xstrings v1.3.1 h1:4jgBlKK6tLKFvO8u5pmYjG91cqytmDCDvGh7ECVFfFs=
github.com/huandu/xstrings v1.3.1/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE=
github.com/huandu/xstrings v1.3.3/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE=
github.com/huandu/xstrings v1.4.0 h1:D17IlohoQq4UcpqD7fDk80P7l+lwAmlFaBHgOipl2FU=
github.com/huandu/xstrings v1.4.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE=
github.com/imdario/mergo v0.3.11 h1:3tnifQM4i+fbajXKBHXWEH+KvNHqojZ778UH75j3bGA=
github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
github.com/imdario/mergo v0.3.13 h1:lFzP57bqS/wsqKssCGmtLAb8A0wKjLGrve2q3PPVcBk=
github.com/imdario/mergo v0.3.13/go.mod h1:4lJ1jqUDcsbIECGy0RUJAXNIhg+6ocWgb1ALK2O4oXg=
github.com/itchyny/gojq v0.12.7 h1:hYPTpeWfrJ1OT+2j6cvBScbhl0TkdwGM4bc66onUSOQ=
github.com/itchyny/gojq v0.12.7/go.mod h1:ZdvNHVlzPgUf8pgjnuDTmGfHA/21KoutQUJ3An/xNuw=
github.com/itchyny/gojq v0.12.11 h1:YhLueoHhHiN4mkfM+3AyJV6EPcCxKZsOnYf+aVSwaQw=
github.com/itchyny/gojq v0.12.11/go.mod h1:o3FT8Gkbg/geT4pLI0tF3hvip5F3Y/uskjRz9OYa38g=
github.com/itchyny/timefmt-go v0.1.3 h1:7M3LGVDsqcd0VZH2U+x393obrzZisp7C0uEe921iRkU=
github.com/itchyny/timefmt-go v0.1.3/go.mod h1:0osSSCQSASBJMsIZnhAaF1C2fCBTJZXrnj37mG8/c+A=
github.com/itchyny/timefmt-go v0.1.5 h1:G0INE2la8S6ru/ZI5JecgyzbbJNs5lG1RcBqa7Jm6GE=
github.com/itchyny/timefmt-go v0.1.5/go.mod h1:nEP7L+2YmAbT2kZ2HfSs1d8Xtw9LY8D2stDBckWakZ8=
github.com/jessevdk/go-flags v1.5.0 h1:1jKYvbxEjfUl0fmqTCOfonvskHHXMjBySTLW4y9LFvc=
github.com/jessevdk/go-flags v1.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4=
github.com/jtolds/gls v4.2.1+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
@@ -81,8 +104,12 @@ github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27k
github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
github.com/mitchellh/copystructure v1.0.0 h1:Laisrj+bAB6b/yJwB5Bt3ITZhGJdqmxquMKeZ+mmkFQ=
github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw=
github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw=
github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s=
github.com/mitchellh/reflectwalk v1.0.0 h1:9D+8oIskB4VJBN5SFlmc27fSlIBZaov1Wpk/IfikLNY=
github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ=
github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
@@ -99,8 +126,12 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/sethvargo/go-envconfig v0.8.2 h1:DDUVuG21RMgeB/bn4leclUI/837y6cQCD4w8hb5797k=
github.com/sethvargo/go-envconfig v0.8.2/go.mod h1:Iz1Gy1Sf3T64TQlJSvee81qDhf7YIlt8GMUX6yyNFs0=
github.com/sethvargo/go-envconfig v0.8.3 h1:dXyUrDCJvCm3ybP7yNpiux93qoSORvuH23bdsgFfiJ0=
github.com/sethvargo/go-envconfig v0.8.3/go.mod h1:Iz1Gy1Sf3T64TQlJSvee81qDhf7YIlt8GMUX6yyNFs0=
github.com/shopspring/decimal v1.2.0 h1:abSATXmQEYyShuxI4/vyW3tV1MrKAJzCZ/0zLUXYbsQ=
github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=
github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8=
github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=
github.com/siddontang/go v0.0.0-20180604090527-bdc77568d726/go.mod h1:3yhqj7WBBfRhbBlzyOC3gUxftwsU0u8gqevxwIHQpMw=
github.com/siddontang/ledisdb v0.0.0-20190202134119-8ceb77e66a92/go.mod h1:mF1DpOSOUiJRMR+FDqaqu3EBqrybQtrDDszLUZ6oxPg=
github.com/siddontang/rdb v0.0.0-20150307021120-fc89ed2e418d/go.mod h1:AMEsy7v5z92TR1JKMkLLoaOQk++LVnOKL3ScbJ8GNGA=
@@ -112,37 +143,62 @@ github.com/smartystreets/goconvey v0.0.0-20190731233626-505e41936337 h1:WN9BUFbd
github.com/smartystreets/goconvey v0.0.0-20190731233626-505e41936337/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
github.com/spf13/cast v1.3.1 h1:nFm6S0SMdyzrzcmThSipiEubIDy8WEXKNZ0UOgiRpng=
github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w=
github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals=
github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk=
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/syndtr/goleveldb v1.0.0/go.mod h1:ZVVdQEZoIme9iO1Ch2Jdy24qqXrMMOU6lpPAyBWyWuQ=
github.com/unknwon/com v1.0.1 h1:3d1LTxD+Lnf3soQiD4Cp/0BRB+Rsa/+RTvz8GMMzIXs=
github.com/unknwon/com v1.0.1/go.mod h1:tOOxU81rwgoCLoOVVPHb6T/wt8HZygqH5id+GNnlCXM=
github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 h1:QldyIu/L63oPpyvQmHgvgickp1Yw510KJOqX7H24mg8=
github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778/go.mod h1:2MuV+tbUrU1zIOPMxZ5EncGwgmMJsa+9ucAQZXxsObs=
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no=
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
go.opentelemetry.io/otel v0.14.0/go.mod h1:vH5xEuwy7Rts0GNtsCW3HYQoZDY+OmBJ6t1bFGGlxgw=
go.uber.org/atomic v1.7.0 h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw=
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
go.uber.org/atomic v1.10.0 h1:9qC72Qh0+3MqyJbAn8YU5xVq1frD8bn3JtD2oXtafVQ=
go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0=
go.uber.org/goleak v1.1.11 h1:wy28qYRKZgnJTxGxvye5/wgWr1EKjmUDGYox5mGlRlI=
go.uber.org/multierr v1.6.0 h1:y6IPFStTAIT5Ytl7/XYmHvzXQ7S3g/IeZW9hyZ5thw4=
go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU=
go.uber.org/multierr v1.9.0 h1:7fIwc/ZtS0q++VgcfqFDxSBZVv/Xo49/SYnDFupUwlI=
go.uber.org/multierr v1.9.0/go.mod h1:X2jQV1h+kxSjClGpnseKVIxpmcjrj7MNnI0bnlfKTVQ=
go.uber.org/zap v1.23.0 h1:OjGQ5KQDEUawVHxNwQgPpiypGHOxo2mNZsOqTak4fFY=
go.uber.org/zap v1.23.0/go.mod h1:D+nX8jyLsMHMYrln8A0rJjFt/T/9/bGgIhAqxv5URuY=
go.uber.org/zap v1.24.0 h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60=
go.uber.org/zap v1.24.0/go.mod h1:2kMP+WWQ8aoFoedH3T2sq6iJ2yDWpHbP0f6MQbS9Gkg=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20200414173820-0848c9571904/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4=
golang.org/x/crypto v0.5.0 h1:U/0M97KRkSFvyD/3FSmdP5W5swImpNgle/EHFhOsQPE=
golang.org/x/crypto v0.5.0/go.mod h1:NK/OQwhpMQP3MwtdjgLlYHnH9ebylxKWv3e0fK+mkQU=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
golang.org/x/net v0.0.0-20201006153459-a7d1128ccaa0/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
@@ -152,19 +208,35 @@ golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220412211240-33da011f77ad h1:ntjMns5wyP/fN65tdBD4g8J5w8n015+iIIs9rtjXkY0=
golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 h1:0A+M6Uqn+Eje4kHMK80dtF3JCXC4ykBgQG4Fe06QRhQ=
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.4.0 h1:Zr2JFtRQNX3BCZ8YtxRE9hNJYC8J6I1MVbMg6owUp18=
golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
@@ -185,5 +257,6 @@ gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+64 −0
Original line number Diff line number Diff line
#############################################################################################
#############################################################################################
##
## DEFINE BOB 
##
#############################################################################################
#############################################################################################


BOB_BIN             ?= $(VENDOR_PATH)bob
#BOB_SNIPPED_CONFIG  ?= $(VENDOR_PATH)bob/snippet.yaml
BOB_SYNC_CONFIG     ?= $(VENDOR_PATH)bob/sync.yaml

BOB_BUILD_PATH	    ?= $(BUILD_PATH)bob/build/
BOB_DIST_PATH	    ?= $(DIST_PATH)bob/dist/


define SYNCEXAMPLECONF
sync:

  - source:
      path: '../original/test1.html'
      selector: '#mainscript'
    destination:
      path: '../original/'
      exclude:
        - ../original/test1.html
        
  - source:
      path: '../original/test1.html'
      selector: '.deco'
    destination:
      path: '../original/'
      exclude:
        - ../original/test1.html
		
endef

export SYNCEXAMPLECONF

define SNIPPETEXAMPLECONF
snippet:
  -
    source: ../../template.html
    selector: 'h1'
    destination: ../../snippets/meta/container.html
    attribute:
      - selector: 'li'
        name: 'data-state'
        value: 'monster'
    replacement:
      -
        selector: 'li>span'
        content: 'hello'
endef

export SNIPPETEXAMPLECONF

$(BOB_SNIPPED_CONFIG):
	$(QUIET) $(ECHO) "$$BOB_SNIPPED_CONFIG" >> $@

$(BOB_SYNC_CONFIG):
	$(QUIET) $(ECHO) "$$BOB_SYNC_CONFIG" >> $@
Original line number Diff line number Diff line
@@ -8,6 +8,8 @@


GIT_CHGLOG_BIN := $(shell command -v git-chglog 2> /dev/null)
GIT_CHGLOG_CONFIG_DIR := $(PROJECT_ROOT).chglog
REPOSURL			  := $(subst .git,,$(subst $(shell git config --get user.name)@,,$(shell git config --get remote.origin.url)))

ifeq ($(GO),)
  $(error $(ERRORMARKER) GO is not defined)
@@ -15,8 +17,124 @@ endif

ifeq ($(GIT_CHGLOG_BIN),)
  $(shell $(GO) install github.com/git-chglog/git-chglog/cmd/git-chglog@latest)
  GIT_CHGLOG_BIN := $(shell command -v git-chglog 2> /dev/null)
endif     


ifneq ($(shell test -d $(GIT_CHGLOG_CONFIG_DIR) && echo -n yes),yes)
    $(shell mkdir -p $(GIT_CHGLOG_CONFIG_DIR))
endif

remove-config-files:
	$(shell rm -Rf $(GIT_CHGLOG_CONFIG_DIR)/ && mkdir -p $(GIT_CHGLOG_CONFIG_DIR))

.PHONY: update-chglog-files
## update standard git-chglog configuration files
update-chglog-files: remove-config-files $(GIT_CHGLOG_CONFIG_DIR)/config.yml $(GIT_CHGLOG_CONFIG_DIR)/CHANGELOG.tpl.md
	$(ECHOMARKER) "update standard git-chglog configuration files"

define GIT_CHGLOG_CONFIG_FILE
style: gitlab
template: CHANGELOG.tpl.md
info:
  title: CHANGELOG
  repository_url: $(REPOSURL)
options:
  commits:
    filters:
      Type:
        - feat
        - fix
        - doc
        - refactor
        - perf
        - test
        - chore
        ## deprecated types and typos  
        - docs
        - documentation
        - feat
        - added
        - add
        - bugfix
        - revert
        - update
        - updates
        - change
        - changed
  commit_groups:
    title_maps:
      feat: Add Features
      fix: Bug Fixes
      doc: Documentation
      refactor: Code Refactoring
      perf: Performance Improvements
      test: Tests
      ## Chore is used for all other changes that don't fit in the other categories
      chore: Changes
      ## deprecated types and typos  
      docs: Documentation
      documentation: Documentation
      added: Add Features
      add: Add Features
      bugfix: Bug Fixes
      revert: Reverts
      update: Changes
      updates: Changes
      change: Changes
      changed: Changes
  header:
    pattern: "^(\\w*)(?:\\(([\\w\\$$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$$"
    pattern_maps:
      - Type
      - Scope
      - Subject
  notes:
    keywords:
      - BREAKING CHANGE
endef

export GIT_CHGLOG_CONFIG_FILE

$(GIT_CHGLOG_CONFIG_DIR)/config.yml:
	$(QUIET) $(ECHO) "$$GIT_CHGLOG_CONFIG_FILE" >> $@

define GIT_CHGLOG_CONFIG_TEMPLATE
{{ range .Versions }}
<a name="{{ .Tag.Name }}"></a>
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]{{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }}
{{ range .CommitGroups -}}
### {{ .Title }}
{{ range .Commits -}}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
{{ end }}
{{ end -}}

{{- if .NoteGroups -}}
{{ range .NoteGroups -}}
### {{ .Title }}
{{ range .Notes }}
{{ .Body }}
{{ end }}
{{ end -}}
{{ end -}}
{{ end -}}

{{- if .Versions }}
{{ range .Versions -}}
{{ if .Tag.Previous -}}
[{{ .Tag.Name }}]: {{ $$.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}
{{ end -}}
{{ end -}}
{{ end -}}
endef

export GIT_CHGLOG_CONFIG_TEMPLATE


$(GIT_CHGLOG_CONFIG_DIR)/CHANGELOG.tpl.md:
	$(QUIET) $(ECHO) "$$GIT_CHGLOG_CONFIG_TEMPLATE" >> $@

## location of CHANGELOG.md file
CHANGELOG_FILE ?= $(PROJECT_ROOT)CHANGELOG.md
EXECUTABLES = $(EXECUTABLES:-) $(GIT_CHGLOG_BIN)
+51 −0
Original line number Diff line number Diff line
#############################################################################################
#############################################################################################
##
## DEFINE CONAN
##
#############################################################################################
#############################################################################################


CONAN_BIN            ?= $(VENDOR_PATH)conan
CONAN_CONFIG         ?= $(VENDOR_PATH)conan.conf

define CONANEXAMPLECONF
Server:
  
  # The hostname or IP address of the server (CONAN_SERVER_HOST)
  # Domain, IP or hostname of the server
  #Host: localhost:8080
  
  # The port of the server (CONAN_SERVER_ADDRESS)
  # Address: localhost
  
  # The port of the server (CONAN_SERVER_PORT)
  # Port: 8080
  
  # 
  Path:
    # The path to the server (CONAN_SERVER_WEB_PATH)  
    Web: web
    
  Watch:
    - Path: src
      Command: /bin/bash -c "npx esbuild --bundle --outfile={{ .WebPath }}/scripts/bundle.js --sourcemap {{ .Path }}"
      Exclude:
        - ~$
        - ^\.
    - Path: web
      Exclude:
        - ~$
        - ^\.
    
  Flags:
    FollowSymlinks: true

endef

export CONANEXAMPLECONF

$(CONAN_CONFIG):
	$(QUIET) $(ECHO) "$$CONANEXAMPLECONF" >> $@
Original line number Diff line number Diff line
#############################################################################################
#############################################################################################
##
## DIRECTORIES
##
#############################################################################################
#############################################################################################

APPLICATION_PATH          ?=   $(PROJECT_ROOT)
DEPLOYMENT_PATH           ?=   $(PROJECT_ROOT)
DEVELOPMENT_PATH          ?=   $(PROJECT_ROOT)
DOCUMENTATION_PATH        ?=   $(PROJECT_ROOT)

RESOURCE_PATH             ?=   $(APPLICATION_PATH)
SOURCE_PATH               ?=   $(APPLICATION_PATH)

## SCRIPTS_PATH IS DEPRECATED					      
SCRIPTS_PATH              ?=   $(DEVELOPMENT_PATH)script/

DEVELOPMENT_SCRIPTS_PATH  ?=   $(DEVELOPMENT_PATH)script/
BUILD_PATH                ?=   $(DEPLOYMENT_PATH)build/
VENDOR_PATH               ?=   $(DEPLOYMENT_PATH)vendor/

DEPLOYMENT_SCRIPTS_PATH   ?=   $(DEPLOYMENT_PATH)script/
LICENSE_PATH              ?=   $(PROJECT_ROOT)

PROJECT_DIRECTORIES :=  $(PROJECT_DIRECTORIES)  \
	$(APPLICATION_PATH) \
	$(VENDOR_PATH) \
	$(DEVELOPMENT_SCRIPTS_PATH) \
	$(BUILD_PATH)
	
Original line number Diff line number Diff line
#############################################################################################
#############################################################################################
##
## DIRECTORIES
##
#############################################################################################
#############################################################################################

APPLICATION_PATH          ?=   $(PROJECT_ROOT)application/
DEPLOYMENT_PATH           ?=   $(PROJECT_ROOT)deployment/
DEVELOPMENT_PATH          ?=   $(PROJECT_ROOT)development/
DOCUMENTATION_PATH        ?=   $(PROJECT_ROOT)documentation/

RESOURCE_PATH             ?=   $(APPLICATION_PATH)resource/
SOURCE_PATH               ?=   $(APPLICATION_PATH)source/
WEB_PATH                  ?=   $(APPLICATION_PATH)web/


## SCRIPTS_PATH IS DEPRECATED					      
SCRIPTS_PATH              ?=   $(DEVELOPMENT_PATH)script/

DEVELOPMENT_SCRIPTS_PATH  ?=   $(DEVELOPMENT_PATH)script/
BUILD_PATH                ?=   $(DEPLOYMENT_PATH)build/
VENDOR_PATH               ?=   $(DEPLOYMENT_PATH)vendor/

DEPLOYMENT_SCRIPTS_PATH   ?=   $(DEPLOYMENT_PATH)script/
LICENSE_PATH              ?=   $(PROJECT_ROOT)

PROJECT_DIRECTORIES :=  $(PROJECT_DIRECTORIES)  \
	$(APPLICATION_PATH) \
	$(RESOURCE_PATH) \
	$(SOURCE_PATH) \
	$(DEPLOYMENT_PATH) \
	$(VENDOR_PATH) \
	$(DEVELOPMENT_PATH) \
	$(DEVELOPMENT_SCRIPTS_PATH) \
	$(DEPLOYMENT_SCRIPTS_PATH) \
	$(DOCUMENTATION_PATH) \
	$(LICENSE_PATH) \
	$(BUILD_PATH)
	
Original line number Diff line number Diff line
#############################################################################################
#############################################################################################
##
## DIRECTORIES
##
#############################################################################################
#############################################################################################

SOURCE_PATH               ?=   $(PROJECT_ROOT)source/

RELATIVE_SCRIPT_PATH      ?=   script/

SCRIPT_PATH               ?=   $(PROJECT_ROOT)$(RELATIVE_SCRIPT_PATH)
VENDOR_PATH               ?=   $(PROJECT_ROOT)vendor/
NODE_PATH                 ?=   $(PROJECT_ROOT)node_modules/
TEST_PATH                 ?=   $(PROJECT_ROOT)test/
DEVELOPMENT_PATH		  ?=   $(PROJECT_ROOT)

LICENSE_PATH              ?=   $(PROJECT_ROOT)
DIST_PATH			      ?=   $(PROJECT_ROOT)dist/

CONFIG_PATH			      ?=   $(PROJECT_ROOT)config/
BUILD_PATH			      ?=   $(PROJECT_ROOT)build/

BOB_SNIPPED_CONFIG 		  ?=   $(CONFIG_PATH)snippet.conf
BOB_SYNC_CONFIG    		  ?=   $(CONFIG_PATH)sync.yaml
				   		       
BOB_BUILD_PATH	   		  ?=   $(BUILD_PATH)
BOB_DIST_PATH	   		  ?=   $(DIST_PATH)
				   		 
PROJECT_DIRECTORIES :=  $(PROJECT_DIRECTORIES)  \
  $(SOURCE_PATH) \
  $(SCRIPT_PATH) \
  $(VENDOR_PATH) \
  $(NODE_PATH) \
  $(TEST_PATH) \
  $(LICENSE_PATH) \
  $(CONFIG_PATH) \
  $(BUILD_PATH) \
  $(DIST_PATH)
Original line number Diff line number Diff line
@@ -26,9 +26,11 @@ SCRIPTS_PATH ?= $(DEVELOPMENT_PATH)script/
DEVELOPMENT_SCRIPTS_PATH  ?=   $(DEVELOPMENT_PATH)script/
BUILD_PATH                ?=   $(DEPLOYMENT_PATH)build/
VENDOR_PATH               ?=   $(DEPLOYMENT_PATH)vendor/
TEST_PATH                 ?=   $(DEVELOPMENT_PATH)test/
ALVINE_VENDOR_PATH        ?=   $(VENDOR_PATH)alvine/
TEST_PATH                 ?=   $(DEVELOPMENT_PATH)tests/

DEPLOYMENT_SCRIPTS_PATH   ?=   $(DEPLOYMENT_PATH)script/
LICENSE_PATH              ?=   $(PROJECT_ROOT)

PROJECT_DIRECTORIES :=  $(PROJECT_DIRECTORIES)  \
	$(APPLICATION_PATH) \
@@ -37,11 +39,14 @@ PROJECT_DIRECTORIES := $(PROJECT_DIRECTORIES) \
	$(WEB_PATH) \
	$(DEPLOYMENT_PATH) \
	$(VENDOR_PATH) \
	$(ALVINE_VENDOR_PATH) \
	$(TEST_PATH) \
	$(DEVELOPMENT_PATH) \
	$(DEVELOPMENT_SCRIPTS_PATH) \
	$(DEPLOYMENT_SCRIPTS_PATH) \
	$(DOCUMENTATION_PATH) \
	$(REQUIREMENT_PATH)  \
	$(CREDENTIALS_PATH) \
	$(LICENSE_PATH) \
	$(BUILD_PATH)
	
Original line number Diff line number Diff line
@@ -8,8 +8,13 @@

define GITIGNOREDS

# Makefile comes from update
Makefile.example

# Vendor
/development/vendor/
/deployment/vendor/

# Created by https://www.toptal.com/developers/gitignore/api/intellij+iml,phpunit,git,vim,visualstudiocode,phpstorm,go,intellij+all,netbeans,dbeaver,node,yarn
# Edit at https://www.toptal.com/developers/gitignore?templates=intellij+iml,phpunit,git,vim,visualstudiocode,phpstorm,go,intellij+all,netbeans,dbeaver,node,yarn

@@ -518,8 +523,8 @@ tags
endef

export GITIGNOREDS
.gitignore:
	$(QUITE) $(ECHO) "$$GITIGNOREDS" >> $@
$(PROJECT_ROOT).gitignore:
	$(QUIET) $(ECHO) "$$GITIGNOREDS" >> $@


Original line number Diff line number Diff line
@@ -14,3 +14,14 @@ EXECUTABLES = $(EXECUTABLES:-) $(GO);
ifeq ($(shell command -v $(GO) 2> /dev/null),)
  $(error "go is not installed. Please install go <https://go.dev/doc/install>")
endif

GOPATH=$(shell go env GOPATH)

ifeq ($(GOPATH),)
    DIRS := bin pkg src
    GOPATH=$(DEPLOYMENT_PATH)/go/
    $(shell mkdir -p $(GOPATH))
	$(shell $(foreach entry,$(DIRS),mkdir -p "$(GOPATH)$(entry)";))
    export PATH=$(PATH):$(GOPATH)/bin
endif
Original line number Diff line number Diff line
@@ -112,4 +112,4 @@ endef

export JSDOCJSON
$(DEPLOYMENT_PATH)jsdoc.json:
	$(QUITE) $(ECHO) "$$JSDOCJSON" >> $@
 No newline at end of file
	$(QUIET) $(ECHO) "$$JSDOCJSON" >> $@
 No newline at end of file
Original line number Diff line number Diff line
@@ -17,3 +17,39 @@ COPYRIGHT_TEXT ?= © schukai GmbH, $(LICENSE_TEXT).

## The owner of the project
COPYRIGHT_OWNER ?= schukai GmbH

COPYRIGHT_URL ?= [LICENSE](https://www.schukai.com/)

define LICENSE_FILE_CONTENT
The schukai Enterprise License (the "Enterprise License").
Copyright © 2022 schukai GmbH.

Regarding this Software, schukai GmbH is the licensor and you are the licensee.

By using the Software, you agree to all the terms and conditions set forth below.

This software and associated  documentation files  (the "Software") may be used in  production  only if you (and any company 
you represent) have  a valid Enterprise  License corresponding to your use. Subject  to the preceding sentence, you are free
to modify this Software and to release patches for the Software. You agree that schukai and/or its licensors (as applicable) 
retain all  right,  title and  interest in and to  all such modifications  and/or patches, and  that all  such modifications 
and/or patches may be  used, copied, modified, displayed,  distributed  or otherwise exploited only  with a valid Enterprise 
License for the appropriate use. Notwithstanding  the foregoing,  you may copy  and modify the Software  for development and 
testing purposes without requiring a subscription.
 
You  agree  that schukai  and/or its  licensors (if  applicable) retain  all right,  title and  interest  in and to all such 
modifications. No additional  rights are granted  to you beyond those expressly set forth  herein. Subject to the foregoing, 
you may not copy, merge, publish, distribute, sublicense and/or sell the Software.

THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
WARRANTIES  OF MERCHANTABILITY,  FITNESS  FOR  A  PARTICULAR PURPOSE AND  NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIMS, DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT,  TORT OR OTHERWISE, ARISING OUT 
OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.

For any third-party components incorporated into schukai's software, such components are licensed under the  original license 
provided by the owner of the applicable component.

endef



Original line number Diff line number Diff line
@@ -15,5 +15,7 @@ SPDX_LICENSE_ID ?=
## Copyright holder of the project
COPYRIGHT_TEXT  ?= © schukai GmbH, $(LICENSE_TEXT).

COPYRIGHT_URL ?= [LICENSE](https://www.schukai.com/)

## The owner of the project
COPYRIGHT_OWNER ?= schukai GmbH
Original line number Diff line number Diff line
@@ -6,8 +6,10 @@
#############################################################################################
#############################################################################################

ifneq "$(wildcard $(SOURCE_PATH) )" ""
  ## Files wich should be checked for license headers
LICENSE_FILE_PATTERN ?= ./*(.go|js|php)
  LICENSE_FILE_PATTERN ?= $(shell find $(SOURCE_PATH) -type f \( -iname \*.go -o -iname \*.php -o -iname \*.js -o -iname \*.mjs -o -iname \*.cjs \) )
endif

# https://spdx.github.io/spdx-spec/v2.3/SPDX-license-list/
ADDLICENSE_BIN ?= addlicense
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ EXECUTABLES = $(EXECUTABLES:-) $(NPM);
NODE_PACKAGES := $(shell find $(PROJECT_ROOT) -type f -name 'package.json' -not -path '*/node_modules/*')
NODE_MODULES := $(shell find $(PROJECT_ROOT) -type d -name 'node_modules' -prune)

NODE_MODULES_MODIFIED := $(shell find . -type f -name 'package.json' -not -path '*/node_modules/*' -exec sh -c 'F=$$(dirname {}); echo $${F}/node_modules/.modified'   \;)
NODE_MODULES_MODIFIED := $(shell find $(PROJECT_ROOT) -type f -name 'package.json' -not -path '*/node_modules/*' -exec sh -c 'F=$$(dirname {}); echo $${F}/node_modules/.modified'   \;)

$(NODE_MODULES_MODIFIED): $(NODE_PACKAGES)
	$(ECHOMARKER) "Updating node modules..."
@@ -24,8 +24,10 @@ $(NODE_MODULES_MODIFIED): $(NODE_PACKAGES)
  		DIR=$$(dirname $$p); \
		echo "Updating package: $${DIR}" ;\
		$(NPM) install --prefix $${DIR}  ;\
	done ; \
	touch $(NODE_MODULES_MODIFIED)
		if [ -d $${DIR}/node_modules/ ]; then \
			touch $${DIR}/node_modules/.modified ;\
		fi ;\
	done
 
## Main Develpoment Node Repos 
NODE_ROOT_DIR          ?= $(DEVELOPMENT_PATH)
@@ -42,11 +44,12 @@ MOCHA ?= $(NODE_MODULES_BIN_DIR)mocha

PACKAGE_JSON ?= $(NODE_ROOT_DIR)package.json

ifneq "$(wildcard $(SOURCE_PATH) )" ""
  MJS_SOURCE_FILES                       := $(shell find $(SOURCE_PATH) -name '*.mjs')
  MJS_RELATIVE_SOURCE_FILES              := $(shell find $(SOURCE_PATH) -name '*.mjs' -exec realpath --relative-to $(PROJECT_ROOT) {} \;   )

  JS_SOURCE_FILES                       := $(shell find $(SOURCE_PATH) -name '*.js')
  JS_RELATIVE_SOURCE_FILES              := $(shell find $(SOURCE_PATH) -name '*.js' -exec realpath --relative-to $(PROJECT_ROOT) {} \;   )

endif

+80 −0
Original line number Diff line number Diff line
#############################################################################################
#############################################################################################
##
## README
##
#############################################################################################
#############################################################################################


define README_FILE_CONTENT
# $(COMPONENT_NAME)

$(COMPONENT_NAME) is ...

## Documentation

To check out docs and examples, visit ....

## Installation

```shell
go get $(shell git config --get remote.origin.url | sed -E 's/^\s*.*:\/\///g') 
```

**Note:** This library uses [Go Modules](https://github.com/golang/go/wiki/Modules) to manage dependencies.

## Usage

## Contributing

Merge requests are welcome. For major changes, please open an issue first to discuss what
you would like to change. **Please make sure to update tests as appropriate.**

Versioning is done with [SemVer](https://semver.org/).
Changelog is generated with [git-chglog](https://github.com/git-chglog/git-chglog#git-chglog)

Commit messages should follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification.
Messages are started with a type, which is one of the following:

- **feat**: A new feature
- **fix**: A bug fix
- **doc**: Documentation only changes
- **refactor**: A code change that neither fixes a bug nor adds a feature
- **perf**: A code change that improves performance
- **test**: Adding missing or correcting existing tests
- **chore**: Other changes that don't modify src or test files

The footer would be used for a reference to an issue or a breaking change.

A commit that has a footer `BREAKING CHANGE:`, or appends a ! after the type/scope,
introduces a breaking API change (correlating with MAJOR in semantic versioning).
A BREAKING CHANGE can be part of commits of any type.

the following is an example of a commit message:

```text
feat: add 'extras' field
```

## Questions

For questions and commercial support, please contact [schukai GmbH](https://www.schukai.com/).
The issue list of this repo is exclusively for bug reports and feature requests.

## Issues

Please make sure to read the Issue Reporting Checklist before opening an
issue. Issues not conforming to the guidelines may be closed immediately.

## License

$(COPYRIGHT_TEXT)

$(COPYRIGHT_URL)

You can also purchase a commercial license.


endef
Original line number Diff line number Diff line
#############################################################################################
#############################################################################################
##
## README
##
#############################################################################################
#############################################################################################


define README_FILE_CONTENT
# $(COMPONENT_NAME)

$(COMPONENT_NAME) is ...

## Documentation

To check out docs and examples, visit ....

## Installation

```shell
go get $(shell git config --get remote.origin.url | sed -E 's/^\s*.*:\/\///g') 
```

**Note:** This library uses [Go Modules](https://github.com/golang/go/wiki/Modules) to manage dependencies.

## Usage

## Contributing

Merge requests are welcome. For major changes, please open an issue first to discuss what
you would like to change. **Please make sure to update tests as appropriate.**

Versioning is done with [SemVer](https://semver.org/).
Changelog is generated with [git-chglog](https://github.com/git-chglog/git-chglog#git-chglog)

Commit messages should follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification.
Messages are started with a type, which is one of the following:

- **feat**: A new feature
- **fix**: A bug fix
- **doc**: Documentation only changes
- **refactor**: A code change that neither fixes a bug nor adds a feature
- **perf**: A code change that improves performance
- **test**: Adding missing or correcting existing tests
- **chore**: Other changes that don't modify src or test files

The footer would be used for a reference to an issue or a breaking change.

A commit that has a footer `BREAKING CHANGE:`, or appends a ! after the type/scope,
introduces a breaking API change (correlating with MAJOR in semantic versioning).
A BREAKING CHANGE can be part of commits of any type.

the following is an example of a commit message:

```text
feat: add 'extras' field
```

## Questions

For questions and commercial support, please contact [schukai GmbH](https://www.schukai.com/).
The issue list of this repo is exclusively for bug reports and feature requests.

## Issues

Please make sure to read the Issue Reporting Checklist before opening an
issue. Issues not conforming to the guidelines may be closed immediately.

## License

$(COPYRIGHT_TEXT)

$(COPYRIGHT_URL)

You can also purchase a commercial license.


endef
Original line number Diff line number Diff line
#############################################################################################
#############################################################################################
##
## README
##
#############################################################################################
#############################################################################################


define README_FILE_CONTENT
# $(COMPONENT_NAME)

$(COMPONENT_NAME) is a part of the Alvine/Agenor project.

This app is built with ES6 modules and uses [import](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Statements/import)  
and [export](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/export).

For some functions, you need additional [polyfills](#polyfill).

## Documentation

To check out docs and examples, visit [doc.alvine.io](https://doc.alvine.io).

## Installation

`pnpm install @oss/$(COMPONENT_SLUG)`

## Usage

A simple example of the use of functionality from $(COMPONENT_NAME). We create a small file `index.mjs`.
The `m` in `.mjs` stands for module. In the example we want to make substitutions in a string.

```js
// script
```

To integrate this function into a website it is recommended to use a bundler like [esbuild](https://esbuild.github.io/).

```sh
esbuild index.mjs --outfile dist.js
```

We can now integrate that into our website.

```html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>$(COMPONENT_NAME)</title>
    <script src="dist.js"></script>
</head>
<body>
```

Voila!


### Polyfill

We do try to work around some browser bugs, but on the whole we don't use polyfills and feature detection.

However, many functions can be mapped via [polyfill.io](https://polyfill.io/) and thus the compatibility can be increased.

```js
<script id="polyfill" src="https://polyfill.io/v3/polyfill.min.js?..."
       crossorigin="anonymous"
       referrerpolicy="no-referrer"></script>
```

## Questions

For questions and commercial support, please contact [schukai GmbH](https://www.schukai.com/).
The issue list of this repo is exclusively for bug reports and feature requests.

## Issues

Please make sure to read the Issue Reporting Checklist before opening an
issue. Issues not conforming to the guidelines may be closed immediately.

## License

$(COPYRIGHT_TEXT)

$(COPYRIGHT_URL)

## Changelog

Detailed changes for each release are documented in the CHANGELOG.

endef
+45 −0
Original line number Diff line number Diff line
#############################################################################################
#############################################################################################
##
## README
##
#############################################################################################
#############################################################################################


define README_FILE_CONTENT
# $(COMPONENT_NAME)

$(COMPONENT_NAME) is ...

## Documentation

To check out docs and examples, visit ....

## Installation


## Usage


## Questions

For questions and commercial support, please contact [schukai GmbH](https://www.schukai.com/).
The issue list of this repo is exclusively for bug reports and feature requests.

## Issues

Please make sure to read the Issue Reporting Checklist before opening an
issue. Issues not conforming to the guidelines may be closed immediately.

## License

$(COPYRIGHT_TEXT)

$(COPYRIGHT_URL)

You can also purchase a commercial license.


endef
Original line number Diff line number Diff line
#############################################################################################
#############################################################################################
##
## README
##
#############################################################################################
#############################################################################################


define README_FILE_CONTENT
# $(COMPONENT_NAME)

$(COMPONENT_NAME) is a lightweight, robust and easy-to-use form library with modest ambitions. 
The component easily integrates with your existing websites without taking over everything.

One design target is to reach the shiny sun with as little JavaScript as possible.

Monster was built with ES6 modules and uses [import](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Statements/import)  
and [export](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/export).

For some functions, you need additional [polyfills](#polyfill).

## Documentation

To check out docs and examples, visit [monsterjs.org/en/doc/$(COMPONENT_SLUG)/](https://monsterjs.org/en/doc/$(COMPONENT_SLUG)/).

## Installation

`npm install @schukai/component-$(COMPONENT_SLUG)`, `yarn install @schukai/component-$(COMPONENT_SLUG)` or `pnpm install @schukai/component-$(COMPONENT_SLUG)`

## Usage

A simple example of the use of functionality from $(COMPONENT_NAME). We create a small file `index.mjs`.
The `m` in `.mjs` stands for module. In the example we want to make substitutions in a string.

```js
// example
```

To integrate this function into a website it is recommended to use a bundler like [esbuild](https://esbuild.github.io/).

```sh
esbuild index.mjs --outfile dist.js
```

We can now integrate that into our website.

```html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>$(COMPONENT_NAME)</title>
    <script src="dist.js"></script>
</head>
<body>
```

Voila!


### Polyfill

We do try to work around some browser bugs, but on the whole we don't use polyfills and feature detection.

However, many functions can be mapped via [polyfill.io](https://polyfill.io/) and thus the compatibility can be increased.

```js
<script id="polyfill" src="https://polyfill.io/v3/polyfill.min.js?..."
       crossorigin="anonymous"
       referrerpolicy="no-referrer"></script>
```

## Questions

For questions and commercial support, please contact [schukai GmbH](https://www.schukai.com/).
The issue list of this repo is exclusively for bug reports and feature requests.

## Issues

Please make sure to read the Issue Reporting Checklist before opening an
issue. Issues not conforming to the guidelines may be closed immediately.

## License

$(COPYRIGHT_TEXT)

$(COPYRIGHT_URL)

You can also purchase a commercial license.

## Changelog

Detailed changes for each release are documented in
the [CHANGELOG](https://gitlab.schukai.com/oss/libraries/javascript/web-components/$(COMPONENT_SLUG)).

endef
Original line number Diff line number Diff line
@@ -17,7 +17,11 @@ endif
.PHONY: add-licenses
## Add license headers to all go files
add-licenses:
	$(ECHOMARKER) "Add license headers to all go files"
	$(ECHOMARKER) "Add license headers to all sourche files"
ifeq ($(LICENSE_FILE_PATTERN),)
	$(error "LICENSE_FILE_PATTERN is not set. Please check your makefile and include the licenses.mk")
endif

ifndef SPDX_LICENSE_ID 
	$(error "SPDX_LICENSE_ID is not defined. Please check your makefile and include the licenses.mk")
endif
+62 −0
Original line number Diff line number Diff line
#############################################################################################
#############################################################################################
##
## SERVER BOB 
##
#############################################################################################
#############################################################################################

ifeq ($(BOB_BIN),)
  $(error $(ERRORMARKER) Bob is not defined, check your Makefile if bob.mk is included)
endif

ifndef BOB_BUILD_PATH
  $(error $(ERRORMARKER) BOB_BUILD_PATH is not defined, check your Makefile if bob.mk is included)
endif

ifndef BOB_DIST_PATH
  $(error $(ERRORMARKER) BOB_DIST_PATH is not defined, check your Makefile if bob.mk is included)
endif

ifndef SOURCE_PATH
  $(error $(ERRORMARKER) SOURCE_PATH is not defined, check your Makefile if bob.mk is included)
endif


$(BOB_BIN):
	$(QUIET) $(MKDIR) -p $(VENDOR_PATH)
	$(QUIET) $(WGET) -O $(BOB_BIN) http://download.schukai.com/tools/bob/bob-$(shell uname -s | tr [:upper:] [:lower:])-$(shell echo `uname -m | sed s/aarch64/arm64/ | sed s/x86_64/amd64/`)
	$(QUIET) $(CHMOD) u+x $(BOB_BIN)

.PHONY: sync-pages
## Sync structure of pages
sync-pages: $(BOB_BIN)
ifeq ($(BOB_SYNC_CONFIG),)
	$(ECHOMARKER) "BOB_SYNC_CONFIG is not set, check your Makefile if the variable is set"
endif
	$(ECHOMARKER) "Sync structure of pages"
	$(QUIET) $(BOB_BIN) html sync --specification $(BOB_SYNC_CONFIG)


$(BOB_BUILD_PATH): 
	$(ECHOMARKER) "Create build directory for bob"
	$(QUIET) $(MKDIR) -p $(BOB_BUILD_PATH)

$(BOB_DIST_PATH): 
	$(ECHOMARKER) "Create dist directory for bob"
	$(QUIET) $(MKDIR) -p $(BOB_DIST_PATH)

.PHONY: generate-html
## Build the project
generate-html: $(BOB_BIN) $(BOB_BUILD_PATH) $(BOB_DIST_PATH)
	$(ECHOMARKER) "Generate html"
	$(QUIET) $(BOB_BIN) html generate --input $(BOB_BUILD_PATH) --output $(BOB_DIST_PATH) 

.PHONY: prepare-template
## Prepare template
prepare-template: $(BOB_BIN) $(BOB_BUILD_PATH)
	$(ECHOMARKER) "Generate templates"
	$(QUIET) find $(SOURCE_PATH) -name "*.yaml" -exec $(BOB_BIN) template prepare --input $(SOURCE_PATH) --output $(BOB_BUILD_PATH) --data-file={} \;


Original line number Diff line number Diff line
@@ -6,8 +6,10 @@
#############################################################################################
#############################################################################################

CONAN_BIN            ?= $(VENDOR_PATH)conan
CONAN_CONFIG         ?= $(VENDOR_PATH)conan.conf
ifeq ($(CONAN_BIN),)
  $(error $(ERRORMARKER) Conan is not defined, check your Makefile if conan.mk is included)
endif


$(CONAN_BIN):
	$(QUIET) $(MKDIR) -p $(VENDOR_PATH)
@@ -16,6 +18,5 @@ $(CONAN_BIN):

.PHONY: run-conan
## run conan webserver
run-conan: $(CONAN_BIN) 
	$(QUIET) $(CONAN_BIN) server serve -config $(CONAN_CONFIG)
run-conan: $(CONAN_BIN) $(CONAN_CONFIG)
	$(QUIET) $(CONAN_BIN) server serve --config $(CONAN_CONFIG)
Original line number Diff line number Diff line
@@ -11,11 +11,17 @@ ifeq ($(GO),)
endif

GO_MOD_FILE := $(SOURCE_PATH)go.mod
GO_LICENSES_BIN := $(shell command -v go-licenses)


ifeq ($(GO_LICENSES_BIN),)
  $(shell $(GO) install github.com/google/go-licenses@latest)
  GO_LICENSES_BIN := $(shell command -v go-licenses 2> /dev/null)
  EXECUTABLES = $(EXECUTABLES:-) go-licenses;    
endif   

ifeq ($(shell test -e $(GO_MOD_FILE) && echo -n yes),yes)
  GO_CURRENT_MODULE := $(shell cat $(GO_MOD_FILE) | head -n1 | cut -d" " -f2)
  # go install github.com/google/go-licenses@latest
  EXECUTABLES = $(EXECUTABLES:-) go-licenses;    
endif

.PHONY: go-fetch-licenses
Original line number Diff line number Diff line
#############################################################################################
#############################################################################################
##
## INIT-STANDARD
##
#############################################################################################
#############################################################################################

# @see .PHONY https://www.gnu.org/software/make/manual/html_node/Phony-Targets.html#Phony-Targets
.PHONY: init-go-lib 

# The default directories are defined in the 
# directories-standard.mk file, but all other 
# targets can define directories as well.

$(PROJECT_DIRECTORIES):
	$(foreach path,$(PROJECT_DIRECTORIES),\
    		$(shell $(MKDIR) -p $(path)))

## init go lib project	
init-go-lib: $(PROJECT_DIRECTORIES) $(PROJECT_ROOT).gitignore $(PROJECT_ROOT)README.md  $(LICENSE_PATH)LICENSE
	$(ECHOMARKER) "Run init-go-lib"
	$(ECHO) "Done"

#############################################################################################
#############################################################################################
##
## LICENSE
##
#############################################################################################
#############################################################################################

export LICENSE_FILE_CONTENT
$(LICENSE_PATH)LICENSE:
	$(QUIET) $(ECHO) "$$LICENSE_FILE_CONTENT" >> $@

#############################################################################################
#############################################################################################
##
## README
##
#############################################################################################
#############################################################################################

export README_FILE_CONTENT
$(PROJECT_ROOT)README.md:
	$(QUIET) $(ECHO) "$$README_FILE_CONTENT" >> $@

Original line number Diff line number Diff line
#############################################################################################
#############################################################################################
##
## INIT-STANDARD
##
#############################################################################################
#############################################################################################

# @see .PHONY https://www.gnu.org/software/make/manual/html_node/Phony-Targets.html#Phony-Targets
.PHONY: init-go-utilities 

# The default directories are defined in the 
# directories-standard.mk file, but all other 
# targets can define directories as well.

$(PROJECT_DIRECTORIES):
	$(foreach path,$(PROJECT_DIRECTORIES),\
    		$(shell $(MKDIR) -p $(path)))

## init go utilities project	
init-go-utilities: $(PROJECT_DIRECTORIES) $(PROJECT_ROOT).gitignore $(PROJECT_ROOT)README.md  $(LICENSE_PATH)LICENSE
	$(ECHOMARKER) "Run init-go-utilities"
	$(ECHO) "Done"

#############################################################################################
#############################################################################################
##
## LICENSE
##
#############################################################################################
#############################################################################################

export LICENSE_FILE_CONTENT
$(LICENSE_PATH)LICENSE:
	$(QUIET) $(ECHO) "$$LICENSE_FILE_CONTENT" >> $@

#############################################################################################
#############################################################################################
##
## README
##
#############################################################################################
#############################################################################################

export README_FILE_CONTENT
$(PROJECT_ROOT)README.md:
	$(QUIET) $(ECHO) "$$README_FILE_CONTENT" >> $@

Original line number Diff line number Diff line
#############################################################################################
#############################################################################################
##
## INIT-WEBCOMPONENTS
##
#############################################################################################
#############################################################################################

# @see .PHONY https://www.gnu.org/software/make/manual/html_node/Phony-Targets.html#Phony-Targets
.PHONY: init-platform-part

# The default directories are defined in the 
# directories-standard.mk file, but all other 
# targets can define directories as well.

$(PROJECT_DIRECTORIES):
	$(foreach path,$(PROJECT_DIRECTORIES),\
    		$(shell $(MKDIR) -p $(path)))

## init standard project	
init-platform-part: $(PROJECT_DIRECTORIES) $(PROJECT_ROOT).gitignore $(PROJECT_ROOT)package.json $(PROJECT_ROOT)README.md  $(LICENSE_PATH)LICENSE 
	$(ECHOMARKER) "Run init-webapp"
	$(ECHO) "Done"

#############################################################################################
#############################################################################################
##
## LICENSE
##
#############################################################################################
#############################################################################################

export LICENSE_FILE_CONTENT
$(LICENSE_PATH)LICENSE:
	$(QUIET) $(ECHO) "$$LICENSE_FILE_CONTENT" >> $@


#############################################################################################
#############################################################################################
##
## README
##
#############################################################################################
#############################################################################################

export README_FILE_CONTENT
$(PROJECT_ROOT)README.md:
	$(QUIET) $(ECHO) "$$README_FILE_CONTENT" >> $@

#############################################################################################
#############################################################################################
##
## BUILD PACKAGE JSON
##
#############################################################################################
#############################################################################################
define PLATFORM_PARTS_BUILD_PACKAGE_CONTENT
{
  "name": "@alvine/$(COMPONENT_SLUG)",
  "version": "0.1.0",
  "description": "$(COMPONENT_NAME)",
  "repository": {
    "type": "git",
    "url": "https://gitlab.schukai.com/alvine/application/platform-apps/parts/$(COMPONENT_SLUG).git"
  },
  "scripts": {
    "build-and-publish": "script/build-and-publish.sh",
    "semantic-release": "semantic-release",
    "build": "vite --config ./vite.config.js build",
    "preview": "vite --config ./vite.config.js preview",
    "dev": "vite --config ./vite.config.js"
  },
  "type": "module",
  "author": "schukai GmbH",
  "license": "see LICENSE file",
  "dependencies": {
    "@schukai/component-form": "^2.0.2",
    "@schukai/component-notify": "^2.0.0",
    "@schukai/component-state": "^2.0.1",
    "@schukai/component-style": "^0.6.1",
    "@schukai/monster": "^2.0.16"
  },   
  "devDependencies": {
    "@peculiar/webcrypto": "^1.4.0",
    "@semantic-release/changelog": "^6.0.1",
    "@semantic-release/exec": "^6.0.3",
    "@semantic-release/git": "^10.0.1",
    "@semantic-release/gitlab": "^9.4.2",
    "cli-real-favicon": "^0.0.8",
	"@semantic-release/npm": "^9.0.1",
    "autoprefixer": "^10.4.13",
    "btoa": "^1.2.1",
    "c8": "^7.12.0",
    "chai": "^4.3.6",
    "glob": "^8.0.3",
    "chai-dom": "^1.11.0",
    "clean-jsdoc-theme": "^4.1.6",
    "create-polyfill-service-url": "^2.2.6",
    "crypt": "^0.0.2",
    "cssnano": "^5.1.14",
    "esbuild": "^0.14.53",
    "flow-bin": "^0.184.0",
    "fs": "^0.0.1-security",
    "graphviz": "^0.0.9",
    "jsdoc": "^3.6.11",
    "jsdoc-external-example": "github:volker-schukai/jsdoc-external-example",
    "jsdom": "^19.0.0",
    "jsdom-global": "^3.0.2",
    "mocha": "^10.0.0",
    "postcss": "^8.4.19",
    "postcss-color-mod-function": "^3.0.3",
    "postcss-fluid": "^1.4.2",
    "postcss-for": "^2.1.1",
    "postcss-import": "^15.0.0",
    "postcss-mixins": "^9.0.4",
    "postcss-nesting": "^10.2.0",
    "postcss-normalize": "^10.0.1",
    "postcss-responsive-type": "^1.0.0",
    "postcss-strip-units": "^2.0.1",
    "process": "^0.11.10",
    "semantic-release": "^19.0.5",
    "sinon": "^14.0.0",
    "url": "^0.11.0",
    "url-exist": "3.0.0",
    "util": "^0.12.4",
    "vite": "^3.2.3",
    "vite-plugin-banner": "^0.6.1",
    "vite-plugin-mkcert": "^1.10.1",
    "vite-plugin-minify": "^1.5.2"    
  }
}
endef

export PLATFORM_PARTS_BUILD_PACKAGE_CONTENT
$(PROJECT_ROOT)package.json:
	$(QUIET) $(ECHO) "$$PLATFORM_PARTS_BUILD_PACKAGE_CONTENT" >> $@

######
Original line number Diff line number Diff line
#############################################################################################
#############################################################################################
##
## INIT-TARGETS
## INIT-STANDARD
##
#############################################################################################
#############################################################################################
@@ -9,12 +9,41 @@
# @see .PHONY https://www.gnu.org/software/make/manual/html_node/Phony-Targets.html#Phony-Targets
.PHONY: init-standard

## init standard project	
init-standard: .gitignore
# The default directories are defined in the 
# directories-standard.mk file, but all other 
# targets can define directories as well.
	$(ECHOMARKER) "Run init-standard"

$(PROJECT_DIRECTORIES):
	$(foreach path,$(PROJECT_DIRECTORIES),\
    		$(shell $(MKDIR) -p $(path)))

## init standard project	
init-standard: $(PROJECT_DIRECTORIES) $(PROJECT_ROOT).gitignore $(PROJECT_ROOT)README.md  $(LICENSE_PATH)LICENSE
	$(ECHOMARKER) "Run init-standard"
	$(ECHO) "Done"

#############################################################################################
#############################################################################################
##
## LICENSE
##
#############################################################################################
#############################################################################################

export LICENSE_FILE_CONTENT
$(LICENSE_PATH)LICENSE:
	$(QUIET) $(ECHO) "$$LICENSE_FILE_CONTENT" >> $@

#############################################################################################
#############################################################################################
##
## README
##
#############################################################################################
#############################################################################################

export README_FILE_CONTENT
$(PROJECT_ROOT)README.md:
	$(QUIET) $(ECHO) "$$README_FILE_CONTENT" >> $@

Original line number Diff line number Diff line
#############################################################################################
#############################################################################################
##
## INIT-WEBCOMPONENTS
##
#############################################################################################
#############################################################################################

# @see .PHONY https://www.gnu.org/software/make/manual/html_node/Phony-Targets.html#Phony-Targets
.PHONY: init-webcomponent

# The default directories are defined in the 
# directories-standard.mk file, but all other 
# targets can define directories as well.

$(PROJECT_DIRECTORIES):
	$(foreach path,$(PROJECT_DIRECTORIES),\
    		$(shell $(MKDIR) -p $(path)))

## init standard project	
init-webcomponent: $(PROJECT_DIRECTORIES) $(PROJECT_ROOT).gitignore $(DEVELOPMENT_PATH)package.json $(APPLICATION_PATH)package.json $(PROJECT_ROOT)README.md  $(LICENSE_PATH)LICENSE $(APPLICATION_PATH)LICENSE
	$(ECHOMARKER) "Run init-webcomponent"
	$(ECHO) "Done"

#############################################################################################
#############################################################################################
##
## LICENSE
##
#############################################################################################
#############################################################################################

export LICENSE_FILE_CONTENT
$(LICENSE_PATH)LICENSE:
	$(QUIET) $(ECHO) "$$LICENSE_FILE_CONTENT" >> $@

export LICENSE_AGPL_FILE_CONTENT
$(APPLICATION_PATH)LICENSE:
	$(QUIET) $(ECHO) "$$LICENSE_AGPL_FILE_CONTENT" >> $@

#############################################################################################
#############################################################################################
##
## README
##
#############################################################################################
#############################################################################################

export README_FILE_CONTENT
$(PROJECT_ROOT)README.md:
	$(QUIET) $(ECHO) "$$README_FILE_CONTENT" >> $@


#############################################################################################
#############################################################################################
##
## PACKAGE JSON
##
#############################################################################################
#############################################################################################
define WEBCOMPONENTS_PACKAGE_CONTENT
{
  "name": "component-$(COMPONENT_SLUG)",
  "version": "0.1.0",
  "description": "component $(COMPONENT_NAME)",
  "repository": {
    "type": "git",
    "url": "https://gitlab.schukai.com/oss/libraries/javascript/web-components/$(COMPONENT_SLUG).git"
  },
  "keywords": [
    "web",
    "dom",
    "css",
    "mobile-first",
    "app",
    "front-end",
    "ui",
    "form",
    "templates",
    "schukai",
    "component",
    "web-component",
    "monster"
  ],
  "dependencies": {
    "@popperjs/core": "^2.9.2",
    "@schukai/monster": "^2.0.8"
  },
  "main": "source/component.mjs",
  "module": "source/component.mjs",
  "type": "module",
  "homepage": "https://monsterjs.org/",
  "repository": {
    "type": "git",
    "url": "https://gitlab.schukai.com/oss/libraries/javascript/web-components/$(COMPONENT_SLUG).git"
  },
  "author": "schukai GmbH",
  "license": "AGPL 3.0"
}
endef

export WEBCOMPONENTS_PACKAGE_CONTENT
$(APPLICATION_PATH)package.json:
	$(QUIET) $(ECHO) "$$WEBCOMPONENTS_PACKAGE_CONTENT" >> $@

#############################################################################################
#############################################################################################
##
## BUILD PACKAGE JSON
##
#############################################################################################
#############################################################################################
define WEBCOMPONENTS_BUILD_PACKAGE_CONTENT
{
  "name": "component-$(COMPONENT_SLUG)",
  "version": "0.1.0",
  "description": "component $(COMPONENT_NAME)",
  "repository": {
    "type": "git",
    "url": "https://gitlab.schukai.com/oss/libraries/javascript/web-components/$(COMPONENT_SLUG).git"
  },
  "scripts": {
    "test": "npx mocha --recursive test/cases/",
    "web-test": "script/web-test.sh",
    "publish": "script/release-and-publish.sh",
    "build-doc": "script/build-doc.sh"
  },
  "type": "module",
  "author": "schukai GmbH",
  "license": "see LICENSE file",
  "dependencies": {
    "@popperjs/core": "^2.11.2",
    "@schukai/monster": "^2.0.8"
  },
  "devDependencies": {
    "@peculiar/webcrypto": "^1.4.0",
    "btoa": "^1.2.1",
    "c8": "^7.12.0",
    "chai": "^4.3.6",
    "chai-dom": "^1.11.0",
    "clean-jsdoc-theme": "^4.1.6",
    "create-polyfill-service-url": "^2.2.6",
    "crypt": "^0.0.2",
    "esbuild": "^0.14.53",
    "flow-bin": "^0.184.0",
    "fs": "^0.0.1-security",
    "graphviz": "^0.0.9",
    "jsdoc": "^3.6.11",
    "jsdoc-external-example": "github:volker-schukai/jsdoc-external-example",
    "jsdoc-plantuml": "^1.0.2",
    "jsdom": "^19.0.0",
    "jsdom-global": "^3.0.2",
    "mocha": "^10.0.0",
    "node-plantuml": "^0.9.0",
    "sinon": "^14.0.0",
    "url": "^0.11.0",
    "url-exist": "3.0.0",
    "util": "^0.12.4"
  }
}
endef

export WEBCOMPONENTS_BUILD_PACKAGE_CONTENT
$(DEVELOPMENT_PATH)package.json:
	$(QUIET) $(ECHO) "$$WEBCOMPONENTS_BUILD_PACKAGE_CONTENT" >> $@

######
Original line number Diff line number Diff line
#############################################################################################
#############################################################################################
##
## JEKYLL-TARGETS
##
#############################################################################################
#############################################################################################


JEKYLL_VERSION      := snapshot
JEKYLL_BIN          := $(ALVINE_VENDOR_PATH)jekyll-$(JEKYLL_VERSION).phar
JEKYLL_PUBKEY       := $(JEKYLL_BIN).pubkey

$(JEKYLL_PUBKEY):
	$(MKDIR) -p $(ALVINE_VENDOR_PATH)
	$(WGET) -O $(JEKYLL_PUBKEY) http://download.alvine.io/phar/jekyll-$(JEKYLL_VERSION).phar.pubkey

$(JEKYLL_BIN): $(JEKYLL_PUBKEY)
	$(MKDIR) -p $(ALVINE_VENDOR_PATH)
	$(WGET) -O $(JEKYLL_BIN) http://download.alvine.io/phar/jekyll-$(JEKYLL_VERSION).phar
	$(CHMOD) u+x $(JEKYLL_BIN)

.PHONY: run-jekyll
## run jekyll 
run-jekyll: init $(JEKYLL_BIN) $(JEKYLL_PUBKEY) $(TEMP_PATH)jekyll.lock
	$(ECHOMARKER) "Jekyll finished"

.PHONY: run-jekyll-force
## run jekyll (-f) 
run-jekyll-force: init $(JEKYLL_BIN) $(JEKYLL_PUBKEY) 
	$(RM) $(TEMP_PATH)jekyll.lock
	$(MAKE) run-jekyll
	$(ECHOMARKER) "Jekyll finished"

$(TEMP_PATH)jekyll.lock: $(THIS_DIR).jekyll
	$(ECHOMARKER) "Run Jekyll"
	$(JEKYLL_BIN) fetch --force
	$(JEKYLL_BIN) update
	touch $(TEMP_PATH)jekyll.lock
 No newline at end of file
Original line number Diff line number Diff line
@@ -17,10 +17,8 @@ node-build: $(NODE_MODULES_MODIFIED) $(NODE_PACKAGES)
	$(ECHO) "Version: $(PROJECT_VERSION)"
	$(ECHO) "Source Path: $(SOURCE_PATH)"
	$(QUIET) $(JQ) '.version = "$(PROJECT_VERSION)"' $(PACKAGE_JSON) | $(SPONGE) $(PACKAGE_JSON)
	$(QUIET) for p in $(NODE_PACKAGES); do \
			$(JQ) '.version = "$(PROJECT_VERSION)"' $${p} | $(SPONGE) $${p}; \
		done ; \
	$(NPM) --prefix $(NODE_ROOT_DIR) run build  
		
	$(QUIET) for p in $(NODE_PACKAGES); do $(JQ) '.version = "$(PROJECT_VERSION)"' $${p} | $(SPONGE) $${p}; done
	$(QUIET) $(SCRIPTS_PATH)update-version.sh
	$(QUIET) $(NPM) --prefix $(NODE_ROOT_DIR) run --if-present build 
		
	
Original line number Diff line number Diff line
@@ -8,25 +8,28 @@

.PHONY: npm-publish-major
## release major version of package
npm-publish-major: node-test
npm-publish-major:
	$(ECHOMARKER) "release major version"
	$(QUIET) $(MAKE) next-major-version
	$(QUIET) $(MAKE) tag-major-version
	$(QUIET) $(MAKE) node-build
	$(QUIET) $(MAKE) node-test
	$(QUIET) $(NPM) --prefix $(NODE_ROOT_DIR) run publish

.PHONY: npm-publish-minor
## release minor version of package
npm-publish-minor: node-test
npm-publish-minor: 
	$(ECHOMARKER) "release minor version"
	$(QUIET) $(MAKE) next-minor-version
	$(QUIET) $(MAKE) tag-minor-version
	$(QUIET) $(MAKE) node-build
	$(QUIET) $(MAKE) node-test
	$(QUIET) $(NPM) --prefix $(NODE_ROOT_DIR) run publish

.PHONY: npm-publish-patch
## release patch version of package
npm-publish-patch: node-test
npm-publish-patch:
	$(ECHOMARKER) "release patch version"
	$(QUIET) $(MAKE) next-patch-version
	$(QUIET) $(MAKE) tag-patch-version
	$(QUIET) $(MAKE) node-build
	$(QUIET) $(MAKE) node-test
	$(QUIET) $(NPM) --prefix $(NODE_ROOT_DIR) run publish
+29 −0
Original line number Diff line number Diff line
#############################################################################################
#############################################################################################
##
## RUN NPM BUILD, TEST AND DEV TASKS
##
#############################################################################################
#############################################################################################

.PHONY: npm-dev
## run npm dev server
npm-dev:
	$(ECHOMARKER) "start npm dev server" 
	$(QUIET) $(NPM) --prefix $(NODE_ROOT_DIR) run dev

.PHONY: npm-build
## build npm project
npm-build:
	$(ECHOMARKER) "build npm project" 
	$(QUIET) $(NPM) --prefix $(NODE_ROOT_DIR) run build

.PHONY: npm-preview
## preview npm project
npm-preview:
	$(ECHOMARKER) "preview npm project"
	$(QUIET) $(NPM) --prefix $(NODE_ROOT_DIR) run build 
	$(QUIET) $(NPM) --prefix $(NODE_ROOT_DIR) run preview


+67 −0
Original line number Diff line number Diff line
#############################################################################################
#############################################################################################
##
## PHPUNIT
##
#############################################################################################
#############################################################################################

# path and binaries
PARALLEL               ?= parallel

EXECUTABLES = $(EXECUTABLES:-) $(PARALLEL); 

PHPUNIT_PATH            := $(VENDOR_PATH)phpunit/
PHPUNIT_BIN             := $(PHPUNIT_PATH)phpunit
PHPUNIT_SCRIPT_PATH     := $(BUILD_PATH)/script


ifeq ($(shell command -v $(PARALLEL) 2> /dev/null),)
  $(error "parallel is not installed. Please install parallel")
endif

ifneq ($(shell test -d $(PHPUNIT_SCRIPT_PATH) && echo -n yes),yes)
    $(shell mkdir -p $(PHPUNIT_SCRIPT_PATH))
endif

define UNITTEST_SH_SCRIPT
#!/bin/bash

BIN=$$1
BOOTSTRAP=$$2
CONFIG=$$3
TESTFILES=$$4

export DOCOVERAGE=true

groups=$$($${BIN} \
           --list-groups \
           --bootstrap $${BOOTSTRAP} \
           --configuration $${CONFIG} \
           development/tests/ | sed -n -e '/^ - /p' | cut -d"-" -f2 |  tr -d ' ')

parallel \
    $${BIN} \
            --group {} \
            --configuration $${CONFIG} \
            --whitelist application/source/ \
            --bootstrap $${BOOTSTRAP} \
            $${TESTFILES}  ::: $${groups}
endef

export UNITTEST_SH_SCRIPT

$(PHPUNIT_SCRIPT_PATH)/unittests.sh:
	$(QUIET) $(ECHO) "$$UNITTEST_SH_SCRIPT" >> $@
	$(CHMOD) u+x $(PHPUNIT_SCRIPT_PATH)/unittests.sh

$(PHPUNIT_BIN):
	$(MKDIR) -p $(PHPUNIT_PATH)
	$(WGET) -O $(PHPUNIT_BIN) https://phar.phpunit.de/phpunit-9.phar
	$(CHMOD) u+x $(PHPUNIT_BIN)
	$(CHMOD) u+x $(PHPUNIT_SCRIPT_PATH)/unittests.sh

.PHONY: run-phpunit-tests
## run PHPUNIT Tests
run-phpunit-tests: $(PHPUNIT_SCRIPT_PATH)/unittests.sh $(PHPUNIT_BIN)
	$(BUILD_SCRIPTS_PATH)unittests.sh "$(PHPUNIT_BIN)" "$(TEST_PATH)script/bootstrap.inc.php" "$(TEST_PATH)config/phpunit.xml" "$(TEST_PATH)"
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ check-clean-repo:
	$(QUIET) $(GIT) diff-index --quiet HEAD || (echo "There are uncommitted changes after running make. Please commit or stash them before running make."; exit 1)
	
## tag repository with next patch version
tag-patch-version: next-patch-version 
tag-patch-version: $(GIT_CHGLOG_CONFIG_DIR)/config.yml $(GIT_CHGLOG_CONFIG_DIR)/CHANGELOG.tpl.md next-patch-version 
	$(ECHOMARKER)  "Tagging patch version"
	$(eval PROJECT_VERSION := $(shell cat $(RELEASE_FILE) | jq -r .version))
	$(GIT_CHGLOG_BIN) --next-tag v$(PROJECT_VERSION) -o $(CHANGELOG_FILE)
@@ -55,7 +55,7 @@ tag-patch-version: next-patch-version
	$(QUIET) $(GIT) tag -a v$(PROJECT_VERSION) -m "Version $(PROJECT_VERSION)"

## tag repository with next minor version
tag-minor-version: next-minor-version 
tag-minor-version: $(GIT_CHGLOG_CONFIG_DIR)/config.yml $(GIT_CHGLOG_CONFIG_DIR)/CHANGELOG.tpl.md next-minor-version 
	$(ECHOMARKER)  "Tagging minor version"
	$(eval PROJECT_VERSION := $(shell cat $(RELEASE_FILE) | jq -r .version))
	$(GIT_CHGLOG_BIN) --next-tag v$(PROJECT_VERSION) -o $(CHANGELOG_FILE)
@@ -63,7 +63,7 @@ tag-minor-version: next-minor-version
	$(QUIET) $(GIT) tag -a v$(PROJECT_VERSION) -m "Version $(PROJECT_VERSION)"

## tag repository with next major version
tag-major-version: next-major-version 
tag-major-version: $(GIT_CHGLOG_CONFIG_DIR)/config.yml $(GIT_CHGLOG_CONFIG_DIR)/CHANGELOG.tpl.md next-major-version 
	$(ECHOMARKER)  "Tagging major version"
	$(eval PROJECT_VERSION := $(shell cat $(RELEASE_FILE) | jq -r .version))
	$(GIT_CHGLOG_BIN) --next-tag v$(PROJECT_VERSION) -o $(CHANGELOG_FILE)
+1 −1
Original line number Diff line number Diff line
{"version":"1.0.2"}
{"version":"1.0.3"}