Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 16ef8e6

Browse files
committedJul 10, 2024·
Refactored file paths to use the stubs directory instead of resources directory for configuration and CSS files. Updated package name to tailwindcss in the TailwindCssServiceProvider.
1 parent d160cbb commit 16ef8e6

5 files changed

+4
-9
lines changed
 

‎src/Commands/TailwindCssCommand.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function handle(): int
5454
*/
5555
protected function publishConfig(string $configFileName, bool $force): void
5656
{
57-
$stubPath = __DIR__."/../../resources/$configFileName.stub";
57+
$stubPath = __DIR__."/../../stubs/$configFileName.stub";
5858
$destinationPath = base_path($configFileName);
5959

6060
if (File::exists($destinationPath)) {
@@ -78,7 +78,7 @@ protected function publishConfig(string $configFileName, bool $force): void
7878
*/
7979
protected function publishAppCss(bool $force): void
8080
{
81-
$stubPath = __DIR__.'/../../resources/css/app.css.stub';
81+
$stubPath = __DIR__ . '/../../stubs/css/app.css.stub';
8282
$destinationPath = resource_path('css/app.css');
8383

8484
if (! File::exists(dirname($destinationPath))) {

‎src/TailwindCssServiceProvider.php

+1-6
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,8 @@ class TailwindCssServiceProvider extends PackageServiceProvider
1010
{
1111
public function configurePackage(Package $package): void
1212
{
13-
/*
14-
* This class is a Package Service Provider
15-
*
16-
* More info: https://github.com/spatie/laravel-package-tools
17-
*/
1813
$package
19-
->name('laravel-tailwindcss')
14+
->name('tailwindcss')
2015
->hasCommand(TailwindCssCommand::class);
2116
}
2217
}
File renamed without changes.
File renamed without changes.

‎resources/tailwind.config.js.stub ‎stubs/tailwind.config.js.stub

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import typography from '@tailwindcss/typography';
66
export default {
77
content: [
88
'./resources/**/*.{js,vue,blade.php}',
9-
'./vendor/fuelviews/**/resources/**/*.{js,vue,blade.php}',
9+
'./vendor/fuelviews/laravel-*/resources/**/*.{js,vue,blade.php}',
1010
],
1111
theme: {
1212
extend: {

0 commit comments

Comments
 (0)
Please sign in to comment.