Compare commits

...

3 Commits

Author SHA1 Message Date
Krzysztof Sikorski 4588287651
Add Make target to lint all `composer.json` files 2024-02-12 00:19:06 +01:00
Krzysztof Sikorski c58cd31515
Set explicit versions for `core` and `storage` modules
This is done because Composer fails at detecting version from Git tag
when dependency comes from the same Git repository.
2024-02-12 00:13:44 +01:00
Krzysztof Sikorski e9f6ce0b57
Remove unnecessary prefix in comments 2024-02-11 23:56:44 +01:00
5 changed files with 19 additions and 10 deletions

View File

@ -22,17 +22,24 @@ git_push_tags:
.PHONY: clean_all
clean_all: website_clean_all
# tools: lint all files against EditorConfig settings
# lint all `composer.json` files
.PHONY: lint_composer_config
lint_composer_config:
composer --strict --no-check-version --working-dir=modules/core validate
composer --strict --no-check-version --working-dir=modules/storage validate
composer --strict --no-check-version --working-dir=website validate
# lint all files against EditorConfig settings
.PHONY: lint_editorconfig
lint_editorconfig:
docker container run --rm --user=$$UID --volume=$$PWD:/check mstruebing/editorconfig-checker:2.7.2
# tools: lint PHP coding style across all directories
# lint PHP coding style across all directories
.PHONY: lint_coding_style
lint_coding_style:
docker container run --rm --user=$$UID --volume=$$PWD:/code ghcr.io/php-cs-fixer/php-cs-fixer:3.49-php8.3 check -vvv
# tools: fix PHP coding style across all directories
# fix PHP coding style across all directories
.PHONY: fix_coding_style
fix_coding_style:
docker container run --rm --user=$$UID --volume=$$PWD:/code ghcr.io/php-cs-fixer/php-cs-fixer:3.49-php8.3 fix -vvv

View File

@ -1,6 +1,7 @@
{
"name": "quintolin/core",
"description": "Core engine for Quintolin PBBG",
"version": "0.0.1-dev",
"type": "library",
"keywords": [
"game",

View File

@ -1,6 +1,7 @@
{
"name": "quintolin/storage",
"description": "Storage module for Quintolin PBBG",
"version": "0.0.1-dev",
"type": "library",
"keywords": [
"game",

View File

@ -23,8 +23,8 @@
"php": "^8.3",
"ext-ctype": "*",
"ext-iconv": "*",
"quintolin/core": "@dev",
"quintolin/storage": "@dev",
"quintolin/core": "0.*@dev",
"quintolin/storage": "0.*@dev",
"symfony/asset": "7.0.*",
"symfony/asset-mapper": "7.0.*",
"symfony/cache": "7.0.*",

10
website/composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "978b8e8534ffa2487ca8089c07d22ee0",
"content-hash": "0350047ca22dbad87d58885209eadcae",
"packages": [
{
"name": "composer/semver",
@ -339,11 +339,11 @@
},
{
"name": "quintolin/core",
"version": "dev-main",
"version": "0.0.1-dev",
"dist": {
"type": "path",
"url": "../modules/core",
"reference": "8f043e9fc03e20c41554f3ab23abeca65c704ad0"
"reference": "c780f1c91afedd4863db1c089c0a060aefabca81"
},
"require": {
"php": "^8.3"
@ -379,11 +379,11 @@
},
{
"name": "quintolin/storage",
"version": "dev-main",
"version": "0.0.1-dev",
"dist": {
"type": "path",
"url": "../modules/storage",
"reference": "fafc262bf9977e70948b3d721203b59a7ee07462"
"reference": "bfcfd1cbb40f2e70264df33e869e99ffc0c4210c"
},
"require": {
"php": "^8.3",