Download the PHP package nova-kit/nova-packages-tool without Composer
On this page you can find all versions of the php package nova-kit/nova-packages-tool. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nova-kit/nova-packages-tool
More information about nova-kit/nova-packages-tool
Files in nova-kit/nova-packages-tool
Package nova-packages-tool
Short Description Tool for Laravel Nova Packages Development
License MIT
Informations about the package nova-packages-tool
Tool for Laravel Nova Packages Development
This library provides a versioning laravel-nova
mixins dependency for 3rd party packages built for Laravel Nova.
Why?
laravel-nova
may introduce breaking and none breaking improvements from time to time. To maintain compatibility all 3rd party packages should rebuild their packages each time Laravel Nova released a new version.
By skipping this process and depending on the severity of the changes it may result in your application no longer working and you are locked to an older version and have to wait each affecting 3rd packages to update their code.
Pros
nova-kit/nova-packages-tool
reduces the maintaining hurdle for each 3rd party package utilizinglaravel-nova
.- The
dist
generated file will be reduced since 3rd party package is no longer required to buildlaravel-nova
source code.
Cons
- Each time Laravel Nova made a new release, you need to wait until
nova-kit/nova-packages-tool
make a new compatible release.
Installation
To install through composer, run the following command from terminal:
Next, make sure your application's composer.json
contains the following command under script.post-autoload-dump
:
Usages
First, you need to add webpack.external alias to laravel-nova
and comment the existing reference to vendor/laravel/nova/resources/js/mixins/js/packages.js
under nova.mix.js
:
This would allow your package to depends on laravel-nova
from external source and no longer compiled it locally.
Theme Switched Event
Instead of manually registering custom MutationObserver
on each package, you can now listen to a single nova-theme-switched
event:
Nightly Build
Those who just can't wait for compatible release you have to option to use our nightly build by running the following command on your Laravel Nova application: