Skip to content

Commit 07db1e8

Browse files
committed
tweak configure
1 parent 31dcc0c commit 07db1e8

File tree

5 files changed

+26
-33
lines changed

5 files changed

+26
-33
lines changed

composer.json

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,51 +20,47 @@
2020
}
2121
],
2222
"require": {
23-
"php": "^8.0",
23+
"php": "^8.1",
2424
"filament/filament": "^3.0",
2525
"filament/forms": "^3.0",
2626
"filament/tables": "^3.0",
2727
"spatie/laravel-package-tools": "^1.15.0",
28-
"illuminate/contracts": "^9.0|^10.0"
28+
"illuminate/contracts": "^10.0"
2929
},
3030
"require-dev": {
3131
"laravel/pint": "^1.0",
32-
"nunomaduro/collision": "^6.0|^7.0",
32+
"nunomaduro/collision": "^7.9",
3333
"nunomaduro/larastan": "^2.0.1",
34-
"orchestra/testbench": "^7.0",
34+
"orchestra/testbench": "^8.0",
3535
"pestphp/pest": "^2.0",
36+
"pestphp/pest-plugin-arch": "^2.0",
3637
"pestphp/pest-plugin-laravel": "^2.0",
37-
"pestphp/pest-plugin-livewire": "^2.0",
3838
"phpstan/extension-installer": "^1.1",
3939
"phpstan/phpstan-deprecation-rules": "^1.0",
4040
"phpstan/phpstan-phpunit": "^1.0",
41-
"phpunit/phpunit": "^9.5|^10.0",
4241
"spatie/laravel-ray": "^1.26"
4342
},
4443
"autoload": {
4544
"psr-4": {
46-
"VendorName\\Skeleton\\": "src",
47-
"VendorName\\Skeleton\\Database\\Factories\\": "database/factories"
45+
"VendorName\\Skeleton\\": "src/",
46+
"VendorName\\Skeleton\\Database\\Factories\\": "database/factories/"
4847
}
4948
},
5049
"autoload-dev": {
5150
"psr-4": {
52-
"VendorName\\Skeleton\\Tests\\": "tests"
51+
"VendorName\\Skeleton\\Tests\\": "tests/"
5352
}
5453
},
5554
"scripts": {
56-
"pint": "vendor/bin/pint",
57-
"test:pest": "vendor/bin/pest --parallel",
58-
"test:phpstan": "vendor/bin/phpstan analyse",
59-
"test": [
60-
"@test:pest",
61-
"@test:phpstan"
62-
]
55+
"post-autoload-dump": "@php ./vendor/bin/testbench package:discover --ansi",
56+
"analyse": "vendor/bin/phpstan analyse",
57+
"test": "vendor/bin/pest",
58+
"test-coverage": "vendor/bin/pest --coverage",
59+
"format": "vendor/bin/pint"
6360
},
6461
"config": {
6562
"sort-packages": true,
6663
"allow-plugins": {
67-
"composer/package-versions-deprecated": true,
6864
"pestphp/pest-plugin": true,
6965
"phpstan/extension-installer": true
7066
}

configure.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,7 @@
163163
'nunomaduro/larastan',
164164
]);
165165

166-
remove_composer_script([
167-
'test:phpstan',
168-
'@test:phpstan',
169-
]);
166+
remove_composer_script(['analyse']);
170167
}
171168

172169
if (! $usePint) {
@@ -177,7 +174,7 @@
177174
'laravel/pint',
178175
]);
179176

180-
remove_composer_script(['pint']);
177+
remove_composer_script(['format']);
181178
}
182179

183180
if (! $useUpdateChangelogWorkflow) {

src/Facades/Skeleton.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010
class Skeleton extends Facade
1111
{
12-
protected static function getFacadeAccessor(): string
12+
protected static function getFacadeAccessor()
1313
{
1414
return \VendorName\Skeleton\Skeleton::class;
1515
}

src/SkeletonServiceProvider.php

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ class SkeletonServiceProvider extends PackageServiceProvider
2525

2626
public function configurePackage(Package $package): void
2727
{
28+
/*
29+
* This class is a Package Service Provider
30+
*
31+
* More info: https://github.com/spatie/laravel-package-tools
32+
*/
2833
$package->name(static::$name)
2934
->hasCommands($this->getCommands())
3035
->hasInstallCommand(function (InstallCommand $command) {
@@ -54,16 +59,6 @@ public function configurePackage(Package $package): void
5459
}
5560
}
5661

57-
public function register(): void
58-
{
59-
parent::register();
60-
61-
// Facade Registration
62-
app()->bind('skeleton', function (): Skeleton {
63-
return new Skeleton();
64-
});
65-
}
66-
6762
public function boot(): void
6863
{
6964
parent::boot();

tests/ArchTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
it('will not use debugging functions')
4+
->expect(['dd', 'dump', 'ray'])
5+
->each->not->toBeUsed();

0 commit comments

Comments
 (0)