🔗 bitmapsDir import from color.ts

This commit is contained in:
ful1e5 2020-08-19 12:24:25 +05:30
parent e5d73a607f
commit 50453a9977

View file

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