Skip to content

Commit

Permalink
feat: add aggregatable traits
Browse files Browse the repository at this point in the history
  • Loading branch information
lotyp committed May 25, 2023
1 parent 3e20d21 commit 01288b7
Show file tree
Hide file tree
Showing 16 changed files with 430 additions and 252 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ else
WHITE := ""
RST := ""
endif
MAKE_LOGFILE = /tmp/wayofdev-laravel-package-tpl.log
MAKE_LOGFILE = /tmp/wayofdev-laravel-cycle-event-sourcing.log
MAKE_CMD_COLOR := $(BLUE)

# https://phpstan.org/user-guide/output-format
Expand All @@ -43,7 +43,7 @@ help:
@echo
@echo ' 📑 Logs are stored in $(MAKE_LOGFILE)'
@echo
@echo ' 📦 Package laravel-package-tpl (github.com/wayofdev/laravel-package-tpl)'
@echo ' 📦 Package laravel-cycle-event-sourcing (github.com/wayofdev/laravel-cycle-event-sourcing)'
@echo ' 🤠 Author Andrij Orlenko (github.com/lotyp)'
@echo ' 🏢 ${YELLOW}Org wayofdev (github.com/wayofdev)${RST}'
.PHONY: help
Expand All @@ -68,27 +68,27 @@ update: ## Updates composer dependencies by running composer update command
# Testing
# ------------------------------------------------------------------------------------
cs-diff: prepare ## Runs php-cs-fixer in dry-run mode and shows diff which will by applied
$(COMPOSER_RUN) cs-diff
$(COMPOSER_RUN) cs:diff
.PHONY: cs-diff

cs-fix: prepare ## Fixes code to follow coding standards using php-cs-fixer
$(COMPOSER_RUN) cs-fix
$(COMPOSER_RUN) cs:fix
.PHONY: cs-fix

stan: ## Runs phpstan – static analysis tool
$(COMPOSER_RUN) stan
.PHONY: stan

stan-ci:
$(COMPOSER_RUN) stan-ci
$(COMPOSER_RUN) stan:ci
.PHONY: stan-ci

test: ## Run project php-unit and pest tests
XDEBUG_MODE=coverage $(COMPOSER_RUN) test
.PHONY: test

test-cc: ## Run project php-unit and pest tests in coverage mode and build report
$(COMPOSER_RUN) test-cc
$(COMPOSER_RUN) test:cc
.PHONY: test-cc

# Yaml Actions
Expand Down
57 changes: 28 additions & 29 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wayofdev/laravel-package-tpl",
"description": "PHP package template with GitHub Actions",
"name": "wayofdev/cycle-event-sourcing",
"description": "Package that provides Cycle ORM integration with EventSauce in Laravel.",
"type": "library",
"license": "MIT",
"homepage": "https://wayof.dev",
Expand All @@ -16,43 +16,45 @@
],
"require": {
"php": "^8.1",
"illuminate/contracts": "^10.7.1",
"spatie/laravel-package-tools": "^1.14.2",
"nunomaduro/collision": "^7.4.0"
"ext-decimal": "*",
"ext-json": "*",
"beberlei/assert": "^3.3",
"eventsauce/eventsauce": "^3.4",
"illuminate/contracts": "^10.12",
"nunomaduro/collision": "^7.4"
},
"require-dev": {
"ergebnis/composer-normalize": "^2.30.2",
"nunomaduro/larastan": "^2.5.1",
"orchestra/testbench": "^8.3.1",
"pestphp/pest": "^2.4.0",
"pestphp/pest-plugin-laravel": "^2.0.0",
"phpstan/extension-installer": "^1.2.0",
"phpstan/phpstan": "^1.10.11",
"phpstan/phpstan-deprecation-rules": "^1.1.3",
"phpstan/phpstan-phpunit": "^1.3.11",
"phpstan/phpstan-strict-rules": "^1.5.1",
"phpunit/phpunit": "^10.0.19",
"ergebnis/composer-normalize": "^2.31",
"nunomaduro/larastan": "^2.6",
"orchestra/testbench": "^8.3",
"pestphp/pest": "^2.4",
"pestphp/pest-plugin-laravel": "^2.0",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-deprecation-rules": "^1.1",
"phpstan/phpstan-phpunit": "^1.3",
"phpstan/phpstan-strict-rules": "^1.5",
"phpunit/phpunit": "^10.1",
"roave/security-advisories": "dev-latest",
"wayofdev/cs-fixer-config": "^1.1.11"
"wayofdev/cs-fixer-config": "^1.2"
},
"autoload": {
"psr-4": {
"WayOfDev\\Laravel\\Package\\": "src/",
"WayOfDev\\Laravel\\Package\\Database\\Factories\\": "database/factories"
"WayOfDev\\EventSourcing\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"WayOfDev\\Laravel\\Package\\Tests\\": "tests/"
"WayOfDev\\EventSourcing\\Tests\\": "tests/"
}
},
"scripts": {
"cs-fix": "php vendor/bin/php-cs-fixer fix -v",
"cs-diff": "php vendor/bin/php-cs-fixer fix --dry-run -v --diff",
"cs:fix": "php vendor/bin/php-cs-fixer fix -v",
"cs:diff": "php vendor/bin/php-cs-fixer fix --dry-run -v --diff",
"test": "php vendor/bin/pest",
"test-cc": "php vendor/bin/pest --coverage",
"test:cc": "php vendor/bin/pest --coverage",
"stan": "php vendor/bin/phpstan analyse",
"stan-ci": "php vendor/bin/phpstan analyse --error-format=github"
"stan:ci": "php vendor/bin/phpstan analyse --error-format=github"
},
"config": {
"sort-packages": true,
Expand All @@ -65,11 +67,8 @@
"extra": {
"laravel": {
"providers": [
"WayOfDev\\Laravel\\Package\\PackageServiceProvider"
],
"aliases": {
"Package": "WayOfDev\\Laravel\\Package\\Facades\\Package"
}
"WayOfDev\\EventSourcing\\Bridge\\Laravel\\Providers\\EventSourcingServiceProvider"
]
},
"composer-normalize": {
"indent-size": 4,
Expand Down
Loading

0 comments on commit 01288b7

Please sign in to comment.