1.5.5 • Published 4 years ago
build-if-changed v1.5.5
build-if-changed
Build your packages only if they changed since the last build.
How it works
Look for
package.json
modules in the working directory, ignoring anynode_modules
directories by default. Any local.gitignore
is also respected.Crawl the package and generate SHA-1 hashes from every watched file. These hashes are stored in the
.bic_cache
file next to eachpackage.json
module.If any
.bic_cache
files are outdated, thenbic
will executenpm run build
in the relevant packages.
Usage
- Install the package:
yarn add build-if-changed -D
- Edit your
package.json
module 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:
yarn build-if-changed
# or
yarn bic
Notes
- The
skip
config takes precedence over theonly
config. - The
.git
andnode_modules
directories are always skipped. - Any package with
bic
orbuild-if-changed
in its "build" script is skipped. - This tool uses a custom glob syntax (see here).
1.5.5
4 years ago
1.5.4
5 years ago
1.5.3
5 years ago
1.5.2
5 years ago
1.5.1
5 years ago
1.5.0
5 years ago
1.4.6
5 years ago
1.4.5
5 years ago
1.4.4
5 years ago
1.4.3
5 years ago
1.4.2
5 years ago
1.4.1
5 years ago
1.4.0
5 years ago
1.3.0
5 years ago
1.2.0
5 years ago
1.1.0
5 years ago
1.0.0
5 years ago
0.1.2
8 years ago
0.1.1
8 years ago
0.1.0
8 years ago