Join us for office hours !

size-plugin

A GitHub 🤖 that helps you to keep an 👁️ on static assert 📦 sizes of your application and gives instant feedback 📝 for developer whenever they make a change
Screenshot of size-plugin app

Repository

kuldeepkeshwar/size-plugin-bot

Authors

kuldeepkeshwar

Updated

November 8, 2019

Used By

antvis preactjs BlueEastCode bejamas free-easy AndrewUsher frilox042 netstart kuldeepkeshwar zyd745077

All Contributors

size-plugin

size-plugin

A GitHub 🤖 built with Probot that helps you to keep an 👁️ on static assert 📦 sizes of your application and gives instant feedback 📝 for developer whenever they make change.

🤖 comments the gzipped sizes of your webpack assets and the changes since the last build into the relevant PR

Usage

First add an instance of the size-plugin to your webpack configuration:

// webpack.config.js
+ const SizePlugin = require('size-plugin');

module.exports = {
  plugins: [
+    new SizePlugin({publish:true})
  ]
}

Second Simply install the app and make some changes, open a pr and watch the magic happen 😊

size-plugin commenting on a PR with bundle stats

Currently works with Travis CI, CircleCI, Wercker, and Drone.

Using a different CI? Under the hood, size-plugin uses ci-env to extract meta information which works perfectly with Custom CI 🙃

Configure Bot

Create a file .github/size-plugin.yml.

example 👇

size-files: # list of size*.json files incase you have multiple packages.
    - size-plugin-browser.json
    - size-plugin-ssr.json
base-branches: # base branches against which bot can open a pull request.
    - master
    - next

Contributing

If you have suggestions for how size-plugin could be improved, or want to report a bug, open an issue! We'd love all and any contributions.

For more, check out the Contributing Guide.

like it?

⭐️ this repo

 

License

ISC © 2019 kuldeepkeshwar kuldeepkeshwar@gmail.com

Contributors ✨

Thanks goes to these wonderful people (emoji key):

anotherjsguy
anotherjsguy

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Get occasional updates on new apps & features.

Star

with by the Probot community

Code licensed ISC Docs licensed CC-BY-4.0