@enspirit/emb
Version:
A replacement for our Makefile-for-monorepos
25 lines (24 loc) • 843 B
JavaScript
// Prerequisites
export var PrerequisiteType;
(function (PrerequisiteType) {
PrerequisiteType["file"] = "file";
PrerequisiteType["variable"] = "variable";
})(PrerequisiteType || (PrerequisiteType = {}));
// Checker for files:
//
// Collect all files a component depends on
// and compute their last updated time
//
// No previous build available for this checker?
// -> build and then return now() as output
// Previous build? receive the last output (now())
// and compare it with most recent prerequisite.
// Checker for variables:
//
// Collect all variables a component depends on
// and compute a hash key=>value
//
// No previous build available for this checker?
// -> build and then return the hash as output
// Previous build? receive the last output (hash)
// and compare it with current hash -> different ? true : false