Skip to content

Commit

Permalink
Added Laravel Pint, removed old fix-style command
Browse files Browse the repository at this point in the history
  • Loading branch information
voidgraphics committed Jun 23, 2022
1 parent fe1f787 commit 3dc5428
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 54 deletions.
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@
}
],
"require": {
"php": "^7.3|^8.0",
"php": "^8.0",
"barryvdh/laravel-debugbar": "^3.6",
"laravel/pint": "^0.1.0",
"laravel/ui": "^3.0",
"pestphp/pest-plugin-laravel": "^1.2.0",
"whitecube/bem-components": "^1.1",
"whitecube/laravel-sluggable": "^1.6",
"barryvdh/laravel-debugbar": "^3.6",
"pestphp/pest-plugin-laravel": "^1.2.0"
"whitecube/laravel-sluggable": "^1.6"
},
"require-dev": {
"jubeki/laravel-code-style": "^1.0",
Expand Down
5 changes: 2 additions & 3 deletions src/Codestyle.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ class Codestyle
public static function install(UiCommand $command)
{
$command->info('Installing code style fixer...');
$command->call('vendor:publish', [
'--provider' => 'MattAllan\LaravelCodeStyle\ServiceProvider'
]);

copy(__DIR__.'/stubs/pint.json', base_path('pint.json'));
}

}
6 changes: 6 additions & 0 deletions src/ComposerEnv.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,11 @@ public static function addComposerScripts()
'scripts.pre-update-cmd',
'App\\Console\\Commands\\ComposerEnv::loadLocalRepositories'
]);

$composer->run([
'config',
'scripts.fix-style',
'./vendor/bin/pint --preset laravel'
]);
}
}
44 changes: 0 additions & 44 deletions src/Console/FixStyleCommand.php

This file was deleted.

3 changes: 0 additions & 3 deletions src/WhitecubeServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,5 @@ public function boot()
*/
public function register()
{
$this->commands([
FixStyleCommand::class
]);
}
}
3 changes: 3 additions & 0 deletions src/stubs/pint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"preset": "laravel"
}

0 comments on commit 3dc5428

Please sign in to comment.