leuverink/bundle

Fund package maintenance!
gwleuverink

v0.3.0 2024-03-19 08:34 UTC

README

68747470733a2f2f6c61726176656c2d62756e646c652e6465762f6173736574732f6c6f676f2e737667

Effortless page specific JavaScript modules in Laravel/Livewire apps.

tests browser-tests codestyle 68747470733a2f2f636f6465636f762e696f2f6769746875622f67776c6575766572696e6b2f62756e646c652f67726170682f62616467652e7376673f746f6b656e3d5a4c46513736484b5251 Bundle Sandbox


Explore the docs on GitHub Pages »

Bundle is in open beta! 👀

We need your help get this package production ready 🚀 Check out the discussion board or report a bug. We appreciate your feedback!

Installation

composer require leuverink/bundle
npm install bun --save-dev

This is all you need to start using Bundle!

Basic usage

You may import any node_module or local module from your resources/js directory directly on the page.

<x-import module="apexcharts" as="ApexCharts" />

<script type="module">
  const ApexCharts = await _import("ApexCharts");

  // Create something amazing!
</script>

Contributing

Clone this repo locally & run composer install

Run composer serve to start a local environment to tinker in.

You can run the test suites with the following composer scripts:

  • composer test to run all tests except browser tests
  • composer test-browser to run all browser tests
  • composer test-all to run all tests