Skip to content

Commit 174ee60

Browse files
authored
Merge pull request #6 from wayofdev/feat/updates
2 parents b518317 + dcab585 commit 174ee60

File tree

18 files changed

+431
-254
lines changed

18 files changed

+431
-254
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
uses: shivammathur/setup-php@v2
2727
with:
2828
php-version: ${{ matrix.php }}
29-
extensions: curl, mbstring, zip, fileinfo
29+
extensions: curl, mbstring, zip, fileinfo, decimal
3030
ini-values: error_reporting=E_ALL
3131
tools: composer:v2
3232
coverage: none

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ else
2929
WHITE := ""
3030
RST := ""
3131
endif
32-
MAKE_LOGFILE = /tmp/wayofdev-laravel-package-tpl.log
32+
MAKE_LOGFILE = /tmp/wayofdev-laravel-cycle-event-sourcing.log
3333
MAKE_CMD_COLOR := $(BLUE)
3434

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

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

7878
stan: ## Runs phpstan – static analysis tool
7979
$(COMPOSER_RUN) stan
8080
.PHONY: stan
8181

8282
stan-ci:
83-
$(COMPOSER_RUN) stan-ci
83+
$(COMPOSER_RUN) stan:ci
8484
.PHONY: stan-ci
8585

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

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

9494
# Yaml Actions

composer.json

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "wayofdev/laravel-package-tpl",
3-
"description": "PHP package template with GitHub Actions",
2+
"name": "wayofdev/cycle-event-sourcing",
3+
"description": "Package that provides Cycle ORM integration with EventSauce in Laravel.",
44
"type": "library",
55
"license": "MIT",
66
"homepage": "https://wayof.dev",
@@ -16,43 +16,45 @@
1616
],
1717
"require": {
1818
"php": "^8.1",
19-
"illuminate/contracts": "^10.7.1",
20-
"spatie/laravel-package-tools": "^1.14.2",
21-
"nunomaduro/collision": "^7.4.0"
19+
"ext-decimal": "*",
20+
"ext-json": "*",
21+
"beberlei/assert": "^3.3",
22+
"eventsauce/eventsauce": "^3.4",
23+
"illuminate/contracts": "^10.12",
24+
"nunomaduro/collision": "^7.4"
2225
},
2326
"require-dev": {
24-
"ergebnis/composer-normalize": "^2.30.2",
25-
"nunomaduro/larastan": "^2.5.1",
26-
"orchestra/testbench": "^8.3.1",
27-
"pestphp/pest": "^2.4.0",
28-
"pestphp/pest-plugin-laravel": "^2.0.0",
29-
"phpstan/extension-installer": "^1.2.0",
30-
"phpstan/phpstan": "^1.10.11",
31-
"phpstan/phpstan-deprecation-rules": "^1.1.3",
32-
"phpstan/phpstan-phpunit": "^1.3.11",
33-
"phpstan/phpstan-strict-rules": "^1.5.1",
34-
"phpunit/phpunit": "^10.0.19",
27+
"ergebnis/composer-normalize": "^2.31",
28+
"nunomaduro/larastan": "^2.6",
29+
"orchestra/testbench": "^8.3",
30+
"pestphp/pest": "^2.4",
31+
"pestphp/pest-plugin-laravel": "^2.0",
32+
"phpstan/extension-installer": "^1.3",
33+
"phpstan/phpstan": "^1.10",
34+
"phpstan/phpstan-deprecation-rules": "^1.1",
35+
"phpstan/phpstan-phpunit": "^1.3",
36+
"phpstan/phpstan-strict-rules": "^1.5",
37+
"phpunit/phpunit": "^10.1",
3538
"roave/security-advisories": "dev-latest",
36-
"wayofdev/cs-fixer-config": "^1.1.11"
39+
"wayofdev/cs-fixer-config": "^1.2"
3740
},
3841
"autoload": {
3942
"psr-4": {
40-
"WayOfDev\\Laravel\\Package\\": "src/",
41-
"WayOfDev\\Laravel\\Package\\Database\\Factories\\": "database/factories"
43+
"WayOfDev\\EventSourcing\\": "src/"
4244
}
4345
},
4446
"autoload-dev": {
4547
"psr-4": {
46-
"WayOfDev\\Laravel\\Package\\Tests\\": "tests/"
48+
"WayOfDev\\EventSourcing\\Tests\\": "tests/"
4749
}
4850
},
4951
"scripts": {
50-
"cs-fix": "php vendor/bin/php-cs-fixer fix -v",
51-
"cs-diff": "php vendor/bin/php-cs-fixer fix --dry-run -v --diff",
52+
"cs:fix": "php vendor/bin/php-cs-fixer fix -v",
53+
"cs:diff": "php vendor/bin/php-cs-fixer fix --dry-run -v --diff",
5254
"test": "php vendor/bin/pest",
53-
"test-cc": "php vendor/bin/pest --coverage",
55+
"test:cc": "php vendor/bin/pest --coverage",
5456
"stan": "php vendor/bin/phpstan analyse",
55-
"stan-ci": "php vendor/bin/phpstan analyse --error-format=github"
57+
"stan:ci": "php vendor/bin/phpstan analyse --error-format=github"
5658
},
5759
"config": {
5860
"sort-packages": true,
@@ -65,11 +67,8 @@
6567
"extra": {
6668
"laravel": {
6769
"providers": [
68-
"WayOfDev\\Laravel\\Package\\PackageServiceProvider"
69-
],
70-
"aliases": {
71-
"Package": "WayOfDev\\Laravel\\Package\\Facades\\Package"
72-
}
70+
"WayOfDev\\EventSourcing\\Bridge\\Laravel\\Providers\\EventSourcingServiceProvider"
71+
]
7372
},
7473
"composer-normalize": {
7574
"indent-size": 4,

0 commit comments

Comments
 (0)