-
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
2,680 additions
and
319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,7 @@ | |
/build/ | ||
/.php-cs-fixer.cache | ||
/.phpunit.result.cache | ||
/var/ | ||
|
||
# Castor | ||
.castor.stub.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the JoliNotif project. | ||
* | ||
* (c) Loïck Piera <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
use Castor\Attribute\AsRawTokens; | ||
use Castor\Attribute\AsTask; | ||
|
||
use function Castor\import; | ||
use function Castor\mount; | ||
use function Castor\run; | ||
|
||
import(__DIR__ . '/tools/php-cs-fixer/castor.php'); | ||
import(__DIR__ . '/tools/phpstan/castor.php'); | ||
|
||
mount(__DIR__ . '/tools/phar'); | ||
|
||
#[AsTask(description: 'Install dependencies')] | ||
function install(): void | ||
{ | ||
run(['composer', 'install'], workingDirectory: __DIR__); | ||
qa\cs\install(); | ||
qa\phpstan\install(); | ||
} | ||
|
||
#[AsTask(description: 'Run PHPUnit', ignoreValidationErrors: true)] | ||
function phpunit(#[AsRawTokens] array $rawTokens): void | ||
{ | ||
run(['vendor/bin/simple-phpunit', ...$rawTokens]); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
includes: | ||
#- phpstan-baseline.neon | ||
|
||
parameters: | ||
level: 9 | ||
paths: | ||
- src | ||
tmpDir: 'var/phpstan/tmp' | ||
inferPrivatePropertyTypeFromConstructor: true | ||
checkGenericClassInNonGenericObjectType: false | ||
excludePaths: | ||
analyse: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,31 @@ | ||
{ | ||
"base-path": "../../", | ||
"directories": [ | ||
"bin", | ||
"src" | ||
], | ||
"files": [ | ||
"LICENSE", | ||
"vendor/autoload.php" | ||
], | ||
"finder": [ | ||
{ | ||
"name": "*.php", | ||
"in": "vendor/composer" | ||
}, | ||
{ | ||
"name": "*.php", | ||
"exclude": ["Tests"], | ||
"in": "vendor/symfony/process" | ||
} | ||
], | ||
"git-version": "package_version", | ||
"main": "jolinotif", | ||
"output": "tools/phar/build/jolinotif.phar" | ||
"base-path": "../../", | ||
"directories": [ | ||
"bin", | ||
"src" | ||
], | ||
"files": [ | ||
"LICENSE", | ||
"vendor/autoload.php" | ||
], | ||
"finder": [ | ||
{ | ||
"name": "*.php", | ||
"in": "vendor/composer" | ||
}, | ||
{ | ||
"name": "*.php", | ||
"exclude": ["Tests"], | ||
"in": "vendor/symfony/process" | ||
} | ||
], | ||
"compactors": [ | ||
"KevinGH\\Box\\Compactor\\Php" | ||
], | ||
"annotations": false, | ||
"compression": "GZ", | ||
"check-requirements": false, | ||
"git-version": "package_version", | ||
"main": "jolinotif", | ||
"output": "tools/phar/build/jolinotif.phar" | ||
} |
Oops, something went wrong.