@agility/cli
Version:
Agility CLI for working with your content. (Public Beta)
12 lines • 466 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPagesFromFileSystem = getPagesFromFileSystem;
/**
* Get pages from filesystem without side effects
* Pure function - no filesystem operations, delegates to fileOperations
*/
function getPagesFromFileSystem(fileOps) {
var pageData = fileOps.readJsonFilesFromFolder('page');
return pageData.map(function (data) { return data; });
}
//# sourceMappingURL=get-pages.js.map