Skip to content
AMD module bundler and preloader for Magento 2 stores.
JavaScript TypeScript
Branch: master
Clone or download
DrewML Unit test coverage (#21)
* More unit test coverage for traceAMDDependencies.ts and magentoFS.ts

* Adding test coverage
Latest commit b372d33 Sep 30, 2019

README.md

baler

CircleCI

baler is an AMD module bundler and preloader for Magento 2 stores.

Getting Started (Early Alpha)

If you're willing to test alpha software, please proceed

Docs

Usage

Usage
  $ baler <command> [options]

  Commands
    build --theme Vendor/name
    graph --theme Vendor/name

  Examples
    Optimize all eligible themes
    $ baler build

    Optimize multiple themes
    $ baler build --theme Magento/foo --theme Magento/bar

    Generate Dependency Graph
    $ baler graph --theme Magento/luma

Debugging

node.js debugger

  1. Run node --inspect-brk $(which baler)
  2. In Chrome, visit chrome://inspect
  3. Click Inspect on the pending connection

Tracing

Run the CLI with the --trace flag. An event log will be written to baler-trace-{timestamp}.txt

You can’t perform that action at this time.