1.5.0 • Published 4 years ago

bundle-checker v1.5.0

Weekly downloads
67
License
ISC
Repository
github
Last release
4 years ago

Build Status NPM Version TypeScript code style: prettier

bundle-checker 🔎📦

Compare the size of build files in two git branches.

bundle-chercker

Summary:

Usage

If cloning a private repository, please make sure the GITHUB_TOKEN env variable is available.

$ npx bundle-checker compare \
        --gitRepository='https://github.com/ramda/ramda.git' \
        --installScript='yarn' \
        --buildScript='yarn build:es' \
        --currentBranch='CrossEye-patch-1' \
        --targetBranch='master' \
        --buildFilesPatterns='build/**/*.js,build/**/*.css'

All parameters are optionals, defaults:

ParameterDefault
buildScriptNODE_ENV=production npm run build
currentBranchcurrent branch detected
gitRepositoryrepo where command is run
installScriptnpm ci
prCommentfalse
targetBranchmaster
buildFilesPatternsbuild/**/*.js,build/**/*.css

Post result as PR comment

Add --prComment to post the results as pr Comment after a CI job.

$ npx bundle-checker --prComment

The command needs 3 env variable set:

varDesc
PULL_REQUEST_NUMBERNumber of pull request
PULL_REQUEST_SLUGe.g. facebook/react
GITHUB_TOKENsecret to be setup

If you're working with Travis, no need to setup env variables PULL_REQUEST_NUMBER or PULL_REQUEST_SLUG. Those are read from TRAVIS_PULL_REQUEST and TRAVIS_PULL_REQUEST_SLUG automatically.

Develop and test locally the CLI

$ yarn pack
$ ./bin/run compare

cli scaffoling built with https://github.com/oclif/oclif

1.5.0

4 years ago

1.4.0

4 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.3.0

5 years ago

0.2.12

5 years ago

0.2.11

5 years ago

0.2.10

5 years ago

0.2.9

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0-beta.1

5 years ago

0.1.0-beta.2

5 years ago

0.1.0-beta.0

5 years ago

0.0.1

5 years ago