MCPcopy
hub / github.com/bower/bower / cacheFilesFactory

Function cacheFilesFactory

test/commands/cache/clean.js:10–24  ·  view source on GitHub ↗
(spec)

Source from the content-addressed store, hash-verified

8describe('bower cache clean', function() {
9 // Because directory names are required to be md5 of _source
10 var cacheFilesFactory = function(spec) {
11 var files = {};
12
13 object.map(spec, function(bowerJson) {
14 bowerJson._source = bowerJson.name + '/' + bowerJson.version;
15 var path =
16 md5(bowerJson._source) +
17 '/' +
18 bowerJson.version +
19 '/.bower.json';
20 files[path] = bowerJson;
21 });
22
23 return files;
24 };
25
26 var cacheFiles = cacheFilesFactory([
27 {

Callers 1

clean.jsFile · 0.85

Calls 1

md5Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…