0.0.19 • Published 3 years ago

rollup-plugin-build-statistics v0.0.19

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Rollup build statistics plugin

Plugin that keeps a continuous log of your build time.

Use cases

  • Can be used as an evidence to show the business (PO's etc.) how slow build times impact the team and hinder productivity
  • By monitoring build time you can see if the optimizations in your Rollup config have really improved productivity
  • This plugin can help you to point out the differences between different machines e.g. if one of the developers has really slower builds than other it can be a sign of misconfiguration, poor hardware etc.

Installation and setup

To install the plugin run:

npm install --save-dev rollup-plugin-build-statistics

Add the plugin to your rollup.config.js and specify a project name.

import buildStatistics from 'rollup-plugin-build-statistics';

export default {
    input: `./src/index.js`,
    output: {
        file: `dist/index.js`,
    },
    plugins: [
        buildStatistics({
            projectName: 'awesome-project',
        }),
    ],
};

You are all set! 🚀

Now every time you make some changes the build time will be logged.

All logs will be summarized on daily basis and you can find the data under stats/build-summary.json file.

NOTE: You should probably gitignore the stats folder and all json files inside.

Logs analysis 📊

After a while you have collected some data and you are probably wondering how to process it and extract insights.

We've got you covered! Head over to our logs analyzer page and upload your build-summary.json file.

You can use this tool to visualize your build time and see the progress.

Did you find this plugin useful?

Show your support. Buy me a coffee. 😎

Plugin options

This plugin is configurable and supports a few options.

Option nameRequiredDefault valueDescription
projectNameYesN/AName of your project. It will be saved in the log file. Useful when you have multiple projects.
logsDirectoryNameNostatsName of the directory where log files will be stored.
summaryLogFilenameNobuild-stats-summaryName of the json log file.

Read more about the inspiration for this plugin.

0.0.19

3 years ago

0.0.17

3 years ago

0.0.18

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.0.13

3 years ago

0.0.14

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago