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

Support --no-interaction in native:serve command #119

Merged
merged 3 commits into from
Oct 24, 2024

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