How to Get It!
📦 NPM Package: static-build-cache
💾 Source Code: GitHub
What Is It?
A tool for projects that have a build step that produces static website content; it uses Git to check for committed changes and avoids redundant rebuilds if nothing has actually changed. Speeds up build & serve
type deployments.
For more details, make sure to checkout the repository and README.
How Does It Work?
The easiest way to use it is to add it as a dependency and then call it from the command line, or package.scripts
, with the exposed command: static-build-cache
. You can also import it and use it as a JS module.
It is designed to be able to run with a zero-config input, but has a bunch of optional parameters (such as the serve command to execute) which can be specified.
Tools Used
- TypeScript
- Commander (CLI parsing)
- Git
- Bash / Cmd scripting
- Ava (tests)
- NYC (coverage)
- Github Actions (automated test runs)