Build your packages only if they changed since the last build.
How it works
package.jsonmodules in the working directory, ignoring any
node_modulesdirectories by default. Any local
.gitignoreis also respected.
Crawl the package and generate SHA-1 hashes from every watched file. These hashes are stored in the
.bic_cachefile next to each
.bic_cachefiles are outdated, then
npm run buildin the relevant packages.
- Install the package:
yarn add build-
- Edit your
package.jsonmodule to customize the behavior:
// Only watch the "src" directory:"bic": "src"// Any glob can be included or excluded:"bic": "only": "skip":// Disable bic for a package:"bic": false
- Use the package:
skipconfig takes precedence over the
node_modulesdirectories are always skipped.
- Any package with
build-if-changedin its "build" script is skipped.
- This tool uses a custom glob syntax (see here).