Skip to content

Update stubs #726

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

Merged
merged 6 commits into from
Apr 11, 2025
Merged

Update stubs #726

merged 6 commits into from
Apr 11, 2025

Conversation

nicodevs
Copy link

@nicodevs nicodevs commented Mar 10, 2025

Hey @gcavanunez,

I prepared this PR to be merged into yours. It essentially updates the stubs Jigsaw comes with.

In your PR, you laid out a set of steps to use Vite with Jigsaw. These steps include:

  • Add "type": "module" to your package.json
  • Create file vite.config.js
  • Add scripts to your package.json
  • Install Tailwind
  • Tweak postcss.config.js

With this PR merged into yours, those steps will already be done because the init command will copy these new stubs.

Now, I am experiencing issues with hot reloading. On my local setup, it is not always hot reloading as expected. But following your steps, hot reloading works, so I wonder if the issue is in a specific version of the dependencies updated in package-lock.json.

So I'd recommend creating an app and using this branch:

composer require tightenco/jigsaw:dev-nd/add-vite-2

...and see if your local hot module reloading works as expected, to check if you experience the same issue or not. If you merge this into yours, feel free to squash the commits.

Thank you!

@nicodevs nicodevs self-assigned this Mar 10, 2025
nicodevs and others added 2 commits March 11, 2025 09:09
..✓..............✓.✓..............✓.........................................
........................................

──────────────────────────────────────────────────────────────────── Laravel
FIXED .................................. 116 files, 4 style issues fixed
✓ tests/FilesystemTest.php php_unit_method_casing
✓ tests/HelpersTest.php php_unit_method_casing
✓ tests/IterableObjectTest.php class_definition, php_unit_method_casing, br…
✓ tests/PaginationTest.php php_unit_method_casing
)
@nicodevs nicodevs marked this pull request as ready for review April 11, 2025 18:56
@nicodevs nicodevs requested a review from gcavanunez April 11, 2025 18:56
Copy link
Contributor

@gcavanunez gcavanunez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! after removing the hot file everything worked as expected hot reloading and all

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this guy is maybe causing the issue, we should add it to the gitignore

@gcavanunez gcavanunez merged commit ee953ad into gc/add-vite Apr 11, 2025
@gcavanunez gcavanunez deleted the nd/add-vite-2 branch April 11, 2025 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants