Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[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
AhmedAlaa4611 wants to merge 3 commits into laravel:12.x
base: 12.x
Choose a base branch
Loading
from AhmedAlaa4611:12.x

Conversation

Copy link
Contributor

@AhmedAlaa4611 AhmedAlaa4611 commented Aug 15, 2025
edited
Loading

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.

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.

Copy link
Contributor

Ziggy could be swapped out with Wayfinder since laravel/vue-starter-kit now uses Wayfinder.

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /