Moniteur is also available as a command line interface:
npm install -g moniteur
Usage: moniteur [options] [command]Commands:record record a snapshot of all asset metricsserve start the server to show metrics in the browserassets display the list of assets loaded by moniteurhelp display this helpful messageOptions:-h, --help output usage information-V, --version output the version number
Configuration: edit the
.moniteurrc.yml file in the current directory.
For now, two types of storage are supported: Redis and local filesystem.
A Redis URL can be passed through an environment variable, instead of having it stored in the configuration file:
Run your application like this:
DB__REDIS_URL=redis://url moniteur [options]
REDISCLOUD_URL are also valid environment variables.
Clone the repository and run:
npm run dev
Takes a snapshot of asset metrics and stores them in the
Between two dates:
Merci to https://github.com/t32k/stylestats, which has been a great source of inspiration.
And thanks to @oncletom for helping building the early versions of moniteur.