All Projects → codechecks → build-size-watcher

codechecks / build-size-watcher

Licence: MIT License
Keep your bundle size in check and detect when it gets too big.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to build-size-watcher

gobuild
Go 语言热编译工具
Stars: ✭ 49 (+206.25%)
Mutual labels:  build, watcher
Godo
golang build tool in the spirt of rake, gulp
Stars: ✭ 523 (+3168.75%)
Mutual labels:  build, watcher
angular-package-builder
[DEPRECATED] Packages your Angular 4+ library based on the Angular Package Format.
Stars: ✭ 25 (+56.25%)
Mutual labels:  build
gotopus
Gotopus is a minimalistic tool that runs arbitrary commands concurrently.
Stars: ✭ 17 (+6.25%)
Mutual labels:  build
GetSTFolderSize
Get folder sizes blazingly fast with PowerShell
Stars: ✭ 41 (+156.25%)
Mutual labels:  size
compose-watcher
Watch volumes and restart services in docker compose
Stars: ✭ 27 (+68.75%)
Mutual labels:  watcher
SubmiBot
Plugin do Eclipse para automatização do processo de submissão de tarefas na disciplina de LP2 - Computação@UFCG
Stars: ✭ 16 (+0%)
Mutual labels:  build
makes
A DevSecOps framework powered by Nix.
Stars: ✭ 158 (+887.5%)
Mutual labels:  build
Cake.Coverlet
Coverlet extensions for Cake Build
Stars: ✭ 39 (+143.75%)
Mutual labels:  build
instance-watcher
Get notified for Instances mistakenly left running across all AWS regions for specific AWS Account
Stars: ✭ 90 (+462.5%)
Mutual labels:  watcher
asap
A cmake starter project for C++ with basic infrastructure including platform detection, compiler detection, assertions..., and a complete build lifecycle. Portable across Linux, OS X and Windows.
Stars: ✭ 39 (+143.75%)
Mutual labels:  build
jagen
A software engineer's workspace manager and build systems wrapper
Stars: ✭ 32 (+100%)
Mutual labels:  build
hotbuild
a cross platform hot compilation tool for golang
Stars: ✭ 181 (+1031.25%)
Mutual labels:  watcher
build-plugin
Track your build performances like never before.
Stars: ✭ 45 (+181.25%)
Mutual labels:  build
bzl
Bzl - Integrated CLI + UI + VSCode Extension for Bazel
Stars: ✭ 43 (+168.75%)
Mutual labels:  build
RocketXPlugin
🔥🔥 android 端编译加速插件🚀 自动识别未改动 module 并在编译流程中替换为 aar ,只编译改动模块,加速 Android apk 的编译速度。
Stars: ✭ 408 (+2450%)
Mutual labels:  build
setup shift
📨 Automate the download of your current setup
Stars: ✭ 11 (-31.25%)
Mutual labels:  build
calendar-view-plugin
Jenkins Calendar View Plugin: Shows past and future builds in a calendar view
Stars: ✭ 17 (+6.25%)
Mutual labels:  build
HumanBytes
A library to convert byte sizes to a human readable form
Stars: ✭ 28 (+75%)
Mutual labels:  size
witch
Dead simple watching
Stars: ✭ 15 (-6.25%)
Mutual labels:  watcher

codechecks.io

Build Size Watcher

Keep your build size in check and detect when it gets too big

Build Status Software License

Install

npm add --save-dev @codechecks/build-size-watcher

or

yarn add --dev @codechecks/build-size-watcher

Usage

Add to your codechecks.yml file:

checks:
  - name: build-size-watcher
    options:
      files:
        - path: "./build/static/js/*.js"
          maxSize: 1MB
        - path: "./build/static/css/*.css"
        - path: "./build/static/images/*.jpg"
  # ...

With each pull request you will get a summary like Change +3 KB(+1%) Total 300KB and detailed size breakdown for each path in check's details.

API

buildSizeWatcher(options: BuildSizeWatcherOptions): Promise<void>

BuildSizeWatcherOptions

interface BuildSizeWatcherOptions {
  gzip?: boolean; // defaults to true
  files: {
    path: string; // supports globs
    maxSize?: number | string;
  }[];
  name?: string; // defaults to "Build Size"
}
gzip

optional boolean

Default: true

Specify if files should be gzipped before size calculation

files
interface FileDescription {
  path: string; // supports glob
  maxSize?: number | string;
}

List of files to track.

files.path

string

Path specifying files to bundle together while calculating size. Supports globs. It's great when you have to deal with checksums in file names: ex. "./build/static/js/*.js"

files.maxSize

optional number|string

Provide the maximum size of all files matched by files.path. It can be a number in bytes or a string like "1KB" or "1MB". When max size is reached the whole check will report failure.

name

optional string

Default: Build Size

Specify the name for check. Might be useful when you track multiple builds for example in monorepo.

Contributing

All contributions are welcomed. Read more in CONTRIBUTING.md

Licence

MIT @ codechecks.io

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].