mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-24 03:56:58 -04:00
🔧 Config init
This commit is contained in:
parent
9b5abcb4cb
commit
f83aab5f8e
1 changed files with 17 additions and 0 deletions
17
packages/shared/src/config.ts
Normal file
17
packages/shared/src/config.ts
Normal file
|
@ -0,0 +1,17 @@
|
|||
import path from "path";
|
||||
import fs from "fs";
|
||||
import { staticCursors, animatedCursors, animatedClip } from "./cursors.json";
|
||||
|
||||
// Source Directory
|
||||
const svgsDir = path.resolve(__dirname, "svg");
|
||||
|
||||
// Resolve Paths for svg
|
||||
const staticSvgs = staticCursors.map((svg: string) =>
|
||||
path.resolve(svgsDir, svg)
|
||||
);
|
||||
|
||||
// Out Directory
|
||||
const bitmapsDir = path.resolve(process.cwd(), "bitmaps");
|
||||
if (!fs.existsSync(bitmapsDir)) fs.mkdirSync(bitmapsDir);
|
||||
|
||||
export { staticSvgs, animatedCursors, svgsDir, bitmapsDir, animatedClip };
|
Loading…
Add table
Add a link
Reference in a new issue