mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-20 10:15:11 -04:00
🔗 Bitmaps path set to <root>
This commit is contained in:
parent
f51561a3c0
commit
288276f42e
3 changed files with 8 additions and 4 deletions
|
@ -4,7 +4,7 @@
|
|||
"description": "Rounded Corner Bibata 🏳️🌈",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"clean": "rm -rf ./src/svg/Bibata-* ./bitmaps",
|
||||
"clean": "rm -rf ./src/svg/Bibata-* .../../bitmaps",
|
||||
"dev": "nodemon src/index.ts",
|
||||
"dev:debug": "nodemon --inspect src/index.ts",
|
||||
"build": "yarn clean && npx tsc --build",
|
||||
|
|
|
@ -2,6 +2,10 @@ import path from "path";
|
|||
|
||||
import { ColorSchema } from "./types";
|
||||
|
||||
// --------------------------------------- Bitmaps/out Path 🔗
|
||||
|
||||
const bitmapsPath = path.resolve("../../bitmpaps");
|
||||
|
||||
// --------------------------------------- Paths 🔗
|
||||
|
||||
const rawSvgsDir = path.resolve("src", "svg", "raw");
|
||||
|
@ -31,4 +35,4 @@ const colorSchemes: ColorSchema = {
|
|||
}
|
||||
};
|
||||
|
||||
export { rawSvgsDir, schemesPath, colorSchemes };
|
||||
export { rawSvgsDir, bitmapsPath, schemesPath, colorSchemes };
|
||||
|
|
|
@ -2,7 +2,7 @@ import fs from "fs";
|
|||
import path from "path";
|
||||
|
||||
import { staticCursors, animatedCursors, animatedClip } from "../cursors.json";
|
||||
import { schemesPath } from "../color";
|
||||
import { schemesPath, bitmapsPath } from "../color";
|
||||
import { ColorSchema, Configs } from "../types";
|
||||
|
||||
// --------------------------------------- Generate Configs 🛠
|
||||
|
@ -65,7 +65,7 @@ const generateConfigs = (
|
|||
}
|
||||
|
||||
// Creating Dir for store bitmaps
|
||||
const bitmapsDir = path.resolve(process.cwd(), "bitmaps", schemaName);
|
||||
const bitmapsDir = path.resolve(bitmapsPath, schemaName);
|
||||
fs.mkdirSync(bitmapsDir, { recursive: true });
|
||||
|
||||
// push config to Object
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue