Improving your site's performance and trimming down your artifacts can be a time consuming process, one that can easily be undone when installing new dependencies, plugins and libraries.
GitRevue remedies this problem by monitoring your artifacts across pull requests, warning you when bloat is added and praising when artifacts are streamlined.
Firstly you should already have GitRevue setup on your repository. If you don't already have GitRevue setup, you can follow our Getting Started Tutorial, then join us back here.
To monitor your artifacts GitRevue runs as part of your continuous integration process. We have a handy CLI tool to make this as seamless as possible.
- Generate an API token for GitRevue at https://app.gitrevue.io/settings#/api
- Set this as the
GITREVUE_TOKENenvironment variable in your continuous integration environment. Keep this value secret as it will allow anyone to access your GitRevue account
- Next you can report artifacts to GitRevue using
npx @gitrevue/cli artifacts <glob>. glob should be the path to your artifact(s). (e.g:
public/css/*.cssto monitor all css files in the
That's it. GitRevue will now keep track of your artifacts and comment on your pull requests so you can easily identify when and where bloat gets added.