leuverink / bundle
v0.5.0
2024-06-20 15:44 UTC
Requires
- php: ^8.1
- illuminate/contracts: ^10|^11
- illuminate/support: ^10|^11
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.30
- laravel/pint: ^1.13
- livewire/livewire: ^3.4
- nunomaduro/larastan: ^2.8
- orchestra/testbench: ^8
- orchestra/testbench-dusk: ^8
- pestphp/pest: ^2.30
- spatie/laravel-ignition: ^2.3
- squizlabs/php_codesniffer: ^3.7
- symfony/thanks: ^1.2
- tightenco/duster: ^2.4
- tightenco/tlint: ^9.1
This package is auto-updated.
Last update: 2024-09-16 21:29:03 UTC
README
在 Laravel/Livewire 应用中轻松使用页面特定的 JavaScript 模块。
在 GitHub Pages » 探索文档
注意
Bundle 正处于公开测试阶段! 👀
我们需要您的帮助来使此包准备好投入生产 🚀 请查看 讨论板 或 报告错误。我们感谢您的反馈!
安装
composer require leuverink/bundle
php artisan bundle:install
开始使用 Bundle 所需的所有内容!
基本使用
您可以直接在页面上导入您 resources/js 目录中的任何 node_module 或本地模块。
<x-import module="apexcharts" as="ApexCharts" /> <script type="module"> const ApexCharts = await _import("ApexCharts"); // Create something amazing! </script>
贡献
在本地克隆此存储库并运行 composer install
运行 composer serve 以启动本地环境进行尝试。
您可以使用以下 composer 脚本运行测试套件
composer test运行所有测试(除浏览器测试外)composer test-browser运行所有浏览器测试composer test-all运行所有测试