UNPKG

ice.fo.utils

Version:

9 lines (6 loc) 292 B
import scanVueFiles from './scanVueFiles'; import normalizePath from './normalizePath'; export default function scanLayoutsDirectory(layoutsDir) { layoutsDir = normalizePath(layoutsDir); return scanVueFiles(layoutsDir).map((i) => i.replace(`${layoutsDir}/`, '').replace('.vue', '')); }