/* * Helper to traverse up directories from a start point */ const traverseUp = file => _(_.range(path.dirname(file).split(path.sep).length)) .map(end => _.dropRight(path.dirname(file).split(path.sep), end).join(path.sep)) .map(dir => path.join(dir, path.basename(file))) .value()
const SearchBlock = (_.dropRight(Split, Split.length - Pos)).join('.');
const SearchBlock = (_.dropRight(Split, Split.length - Pos)).join('.');
const SearchBlock = (_.dropRight(Split, Split.length - Pos)).join('.');
/* * Helper to locate the "closest" platform yaml */ const traverseUp = (startFrom = process.cwd()) => { return _(_.range(path.dirname(startFrom).split(path.sep).length)) .map(end => _.dropRight(path.dirname(startFrom).split(path.sep), end).join(path.sep)) .unshift(startFrom) .dropRight() .value(); }