bundle-checker
CLI tool that generates stats on bundle files
Last updated 8 months ago by rbellingeri .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install bundle-checker 
SYNC missed versions from official npm registry.

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:

Parameter Default
buildScript NODE_ENV=production npm run build
currentBranch current branch detected
gitRepository repo where command is run
installScript npm install
prComment false
targetBranch master
buildFilesPatterns build/**/*.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:

var Desc
PULL_REQUEST_NUMBER Number of pull request
PULL_REQUEST_SLUG e.g. facebook/react
GITHUB_TOKEN secret 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

Current Tags

  • 0.1.0-beta.2                                ...           beta (8 months ago)
  • 1.3.2                                ...           latest (5 months ago)

31 Versions

  • 1.3.2                                ...           5 months ago
  • 1.3.1                                ...           6 months ago
  • 1.3.0                                ...           7 months ago
  • 1.2.1                                ...           7 months ago
  • 1.2.0                                ...           8 months ago
  • 1.1.0                                ...           8 months ago
  • 1.0.5                                ...           8 months ago
  • 1.0.4                                ...           8 months ago
  • 1.0.3                                ...           8 months ago
  • 1.0.2                                ...           8 months ago
  • 1.0.1                                ...           8 months ago
  • 1.0.0                                ...           8 months ago
  • 0.3.0                                ...           8 months ago
  • 0.2.12                                ...           8 months ago
  • 0.2.11                                ...           8 months ago
  • 0.2.10                                ...           8 months ago
  • 0.2.9                                ...           8 months ago
  • 0.2.8                                ...           8 months ago
  • 0.2.7                                ...           8 months ago
  • 0.2.6                                ...           8 months ago
  • 0.2.5                                ...           8 months ago
  • 0.2.4                                ...           8 months ago
  • 0.2.3                                ...           8 months ago
  • 0.2.2                                ...           8 months ago
  • 0.2.1                                ...           8 months ago
  • 0.2.0                                ...           8 months ago
  • 0.1.1                                ...           8 months ago
  • 0.1.0-beta.1                                ...           8 months ago
  • 0.1.0-beta.2                                ...           8 months ago
  • 0.1.0-beta.0                                ...           8 months ago
  • 0.0.1                                ...           8 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 31
Last Day 0
Last Week 31
Last Month 0
Dependencies (10)
Dev Dependencies (22)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |