Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintenance #25

Merged
merged 3 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# editorconfig.org

root = true

[*]
Expand All @@ -9,3 +7,15 @@ insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.{yml, yaml, sh, conf, neon*}]
indent_size = 2

[*.http]
end_of_line = crlf

[*.md]
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
16 changes: 16 additions & 0 deletions .github/workflows/cs-fix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---

on: # yamllint disable-line rule:truthy
push:
branches:
- '*'

name: Fix Code Style

jobs:
cs-fix:
permissions:
contents: write
uses: spiral/gh-actions/.github/workflows/cs-fix.yml@master

...
13 changes: 13 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

declare(strict_types=1);

require_once 'vendor/autoload.php';

return \Spiral\CodeStyle\Builder::create()
->include(__DIR__ . '/src')
->include(__DIR__ . '/tests')
->include(__FILE__)
->cache('./runtime/php-cs-fixer.cache')
->allowRisky()
->build();
73 changes: 0 additions & 73 deletions .styleci.yml

This file was deleted.

138 changes: 73 additions & 65 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,67 +1,75 @@
{
"name": "spiral-packages/scheduler",
"description": "The scheduler is a package for spiral framework. It will help to managing scheduled tasks on your server.",
"keywords": [
"spiral-packages",
"spiral",
"scheduler"
],
"homepage": "https://github.com/spiral-packages/scheduler",
"license": "MIT",
"authors": [
{
"name": "butschster",
"email": "[email protected]",
"role": "PHP web developer"
}
],
"require": {
"php": ">=8.1",
"butschster/cron-expression-generator": "^1.10",
"nesbot/carbon": "^2.52 || ^3.0",
"psr/event-dispatcher": "^1",
"spiral/core": "^3.14",
"spiral/boot": "^3.14",
"spiral/cache": "^3.14",
"spiral/queue": "^3.14",
"spiral/snapshots": "^3.14",
"spiral/attributes": "^2.8 || ^3.0",
"symfony/process": "^6.0 || ^7.0"
},
"require-dev": {
"spiral/dumper": "^3.3",
"spiral/framework": "^3.14",
"spiral/testing": "^2.8.2",
"vimeo/psalm": "^4.9 || ^5.26"
},
"autoload": {
"psr-4": {
"Spiral\\Scheduler\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Spiral\\Scheduler\\Tests\\App\\": "tests/app",
"Spiral\\Scheduler\\Tests\\": "tests/src"
}
},
"scripts": {
"test": "vendor/bin/phpunit",
"psalm": "vendor/bin/psalm"
},
"config": {
"sort-packages": true,
"allow-plugins": {
"spiral/composer-publish-plugin": true
}
},
"extra": {
"spiral": {
"bootloaders": [
"Spiral\\Scheduler\\Bootloader\\SchedulerBootloader"
]
}
},
"minimum-stability": "dev",
"prefer-stable": true
"name": "spiral-packages/scheduler",
"description": "The scheduler is a package for spiral framework. It will help to managing scheduled tasks on your server.",
"keywords": [
"spiral-packages",
"spiral",
"scheduler"
],
"homepage": "https://github.com/spiral-packages/scheduler",
"license": "MIT",
"authors": [
{
"name": "butschster",
"email": "[email protected]",
"role": "PHP web developer"
},
{
"name": "roxblnfk",
"email": "[email protected]"
}
],
"require": {
"php": ">=8.1",
"butschster/cron-expression-generator": "^1.10",
"nesbot/carbon": "^2.52 || ^3.0",
"psr/event-dispatcher": "^1",
"spiral/core": "^3.14",
"spiral/boot": "^3.14",
"spiral/cache": "^3.14",
"spiral/queue": "^3.14",
"spiral/snapshots": "^3.14",
"spiral/attributes": "^2.8 || ^3.0",
"symfony/process": "^6.0 || ^7.0"
},
"require-dev": {
"spiral/code-style": "^2.2",
"spiral/dumper": "^3.3",
"spiral/framework": "^3.14",
"spiral/testing": "^2.8.3",
"vimeo/psalm": "^4.9 || ^5.26"
},
"autoload": {
"psr-4": {
"Spiral\\Scheduler\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Spiral\\Scheduler\\Tests\\App\\": "tests/app",
"Spiral\\Scheduler\\Tests\\": "tests/src"
}
},
"scripts": {
"cs:diff": "php-cs-fixer fix --dry-run -v --diff",
"cs:fix": "php-cs-fixer fix -v",
"psalm": "psalm",
"psalm:baseline": "psalm --set-baseline=psalm-baseline.xml",
"test": "phpunit --color=always"
},
"config": {
"sort-packages": true,
"allow-plugins": {
"spiral/composer-publish-plugin": true
}
},
"extra": {
"spiral": {
"bootloaders": [
"Spiral\\Scheduler\\Bootloader\\SchedulerBootloader"
]
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
Loading
Loading