mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-29 06:15:24 -04:00
🔗 Path config
This commit is contained in:
parent
6d4c4604ca
commit
ea982de2e8
1 changed files with 27 additions and 0 deletions
27
packages/original/src/config.ts
Normal file
27
packages/original/src/config.ts
Normal 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
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue