1.5.5 • Published 6 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.jsonmodules in the working directory, ignoring anynode_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 eachpackage.jsonmodule.If any
.bic_cachefiles are outdated, thenbicwill executenpm run buildin the relevant packages.
Usage
- Install the package:
yarn add build-if-changed -D- 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:
yarn build-if-changed
# or
yarn bic
Notes
- The
skipconfig takes precedence over theonlyconfig. - The
.gitandnode_modulesdirectories are always skipped. - Any package with
bicorbuild-if-changedin its "build" script is skipped. - This tool uses a custom glob syntax (see here).
1.5.5
6 years ago
1.5.4
6 years ago
1.5.3
6 years ago
1.5.2
6 years ago
1.5.1
6 years ago
1.5.0
6 years ago
1.4.6
6 years ago
1.4.5
6 years ago
1.4.4
6 years ago
1.4.3
6 years ago
1.4.2
6 years ago
1.4.1
6 years ago
1.4.0
6 years ago
1.3.0
6 years ago
1.2.0
6 years ago
1.1.0
6 years ago
1.0.0
6 years ago
0.1.2
10 years ago
0.1.1
10 years ago
0.1.0
10 years ago