Skip to content

Commit

Permalink
ZMS-1901: referenced local libraries in ticketprinter
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasholler committed Jan 24, 2024
1 parent 18f7325 commit c60d337
Show file tree
Hide file tree
Showing 3 changed files with 767 additions and 343 deletions.
10 changes: 6 additions & 4 deletions cli
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ modules = [
"zmsmessaging",
"zmsslim",
"zmsstatistic",
"zmsticketprinter",
]


Expand All @@ -54,15 +55,15 @@ def cli_modules_reference_libraries(no_symlink: bool):
with open(composer_file_path, "r") as f:
composer_content = json.load(f)

composer_content["repositories"] = [
{
composer_content["repositories"] = composer_content.get("repositories", [])
if len(list(filter(lambda x: x.get("url") == "../*", composer_content["repositories"]))) == 0:
composer_content["repositories"].append({
"type": "path",
"url": "../*",
"options": {
"symlink": not no_symlink
}
}
]
})

require = composer_content.get("require", [])
for dependency_key in require:
Expand All @@ -75,6 +76,7 @@ def cli_modules_reference_libraries(no_symlink: bool):

with open(composer_file_path, "w") as f:
json.dump(composer_content, f, indent=4)
f.write("\n")

for module in module_dependencies:
module_dir = os.path.join(repo_dir, module)
Expand Down
115 changes: 61 additions & 54 deletions zmsticketprinter/composer.json
Original file line number Diff line number Diff line change
@@ -1,57 +1,64 @@
{
"name": "bo/zmsticketprinter",
"description": "Frontend for ticketprinter",
"license": "EUPL-1.2",
"authors": [
{
"name": "Torsten Kunst",
"email": "[email protected]"
"name": "bo/zmsticketprinter",
"description": "Frontend for ticketprinter",
"license": "EUPL-1.2",
"authors": [
{
"name": "Torsten Kunst",
"email": "[email protected]"
},
{
"name": "Philipp G\u00e4bler",
"email": "[email protected]"
}
],
"scripts": {
"command": "bin/configure"
},
{
"name": "Philipp Gäbler",
"email": "[email protected]"
}
],
"scripts": {
"command": "bin/configure"
},
"config": {
"platform": {
"php": "7.3"
},
"allow-plugins": {
"php-http/discovery": true
}
},
"require-dev": {
"phpmd/phpmd": "@stable",
"squizlabs/php_codesniffer": "*",
"phpunit/phpunit": "^9.5.4",
"helmich/phpunit-psr7-assert": "^4.3.0",
"phpspec/prophecy-phpunit": "^2.0.0"
},
"require": {
"eappointment/mellon": "^2.6.0",
"eappointment/zmsentities": "2.26.02",
"eappointment/zmsslim": "2.26.02",
"eappointment/zmsclient": "2.26.02",
"ext-json": ">=1.0",
"monolog/monolog": "1.*",
"roave/security-advisories": "dev-master",
"twig/twig": "3.*",
"twig/intl-extra": "^3.4"
},
"bin": [],
"autoload": {
"psr-4": {
"BO\\Zmsticketprinter\\": "src/Zmsticketprinter/",
"BO\\Zmsticketprinter\\Tests\\": "tests/Zmsticketprinter/"
}
},
"repositories": [
{
"type": "vcs",
"url": "https://gitlab+deploy-token-203:[email protected]/land-intranet/slim-psr7.git"
}
]
"config": {
"platform": {
"php": "7.3"
},
"allow-plugins": {
"php-http/discovery": true
}
},
"require-dev": {
"phpmd/phpmd": "@stable",
"squizlabs/php_codesniffer": "*",
"phpunit/phpunit": "^9.5.4",
"helmich/phpunit-psr7-assert": "^4.3.0",
"phpspec/prophecy-phpunit": "^2.0.0"
},
"require": {
"eappointment/mellon": "@dev",
"eappointment/zmsentities": "@dev",
"eappointment/zmsslim": "@dev",
"eappointment/zmsclient": "@dev",
"ext-json": ">=1.0",
"monolog/monolog": "1.*",
"roave/security-advisories": "dev-master",
"twig/twig": "3.*",
"twig/intl-extra": "^3.4"
},
"bin": [],
"autoload": {
"psr-4": {
"BO\\Zmsticketprinter\\": "src/Zmsticketprinter/",
"BO\\Zmsticketprinter\\Tests\\": "tests/Zmsticketprinter/"
}
},
"repositories": [
{
"type": "vcs",
"url": "https://gitlab+deploy-token-203:[email protected]/land-intranet/slim-psr7.git"
},
{
"type": "path",
"url": "../*",
"options": {
"symlink": true
}
}
]
}
Loading

0 comments on commit c60d337

Please sign in to comment.