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

Add Tailwind, "composer run dev" #6463

Merged
merged 17 commits into from
Oct 10, 2024
Merged

Add Tailwind, "composer run dev" #6463

merged 17 commits into from
Oct 10, 2024

Conversation

taylorotwell
Copy link
Member

This PR does two things...

First, it adds a basic Tailwind configuration out of the box. This lets you start using Tailwind immediately without installing any starter kit. Useful if you just want to mess around or build things from scratch.

Second, it adds a composer run dev script, which starts php artisan serve, php artisan queue:listen --tries=1, php artisan pail (now a dev dependency by default), and npm run dev all in one command, with color coded output in the terminal using concurrently.

CleanShot 2024-10-10 at 09 07 08@2x

This gives you one command to run the application and have all of the basic stuff you need.

@taylorotwell taylorotwell merged commit b378ce9 into 11.x Oct 10, 2024
4 checks passed
@taylorotwell taylorotwell deleted the tailwind branch October 10, 2024 19:22
@masterfiras101
Copy link

What about pail in windows

@juanborras
Copy link

Would it be possible to add --host and --port?

@msamgan
Copy link

msamgan commented Oct 26, 2024

@juanborras, you can add the --port, etc, in the dev command manually. in the php artisan serve section.

@AhmedAlaa4611
Copy link

I hat pail to be a dev dependency by default!!!

@luisprmat
Copy link
Contributor

What about pail in windows

laravel pail and laravel horizon require PHP-PCNTL extension Not supported for Windows. In my PC definitely i'm using WSL over Ubuntu 24.04 y work fine!

@jrd-lewis
Copy link
Contributor

There needs to be a flag added to the installer to do new installs without having Tailwind installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants