🔗 Path config

This commit is contained in:
ful1e5 2020-09-02 16:52:46 +05:30
parent 6d4c4604ca
commit ea982de2e8

View file

@ -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
};