metalsmith-cache
metalsmith] helper to cache values and files between builds.
See the annotated source or github repo
install
npm i --save metalsmith-cache
.gitignore cache
This package will persist data in a cache
directory in your project root. You should probably .gitignore
that directory.
api
See annotated source
example
fileCache = 'google-drive'valueCache = 'google-drive-params' // invalidate cache// store a file// retrieve file & store in metalsmith files structure// merge all files from cache to metalsmith files structure// fetch files according to multimatch mask// store a value// retrieve a value
Full implementation examples:
Author
Levi Wheatcroft levi@wht.cr
Contributing
Contributions welcome; Please submit all pull requests against the master branch.