UNPKG

@ehmicky/dev-tasks

Version:

Automated development tasks for my own projects

14 lines (9 loc) 368 B
import{LINKS_EXTS,SOURCES_DIRS}from"../../files.js"; import{addInputPrefix}from"./docker.js"; export const getIncludedFiles=()=> [".",...SOURCES_DIRS.map(addGlobStar)]. flatMap(addExtension). map(addInputPrefix); const addGlobStar=(sourceDir)=>`${sourceDir}/**`; const addExtension=(sourceDir)=> LINKS_EXTS.map((extensionName)=>`${sourceDir}/*.${extensionName}`);