0.8.1 • Published 5 years ago
sizemometer v0.8.1
Sizemometer
Monitoring for your front end assets. Gives you nice graphs to track the size of your files over time.
Setting up
Install the package:
npm install -S sizemometer
Set up a config file at .sizemometer/config.js
in the root of your project.
module.exports = {
title: 'Your project name',
trackedFiles: ['dist/bundle.js', 'main-*.js'],
commitIgnorePattern: 'Update dependency',
theme: {
accentColor: '#BADA55'
},
repositoryUrl: 'https://github.com/chardos/sizemometer'
}
Property | Description | Types |
---|---|---|
title | Displayed in app header | string |
trackedFiles | Files to take snapshots of. Supports globbing. | array |
commitIgnorePattern | When this matches your latest commit message, no new snapshot will be taken | string, regex |
theme.accentColor | Changes the color of the bars | string |
Using sizemometer
To take your first snapshot, run:
npx sizemometer add
Then to view the report:
npx sizemometer report
API
import { add } from 'sizemometer';
await add({currentHistory});
0.8.1
5 years ago
0.7.4
5 years ago
0.8.0
5 years ago
0.7.3
5 years ago
0.7.2
5 years ago
0.7.1
5 years ago
0.7.0
5 years ago
0.6.0
5 years ago
0.5.0
5 years ago
0.4.0
5 years ago
0.3.2
5 years ago
0.3.1
5 years ago
0.3.0
5 years ago
0.2.1
5 years ago
0.2.0
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago
0.0.7
5 years ago
0.0.6
5 years ago
0.0.5
5 years ago
0.0.4
5 years ago
0.0.3
5 years ago
0.0.2
5 years ago
0.0.1
5 years ago