MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / appendFramework

Method appendFramework

tools/mcmanifest.js:2253–2267  ·  view source on GitHub ↗
(files, target, source, include)

Source from the content-addressed store, hash-verified

2251 return true;
2252 }
2253 appendFramework(files, target, source, include) {
2254 this.count++;
2255 source = this.tool.resolveDirectoryPath(source);
2256 if (!files.already[source]) {
2257 files.already[source] = true;
2258 if (include) {
2259 if (!files.find(file => file.target == target)) {
2260 //this.tool.report(target + " " + source);
2261 let result = { target, source };
2262 files.push(result);
2263 return result;
2264 }
2265 }
2266 }
2267 }
2268 appendImage(name, path, include, suffix) {
2269 var tool = this.tool;
2270 if (tool.imageFiles.already[path])

Callers 1

appendSourceMethod · 0.95

Calls 2

findMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected