Skip to content
AMD module bundler and preloader for Magento 2 stores.
JavaScript TypeScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Add CircleCI config Aug 19, 2019
bin
docs Missing step in ALPHA.md. Thanks Paul Hachmang for the catch Sep 10, 2019
src Unit test coverage (#21) Sep 30, 2019
.editorconfig init boilerplate Jul 25, 2019
.gitattributes Add .gitattributes file Aug 13, 2019
.gitignore Get coverage to 100% for requireConfig.ts Sep 12, 2019
.prettierignore Add the ability to pass a string to the minify worker instead of a fi… Aug 26, 2019
README.md Change CircleCI status badge in readme to magento org Sep 17, 2019
jest.config.js Switched from yargs to minimist (API was too much), and wrote unit te… Sep 11, 2019
package-lock.json Switched from yargs to minimist (API was too much), and wrote unit te… Sep 11, 2019
package.json Add unit test coverage for cliTask.ts Sep 16, 2019
prettier-globs Rename Jul 29, 2019
prettier.config.js init boilerplate Jul 25, 2019
tsconfig.json Switched from yargs to minimist (API was too much), and wrote unit te… Sep 11, 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.