mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-20 02:05:12 -04:00
🔗 bitmapsDir import from color.ts
This commit is contained in:
parent
e5d73a607f
commit
50453a9977
1 changed files with 3 additions and 7 deletions
|
@ -2,18 +2,14 @@ import fs from "fs";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
|
|
||||||
import { staticCursors, animatedCursors, animatedClip } from "../cursors.json";
|
import { staticCursors, animatedCursors, animatedClip } from "../cursors.json";
|
||||||
import { schemesPath, bitmapsPath } from "../color";
|
import { schemesPath, bitmapsPath, rawSvgsDir } from "../color";
|
||||||
import { ColorSchema, Configs } from "../types";
|
import { ColorSchema, Configs } from "../types";
|
||||||
|
|
||||||
// --------------------------------------- Generate Configs 🛠
|
// --------------------------------------- Generate Configs 🛠
|
||||||
|
|
||||||
const generateConfigs = (
|
const generateConfigs = (colorSchemes: ColorSchema, dirPrefix: string) => {
|
||||||
colorSchemes: ColorSchema,
|
|
||||||
dirPrefix: string,
|
|
||||||
rawSvgsDir: string
|
|
||||||
) => {
|
|
||||||
if (!fs.existsSync(rawSvgsDir)) {
|
if (!fs.existsSync(rawSvgsDir)) {
|
||||||
console.error("🚨🚨 Raw files not Found 🚨🚨");
|
console.error(`🚨 .svg files not found in ${rawSvgsDir}`);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue