MCPcopy
hub / github.com/ampproject/amphtml / getPathsFromIgnoreList

Function getPathsFromIgnoreList

build-system/tasks/clean.js:33–44  ·  view source on GitHub ↗

* @return {Promise }

()

Source from the content-addressed store, hash-verified

31 * @return {Promise<string[]>}
32 */
33async function getPathsFromIgnoreList() {
34 const [, below] = splitIgnoreListByHeader(
35 await fs.readFile(ignoreFile, 'utf8')
36 );
37 return (
38 below
39 .split('\n')
40 // Comments and empty lines
41 .filter((line) => line.trim().length > 0 && !line.startsWith('#'))
42 .map((line) => gitignoreToGlobPattern(line))
43 );
44}
45
46/**
47 * Cleans up various cache and output directories. Optionally cleans up inner

Callers 1

cleanFunction · 0.85

Calls 3

splitIgnoreListByHeaderFunction · 0.85
gitignoreToGlobPatternFunction · 0.85
filterMethod · 0.45

Tested by

no test coverage detected