Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 1.2 KB

footprint.md

File metadata and controls

53 lines (34 loc) · 1.2 KB

Footprint Extension

Task Definitions: None
Template Definitions: 'footprint'
Batcher Defintions: None

Prints the byte sizes of the listed task dependencies, including Brotli compression sizes.

Footprint Template

Template Options

None

Example

chompfile.toml

version = 0.1

extensions = ['[email protected]:footprint']

[[task]]
name = 'footprint'
deps = ['dist/build1.js', 'dist/build2.js']
template = 'footprint'

With output:

$ chomp footprint

● dist/lexer.asm.js [cached]
🞂 :footprint
dist/build1.js:  4,670B Brotli (11,532B raw)
dist/build2.js:    874B Brotli ( 2,482B raw)

The footprint task will naturally depend on the build as it references the build targets as dependencies.

Glob dependencies are supported, but not interpolates. Target / run / engine customization is not supported.

Ejection

Ejecting the footprint template will inline the footprint Node.js task (which uses no dependencies).

Roadmap

Future additions to this extension might include:

  • Customizing the byte output and compression comparisons
  • Saving the footprint or comparing to a previous run with thresholds to fail if a threshold is breached