sourcecred/scripts
William Chargin c02a81ff43
Expose a cache directory to plugins at load time (#616)
Summary:
The `node ./bin/sourcecred.js load` command invokes plugin code by
providing an output directory into which the plugin may store data.
As of this patch, it also provides a cache directory that the plugin may
use to store data that will not be available at runtime. For instance,
the Git plugin might choose to clone the repository herein, or the
GitHub plugin may choose to store partial GraphQL query results to deal
with interruptions. The contract is that the cache directory may be
removed at any time and that the plugin should continue to operate
normally.

Test Plan:
The build script has been updated and tested. Reverting the change to
the build script causes the newly added test to fail. (Each plugin has a
cache directory, though the cache directories are empty for now.)

wchargin-branch: create-plugin-cache
2018-08-07 13:10:15 -07:00
..
backend.js Unify a command-line entry point module (#344) 2018-06-05 11:11:48 -07:00
build_static_site.sh Expose a cache directory to plugins at load time (#616) 2018-08-07 13:10:15 -07:00
check-stopships.sh Permit STOPSHIPs in Markdown files (#573) 2018-07-31 10:58:29 -07:00
deploy.sh deploy.sh: depend on build_static_site.sh (#611) 2018-08-06 19:00:35 -07:00
ensure-flow.sh Fix `ensure-flow.sh` running under Node (#314) 2018-05-29 12:20:53 -07:00