From ea982de2e886bab041f76938e67d2bed5e31105c Mon Sep 17 00:00:00 2001 From: ful1e5 <24286590+ful1e5@users.noreply.github.com> Date: Wed, 2 Sep 2020 16:52:46 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=97=20Path=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/original/src/config.ts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 packages/original/src/config.ts diff --git a/packages/original/src/config.ts b/packages/original/src/config.ts new file mode 100644 index 00000000..43317fa6 --- /dev/null +++ b/packages/original/src/config.ts @@ -0,0 +1,27 @@ +import { resolve } from "path"; +import { readdirSync } from "fs"; + +const rawSvgsDir = resolve("./src/svg"); +const staticCursorsDir = resolve(rawSvgsDir, "static"); +const animatedCursorsDir = resolve(rawSvgsDir, "animated"); + +const staticCursors = readdirSync(staticCursorsDir).map((f) => + resolve(staticCursorsDir, f) +); + +const animatedCursors = readdirSync(animatedCursorsDir).map((f) => + resolve(animatedCursorsDir, f) +); + +const schemesPath = resolve("schemes"); +const projectRoot = resolve("../../"); +const bitmapsPath = resolve(projectRoot, "bitmaps"); + +export { + rawSvgsDir, + schemesPath, + projectRoot, + bitmapsPath, + staticCursors, + animatedCursors +};