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

Update from upstream repo laravel-frontend-presets/tailwindcss #1

Open
wants to merge 148 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
148 commits
Select commit Hold shift + click to select a range
1440903
Update the preset to use laravel-mix-tailwind (#28)
michaeldyrynda May 9, 2018
76bd095
use teal as default colour
michaeldyrynda Aug 9, 2018
922d445
rather than duplicating (and maintaining) default config, include fro…
michaeldyrynda Aug 9, 2018
305ba36
update colours in default templates
michaeldyrynda Aug 9, 2018
f301c7c
update readme
michaeldyrynda Aug 9, 2018
08d9654
update screenshots
michaeldyrynda Aug 9, 2018
5ef3b0c
update styles in password reset views
michaeldyrynda Aug 9, 2018
354dcfb
Merge pull request #32 from laravel-frontend-presets/chore/better-def…
michaeldyrynda Aug 9, 2018
130edeb
Change asset() to mix() in app.blade.php
randyrankin Aug 16, 2018
4e421a6
Accept L5.7 Flatten Resourses without breaking backwards compatibility
vicgonvt Sep 2, 2018
e6911e0
Merge branch 'vicgonvt-master' into chore/laravel-5.7-support
michaeldyrynda Sep 7, 2018
a37a1d6
assume flattened resource structure for a fresh 5.7 app
michaeldyrynda Sep 7, 2018
36621f3
change message when installing; running npm run dev twice errors
michaeldyrynda Sep 7, 2018
4cba5f6
use translation strings in default template
michaeldyrynda Sep 7, 2018
c60691f
remove X-UA-Compatible per laravel/framework#25442
michaeldyrynda Sep 7, 2018
fa1a376
add Nova link to default welcome.blade.php
michaeldyrynda Sep 7, 2018
060cfb3
use single quotes, change let to const
michaeldyrynda Sep 7, 2018
0706aee
remove webpack57.mix.js
michaeldyrynda Sep 7, 2018
7bcf37f
add verify template
michaeldyrynda Sep 7, 2018
745de29
update readme
michaeldyrynda Sep 7, 2018
7a0d0f4
Merge pull request #37 from laravel-frontend-presets/chore/laravel-5.…
michaeldyrynda Sep 7, 2018
20c2b64
Update Tailwind version
intrepidws Oct 1, 2018
709e4ab
Merge pull request #40 from intrepidws/patch-2
michaeldyrynda Oct 10, 2018
5e4ca51
Use mix() instead of asset() for css on welcome page
epalmans Jan 21, 2019
5b945ae
Merge pull request #42 from epalmans/master
michaeldyrynda Jan 23, 2019
01760fc
bumps laravel-mix to 4 and laravel-mix-purgecss to 4.1
wgmv Feb 8, 2019
0d8f718
Changed background color
rbcunhadesign Feb 14, 2019
ecd4949
Changed url function to route function on login and register links
rbcunhadesign Feb 14, 2019
ad8fc4b
New layout and theme
rbcunhadesign Feb 14, 2019
09e2efa
Fixed background color
rbcunhadesign Feb 14, 2019
92d19c1
Centered container
rbcunhadesign Feb 14, 2019
95fdf36
Updated screenshots
rbcunhadesign Feb 14, 2019
8d32a54
Merge pull request #44 from rbcunhadesign/master
michaeldyrynda Feb 16, 2019
a89b5b1
Merge pull request #43 from wgmv/laravel-mix-4
michaeldyrynda Feb 16, 2019
6daff3e
Add dependencies to preset that would otherwise be installed by npm
michaeldyrynda Feb 16, 2019
5c16591
check for register route
BostjanOb Mar 2, 2019
c2c1cb6
Merge pull request #46 from BostjanOb/master
michaeldyrynda Mar 4, 2019
b2e7447
Add tailwind-stub to replace Example Vue Component
rverrips Mar 16, 2019
8a19602
update README & adjust for tailwindcss v1 & update welcome.blade.php
rverrips Mar 22, 2019
337ab54
finetune welcome.blade.php
rverrips Mar 22, 2019
b4d3434
update layout/app login and regiser views for tailwind v1
rverrips Mar 22, 2019
9867a47
update home to tailwind v1
rverrips Mar 22, 2019
df3394d
update password/email and password/reset to tailwind v1
rverrips Mar 22, 2019
a15fae7
fix typo
rverrips Mar 22, 2019
2c85d59
Update example Vue Component for Tailwind v1
rverrips Mar 22, 2019
1636614
update verify view to tailwind v1
rverrips Mar 22, 2019
f8a3581
add the config file overried to make laravel-mix-tailwind work with t…
rverrips Mar 22, 2019
a510ace
fix small type of ml-auto vs mx-auto in verifier
rverrips Mar 22, 2019
1774d82
remove doubled up font-bold - thanks to @imliam
rverrips Mar 24, 2019
3df5003
update tailwindcss version to 1.0.0-beta.4
rverrips Apr 4, 2019
17e54a8
remove shadow-inner
michaeldyrynda Apr 5, 2019
0101cd7
--amend
michaeldyrynda Apr 5, 2019
1ab749d
update screenshots
michaeldyrynda Apr 5, 2019
c7f2ae2
update link class on reset view
michaeldyrynda Apr 5, 2019
fb51206
use next instead of explicit beta version
michaeldyrynda Apr 5, 2019
5cb8f1e
Merge pull request #48 from rverrips/master
michaeldyrynda Apr 5, 2019
307c123
Remove extra closing div tag
imliam Apr 7, 2019
9547701
Merge pull request #49 from imliam/patch-1
michaeldyrynda Apr 7, 2019
04127df
Update tailwind.config.js to match the 1.0 default
michaeldyrynda May 14, 2019
630bd66
Use TailwindCSS 1.0
michaeldyrynda May 14, 2019
4f95576
remove Tailwind version from readme so I don't need to keep it up to …
michaeldyrynda May 14, 2019
f75cdcc
Consistent colour for error messages
dwightwatson Jun 14, 2019
359878f
Merge pull request #52 from dwightwatson/patch-1
michaeldyrynda Jul 15, 2019
dcc1178
Changed margin side for app name link tag
mehrancodes Jul 15, 2019
7eeb4bf
Merge pull request #54 from mehranrasoli/master
michaeldyrynda Jul 16, 2019
71d3583
Add --dev flag to composer command
antonkomarev Jul 30, 2019
4b8504c
Move purge css call to production only
ninjaparade Aug 14, 2019
1f38879
Merge pull request #56 from ninjaparade/patch-1
michaeldyrynda Aug 14, 2019
c37efad
Merge pull request #55 from antonkomarev/patch-1
michaeldyrynda Aug 19, 2019
931e5b6
Revert "Changed margin side for app name link tag"
michaeldyrynda Aug 19, 2019
f6c5d47
Update composer.json
Artessan Aug 23, 2019
2fdcfc9
Merge pull request #57 from laravel-frontend-presets/revert-54-master
michaeldyrynda Aug 27, 2019
81ea388
Update verification template for Laravel 6 - closes #60
michaeldyrynda Aug 27, 2019
85105a8
Merge pull request #59 from Artessan/master
michaeldyrynda Aug 27, 2019
b095057
tweak styling of resend verification link
michaeldyrynda Sep 2, 2019
db52498
Merge pull request #61 from laravel-frontend-presets/chore/update-ver…
michaeldyrynda Sep 2, 2019
ed92995
update readme for 6.0
michaeldyrynda Sep 6, 2019
adfc4d9
Remove X-CSRF-TOKEN header from Axios instance
ruslansteiger Sep 6, 2019
65c2540
Removed duplication of require-dev
ruslansteiger Sep 6, 2019
9a13c12
Merge pull request #64 from SuddenlyRust/patch-2
michaeldyrynda Sep 11, 2019
7be8625
Merge pull request #63 from SuddenlyRust/patch-1
michaeldyrynda Sep 11, 2019
f3acfc1
Update verify.blade.php
mattdfloyd Sep 11, 2019
a0f437f
Merge pull request #66 from mattdfloyd/patch-1
michaeldyrynda Sep 11, 2019
dd4abee
use new error blade directive
dakira Oct 2, 2019
f5f4f51
add translation helper to new strings
dakira Oct 2, 2019
8b633b1
Fix input with error border color
jasonlbeggs Oct 2, 2019
437968a
Adds autocomplete types and autofocus to inputs
claudsonm Oct 5, 2019
c3f430b
Fixes the word from the verify email sentence
claudsonm Oct 5, 2019
acac5ae
Don't require Vue or vue-template-compiler
tnorthcutt Oct 11, 2019
da3b9eb
Merge pull request #68 from dakira/error-directive
michaeldyrynda Oct 14, 2019
f9898f1
Merge pull request #69 from dakira/i18n
michaeldyrynda Oct 14, 2019
340b788
Merge pull request #72 from claudsonm/feature/fix-verify-string-typo
michaeldyrynda Oct 14, 2019
1d047fa
Merge pull request #73 from tnorthcutt/patch-1
michaeldyrynda Oct 14, 2019
d770c55
Merge branch 'feature/autocomplete-types-and-autofocus' of https://gi…
michaeldyrynda Oct 14, 2019
3888d28
Merge branch 'claudsonm-feature/autocomplete-types-and-autofocus'
michaeldyrynda Oct 14, 2019
8b934bc
Merge branch 'jlb/fix-border-colors' of https://github.com/jasonlbegg…
michaeldyrynda Oct 14, 2019
acc0a70
Merge branch 'jasonlbeggs-jlb/fix-border-colors'
michaeldyrynda Oct 14, 2019
3554aa6
Added a theme file for the confirm password route that got added in
joshbenham Nov 1, 2019
49a2a03
Create .gitignore
Nov 29, 2019
c362b0c
Pagination
Nov 29, 2019
73a4a99
Update Readme.md
Nov 29, 2019
2839ea7
Update Service Provider
Nov 29, 2019
232083b
Update Service Profider
Nov 29, 2019
f2861eb
Merge pull request #75 from andreich1980/dev-pagination
michaeldyrynda Nov 30, 2019
5c4222c
Merge pull request #74 from joshbenham/enhancements/confirm-password
michaeldyrynda Nov 30, 2019
7f4b7fb
Add a faster path to usage
assertchris Dec 4, 2019
326b565
Nitpicking in README
szepeviktor Dec 4, 2019
0362933
Merge pull request #77 from szepeviktor/patch-1
michaeldyrynda Dec 4, 2019
541faac
Replace deprecated encrypted param
mvdnbrk Dec 5, 2019
e0d19ae
Merge pull request #78 from mvdnbrk/patch-1
michaeldyrynda Dec 8, 2019
8f51a15
Merge pull request #76 from assertchris/patch-1
michaeldyrynda Dec 8, 2019
7e8bb70
Reference to base stylesheet in comment for "@tailwind base"
epalmans Dec 10, 2019
4807d0e
Merge pull request #79 from epalmans/patch-1
michaeldyrynda Dec 15, 2019
a922986
Add TailwindCss Custom Forms
Feb 24, 2020
d76b0b5
use form-input on password reset form
michaeldyrynda Feb 24, 2020
ea82c54
Merge pull request #84 from andreich1980/master
michaeldyrynda Feb 24, 2020
671405d
support for laravel 7
yaelahan Mar 4, 2020
bcd4b39
Update TailwindCssPresetServiceProvider.php
yaelahan Mar 5, 2020
61c253a
Update README.md
yaelahan Mar 5, 2020
af3867a
restore pagination functionality
michaeldyrynda Mar 5, 2020
64e82b0
Merge branch 'yaelahan/master'
michaeldyrynda Mar 5, 2020
4d084c3
Correctly call the tailwindcss preset if the auth flag is not passed
marcusmyers Mar 5, 2020
5bdbb58
Display info when both base scaffolding, and auth scaffolding installed
michaeldyrynda Mar 7, 2020
d3725c5
Merge branch 'patch-ui-command-to-work-correctly-without-the-auth-opt…
michaeldyrynda Mar 7, 2020
82e7b54
ignore composer.lock
michaeldyrynda Mar 7, 2020
2f22790
copy database migrations when using auth scaffold - closes #91
michaeldyrynda Mar 7, 2020
737bcda
Upgraded tailwindcss to ^1.2 and laravel mix to ^5.0
benvilliere Mar 18, 2020
218a429
Revert unnecessary tailwindcss version bump and changed laravel-mix t…
benvilliere Mar 18, 2020
d9c0faa
Merge pull request #92 from benvilliere/master
michaeldyrynda Mar 22, 2020
224bc5c
Set default email from request on password reset
messerli90 Mar 24, 2020
47d057f
Fix html lang attribute
Mar 27, 2020
c84b426
Add Vapor and TailwindCss links
Mar 27, 2020
b98e2ee
Fix html lang attribute
Mar 27, 2020
e2328af
Scripts to the head
Mar 27, 2020
2fb66a6
fix case of CSS to match Tailwind
michaeldyrynda Apr 4, 2020
b3886e6
Merge branch 'patch-1'
michaeldyrynda Apr 4, 2020
90b47f2
use null coalesce operator
michaeldyrynda Apr 4, 2020
dfcda6a
Merge branch 'messerli90/master'
michaeldyrynda Apr 4, 2020
e89fafa
Remove unnecessary closing round bracket
Lubje Apr 10, 2020
e8d7718
Merge pull request #98 from Lubje/patch-1
michaeldyrynda Apr 10, 2020
4da2033
Replace useTLS for forceTLS in echo config.
rrc845 Apr 12, 2020
8cb7fc4
replaces the class from the previous version of tailwindcss
ddzieduch Apr 27, 2020
9e13f93
Merge pull request #101 from ddzieduch/master
michaeldyrynda Apr 28, 2020
7af42a9
Merge pull request #99 from krubenrc/patch-1
michaeldyrynda Apr 28, 2020
7e83fe6
depend on tailwindcss 1.4, which brings built-in purgecss support
michaeldyrynda Apr 30, 2020
95825c7
remove extraneous comments from default app.css
michaeldyrynda Apr 30, 2020
dad3040
Added cursor-pointer to the resend verification action
rennokki May 19, 2020
447f180
Merge pull request #104 from rennokki/bugfix/anchor-pointing-cursor
michaeldyrynda May 21, 2020
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.idea
/vendor
composer.lock
56 changes: 41 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,46 @@
# Laravel 5.5.x/5.6.x Frontend preset for Tailwind CSS
# Laravel 7.0+ Frontend preset for Tailwind CSS

A Laravel front-end scaffolding preset for [Tailwind CSS](https://tailwindcss.com) - a Utility-First CSS Framework for Rapid UI Development.

*Current version:* **Tailwind CSS 0.5.2**

## Usage

1. Fresh install Laravel 5.5.x or 5.6.x and cd to your app.
2. Install this preset via `composer require laravel-frontend-presets/tailwindcss`. Laravel >= 5.5.0 will automatically discover this package. No need to register the service provider.
3. Use `php artisan preset tailwindcss` for the basic Tailwind CSS preset OR use `php artisan preset tailwindcss-auth` for the basic preset, auth route entry and Tailwind CSS auth views in one go. (NOTE: If you run this command several times, be sure to clean up the duplicate Auth entries in `routes/web.php`)
4. `npm install`
5. `npm run dev`
6. Configure your favorite database (mysql, sqlite etc.)
7. `php artisan migrate` to create basic user tables.
8. `php artisan serve` (or equivalent) to run server and test preset.
1. Fresh install Laravel >= 7.0 and `cd` to your app.
2. Install this preset via `composer require laravel-frontend-presets/tailwindcss --dev`. Laravel will automatically discover this package. No need to register the service provider.

### a. For Presets without Authentication

1. Use `php artisan ui tailwindcss` for the basic Tailwind CSS preset
2. `npm install && npm run dev`
3. `php artisan serve` (or equivalent) to run server and test preset.

### b. For Presets with Authentication

1. Use `php artisan ui tailwindcss --auth` for the basic preset, auth route entry, and Tailwind CSS auth views in one go. (NOTE: If you run this command several times, be sure to clean up the duplicate Auth entries in `routes/web.php`)
4. `npm install && npm run dev`
5. Configure your favorite database (mysql, sqlite etc.)
6. `php artisan migrate` to create basic user tables.
7. `php artisan serve` (or equivalent) to run server and test preset.

### Changing colours
### Config

If you want to change the default orange colour being used, update the `brand-{modifier}` values in your `tailwind.js` file. You are of course free to modify this file as you see fit, and even remove and replace the brand configuration in the scaffolded views entirely.
The default `tailwind.config.js` configuration file included by this package simply uses the config from the Tailwind vendor files. Should you wish to make changes, you should remove the file and run `node_modules/.bin/tailwind init`, which will generate a fresh configuration file for you, which you are free to change to suit your needs.

Add a new i18n string in the `resources/lang/XX/pagination.php` file for each language that your app uses:
```php
'previous' => '« Previous',
'next' => 'Next »',
'goto_page' => 'Goto page #:page', // Add this line
```
This should help with accessibility
```html
<li>
<a href="URL?page=2" class="..."
aria-label="Goto page #2"
>
2
</a>
</li>
```

### Screenshots

Expand All @@ -27,8 +50,11 @@ If you want to change the default orange colour being used, update the `brand-{m

![Login](/screenshots/login.png)

![Send Password Reset](/screenshots/send-password-reset.png)

![Reset Password](/screenshots/reset-password.png)

![Dashboard](/screenshots/dashboard.png)

![Verify](/screenshots/verify.png)

![Pagination](/screenshots/pagination-links.png)
![Simple Pagination](/screenshots/simple-pagination-links.png)
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"keywords": ["laravel", "preset", "tailwindcss"],
"license": "MIT",
"require": {
"laravel/framework": "^5.5"
"laravel/framework": "^7.0",
"laravel/ui": "^2.0"
},
"autoload": {
"psr-4": {
Expand Down
Binary file modified screenshots/dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/pagination-links.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/register.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/reset-password.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed screenshots/send-password-reset.png
Binary file not shown.
Binary file added screenshots/simple-pagination-links.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/verify.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/welcome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 53 additions & 11 deletions src/TailwindCssPreset.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
namespace LaravelFrontendPresets\TailwindCssPreset;

use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use Illuminate\Container\Container;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Foundation\Console\Presets\Preset;
use Laravel\Ui\Presets\Preset;
use Symfony\Component\Finder\SplFileInfo;

class TailwindCssPreset extends Preset
{
Expand All @@ -15,48 +17,61 @@ public static function install()
static::updateStyles();
static::updateBootstrapping();
static::updateWelcomePage();
static::updatePagination();
static::removeNodeModules();
}

public static function installAuth()
{
static::install();
static::scaffoldController();
static::scaffoldAuth();
}

protected static function updatePackageArray(array $packages)
{
return array_merge([
'laravel-mix-purgecss' => '^2.0',
'tailwindcss' => '>=0.5.2',
'laravel-mix' => '^5.0.1',
'laravel-mix-tailwind' => '^0.1.0',
'tailwindcss' => '^1.4',
'@tailwindcss/custom-forms' => '^0.2',
], Arr::except($packages, [
'bootstrap',
'bootstrap-sass',
'jquery',
'popper.js',
'laravel-mix',
'jquery',
]));
}

protected static function updateStyles()
{
tap(new Filesystem, function ($filesystem) {
$filesystem->deleteDirectory(resource_path('assets/sass'));
$filesystem->deleteDirectory(resource_path('sass'));
$filesystem->delete(public_path('js/app.js'));
$filesystem->delete(public_path('css/app.css'));

if (! $filesystem->isDirectory($directory = resource_path('assets/css'))) {
if (! $filesystem->isDirectory($directory = resource_path('css'))) {
$filesystem->makeDirectory($directory, 0755, true);
}
});

copy(__DIR__.'/tailwindcss-stubs/resources/assets/css/main.css', resource_path('assets/css/main.css'));
copy(__DIR__.'/tailwindcss-stubs/resources/css/app.css', resource_path('css/app.css'));
}

protected static function updateBootstrapping()
{
copy(__DIR__.'/tailwindcss-stubs/tailwind.js', base_path('tailwind.js'));
copy(__DIR__.'/tailwindcss-stubs/tailwind.config.js', base_path('tailwind.config.js'));

copy(__DIR__.'/tailwindcss-stubs/webpack.mix.js', base_path('webpack.mix.js'));
copy(__DIR__.'/tailwindcss-stubs/resources/assets/js/bootstrap.js', resource_path('assets/js/bootstrap.js'));

copy(__DIR__.'/tailwindcss-stubs/resources/js/bootstrap.js', resource_path('js/bootstrap.js'));
}

protected static function updatePagination()
{
(new Filesystem)->delete(resource_path('views/vendor/paginate'));

(new Filesystem)->copyDirectory(__DIR__.'/tailwindcss-stubs/resources/views/vendor/pagination', resource_path('views/vendor/pagination'));
}

protected static function updateWelcomePage()
Expand All @@ -66,6 +81,23 @@ protected static function updateWelcomePage()
copy(__DIR__.'/tailwindcss-stubs/resources/views/welcome.blade.php', resource_path('views/welcome.blade.php'));
}

protected static function scaffoldController()
{
if (! is_dir($directory = app_path('Http/Controllers/Auth'))) {
mkdir($directory, 0755, true);
}

$filesystem = new Filesystem;

collect($filesystem->allFiles(base_path('vendor/laravel/ui/stubs/Auth')))
->each(function (SplFileInfo $file) use ($filesystem) {
$filesystem->copy(
$file->getPathname(),
app_path('Http/Controllers/Auth/'.Str::replaceLast('.stub', '.php', $file->getFilename()))
);
});
}

protected static function scaffoldAuth()
{
file_put_contents(app_path('Http/Controllers/HomeController.php'), static::compileControllerStub());
Expand All @@ -76,7 +108,17 @@ protected static function scaffoldAuth()
FILE_APPEND
);

(new Filesystem)->copyDirectory(__DIR__.'/tailwindcss-stubs/resources/views', resource_path('views'));
tap(new Filesystem, function ($filesystem) {
$filesystem->copyDirectory(__DIR__.'/tailwindcss-stubs/resources/views', resource_path('views'));

collect($filesystem->allFiles(base_path('vendor/laravel/ui/stubs/migrations')))
->each(function (SplFileInfo $file) use ($filesystem) {
$filesystem->copy(
$file->getPathname(),
database_path('migrations/'.$file->getFilename())
);
});
});
}

protected static function compileControllerStub()
Expand Down
22 changes: 14 additions & 8 deletions src/TailwindCssPresetServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,31 @@

namespace LaravelFrontendPresets\TailwindCssPreset;

use Illuminate\Pagination\Paginator;
use Illuminate\Support\ServiceProvider;
use Illuminate\Foundation\Console\PresetCommand;
use Laravel\Ui\UiCommand;
use Laravel\Ui\AuthCommand;

class TailwindCssPresetServiceProvider extends ServiceProvider
{
public function boot()
{
PresetCommand::macro('tailwindcss', function ($command) {
UiCommand::macro('tailwindcss', function ($command) {
TailwindCssPreset::install();

$command->info('Tailwind CSS scaffolding installed successfully.');
$command->info('Please run "npm install && npm run dev" to compile your fresh scaffolding.');
});

PresetCommand::macro('tailwindcss-auth', function ($command) {
TailwindCssPreset::installAuth();
if ($command->option('auth')) {
TailwindCssPreset::installAuth();

$command->info('Tailwind CSS auth scaffolding installed successfully.');
}

$command->info('Tailwind CSS scaffolding with auth views installed successfully.');
$command->info('Please run "npm install && npm run dev" to compile your fresh scaffolding.');
$command->comment('Please run "npm install && npm run dev" to compile your fresh scaffolding.');
});

Paginator::defaultView('pagination::default');

Paginator::defaultSimpleView('pagination::simple-default');
}
}
58 changes: 0 additions & 58 deletions src/tailwindcss-stubs/resources/assets/css/main.css

This file was deleted.

42 changes: 0 additions & 42 deletions src/tailwindcss-stubs/resources/assets/js/bootstrap.js

This file was deleted.

5 changes: 5 additions & 0 deletions src/tailwindcss-stubs/resources/css/app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@tailwind base;

@tailwind components;

@tailwind utilities;
Loading