Skip to content

[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

Open
wants to merge 1 commit into
base: 12.x
Choose a base branch
from

Conversation

AhmedAlaa4611
Copy link
Contributor

@AhmedAlaa4611 AhmedAlaa4611 commented Aug 15, 2025

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:

  • Installing and configuring Inertia and Ziggy via Composer.
  • Publishing Vue-specific stub files for Middleware, Routes, TypeScript, Views, and other files.
  • Updating composer.json with a new dev:ssr script.
  • Cleaning up old JavaScript and CSS files from the default Laravel installation.
  • Optionally run 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 and install: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.

@AhmedAlaa4611
Copy link
Contributor Author

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.

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