-
Notifications
You must be signed in to change notification settings - Fork 11.5k
[12.x] Add install:vue Artisan command for Vue.js scaffolding setup #56670
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
Conversation
Of course, all of these stubs come from the laravel/blank-vue-starter-kit
repository. However, I would like to ask whether we should also include stubs for the .prettierrc
and .prettierignore
files.
Ziggy could be swapped out with Wayfinder since laravel/vue-starter-kit
now uses Wayfinder.
Ziggy could be swapped out with Wayfinder since
laravel/vue-starter-kit
now uses Wayfinder.
Thank you for your feedback, I think we need to update https://github.com/laravel/blank-vue-starter-kit first.
Uh oh!
There was an error while loading. Please reload this page.
Description
This PR introduces a new
install:vue
Artisan command that installs and configures Vue.js scaffolding in a fresh Laravel application as discussed in: laravel/installer#434.The command handles the full setup process, including:
Inertia
andZiggy
via Composer.composer.json
with a newdev:ssr
script.npm install
to set up Node dependencies.The command is designed to run only on fresh installations. If Vue.js scaffolding is already configured, it will exit early with an error message to prevent overwriting an existing setup.
About other install commands
I am aware that we will also need
install:react
andinstall:livewire
commands. However, I created this PR first to gather feedback on the implementation approach before starting work on those two commands.About tests
I am not certain whether tests are required for this command. I noticed that the existing
install:api
command does not have dedicated tests, but if tests are desired, I will be happy to add them.