treeshackle

1.1.0 • Public • Published

Treeshackle

Keep tabs on the size of exports and the tree shake-ability of your library.

Installation

To install Treeshackle, run the following in your terminal

$ npm i -S treeshackle

Then run treeshackle --help for information on the commands it provides.

Usage

$ treeshackle # In root of library (where your package.json file lives)

NOTE: be sure to compile your library for distribution first. Treeshackle needs your actual library distributables so it can asses your package as if it were a consumer of your library. You should run all your prepublish preparation steps before running treeshackle.

--write, -w

Write out the report to a treeshackle-lock.json file. This should be commited to your version control.

--ci, -c

Generate the report and diff against an existing treeshackle-lock.json file. If any differences are found between the new report and the lock file, then the process will exit with error code 1, and output the differences in the reports.

Perfect for running in your CI if you want to keep an eye on the sizes of your exports after treeshaking.

Readme

Keywords

none

Package Sidebar

Install

npm i treeshackle

Weekly Downloads

4

Version

1.1.0

License

none

Unpacked Size

24.9 kB

Total Files

15

Last publish

Collaborators

  • tomlingham