Skip to content

Conversation

simonhamp
Copy link
Member

@simonhamp simonhamp commented Oct 24, 2024

This will allow us to run the command shelled through another command, which allows for a concurrent command like Laravel's new composer dev command, i.e. adding this to the scripts section of your composer.json:

"scripts": {
    "native:dev": [
        "Composer\\Config::disableProcessTimeout",
        "npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185\" \"php artisan native:serve --no-interaction\" \"php artisan pail --timeout=0\" \"npm run dev\" --names=app,logs,vite"
    ]
},

Then you can run composer native:dev and get your app booted in dev mode, watch the logs with Pail (requires installation), and be running Vite for hot reloading 🔥

@simonhamp simonhamp merged commit fdda1de into main Oct 24, 2024
4 of 10 checks passed
@simonhamp simonhamp deleted the feature/support-no-interaction-dev-command branch October 24, 2024 16:39
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.

1 participant