@ehmicky/dev-tasks
Version:
Automated development tasks for my own projects
54 lines (32 loc) • 862 B
JavaScript
import{ALL_CONTRIBUTORS_TYPES}from"./all_contributors.js";
import{DOCKER_DIR}from"./docker.js";
export const getExcludedLinks=()=>EXCLUDED_LINKS.map(addExcludeLinkFlag);
const EXCLUDED_LINKS=[
"file:///issues",
"\\.git$",
"linkedin.com",
"medium.com/@ehmicky",
"instagram.com",
`README.md#(${ALL_CONTRIBUTORS_TYPES.join("|")})-[\\w-]+$`,
"https://npmmirror.com/mirrors/node",
"linux.die.net",
"creativefabrica.com",
"freepik.com",
"gnu.org",
"unpkg.com",
"bundlephobia",
"fosstodon",
"invalid-mirror.com",
"//localhost",
"cat.com",
"dog.com",
"koala.com",
"my-user",
"my-project",
"template-name",
"%EF%B8%8F"];
const addExcludeLinkFlag=(excludedLink)=>`--exclude=${excludedLink}`;
export const getRemaps=()=>
REMAPS.map(([source,destination])=>`--remap=${source}\\ ${destination}`);
const REMAPS=[
[`${DOCKER_DIR}/blob/[^/]+`,DOCKER_DIR]];