@ng-doc/builder
Version:
<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>
32 lines • 806 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.isPageEntry = isPageEntry;
exports.isCategoryEntry = isCategoryEntry;
exports.isApiEntry = isApiEntry;
const minimatch_1 = require("minimatch");
const variables_1 = require("../../variables");
/**
*
* @param entry
* @param filePath
*/
function isPageEntry(entry, filePath) {
return (0, minimatch_1.minimatch)(filePath, variables_1.PAGE_PATTERN);
}
/**
*
* @param entry
* @param filePath
*/
function isCategoryEntry(entry, filePath) {
return (0, minimatch_1.minimatch)(filePath, variables_1.CATEGORY_PATTERN);
}
/**
*
* @param entry
* @param filePath
*/
function isApiEntry(entry, filePath) {
return (0, minimatch_1.minimatch)(filePath, variables_1.API_PATTERN);
}
//# sourceMappingURL=entry.js.map
;