UNPKG

@modyo/widget

Version:

is a widget boilerplater

9 lines (7 loc) 300 B
import path from 'path' import { ls } from './fs-helpers' export default ({ tempGitPath }) => { const list = ls(path.resolve(tempGitPath)) .filter((directory) => !directory.match(/\./) && ls(path.resolve(tempGitPath, directory)).filter((file) => !file.match(/\./)).length > 0) return list }