🧹 render Config

This commit is contained in:
ful1e5 2020-08-15 17:28:31 +05:30
parent a8e0f2121f
commit 3ad0126e66

View file

@ -4,17 +4,17 @@ import { staticCursors, animatedCursors, animatedClip } from "./cursors.json";
// --------------------------------------- 🌈 Cursors Variants 🌈 // --------------------------------------- 🌈 Cursors Variants 🌈
const colorSchemes = { export const colorSchemes = {
ice: { ice: {
base: "#ffffff", base: "#ffffff",
outline: "#000000", outline: "#000000"
}, }
}; };
// --------------------------------------- 🔧 Cursors Config 🔧 // --------------------------------------- 🔧 Cursors Config 🔧
// Source Directory // Source Directory
const svgsDir = path.resolve(__dirname, "svg"); const svgsDir = path.resolve("./src/svg");
// Resolve Paths for svg // Resolve Paths for svg
const staticSvgs = staticCursors.map((svg: string) => const staticSvgs = staticCursors.map((svg: string) =>
@ -25,12 +25,10 @@ const staticSvgs = staticCursors.map((svg: string) =>
const bitmapsDir = path.resolve(process.cwd(), "bitmaps"); const bitmapsDir = path.resolve(process.cwd(), "bitmaps");
if (!fs.existsSync(bitmapsDir)) fs.mkdirSync(bitmapsDir); if (!fs.existsSync(bitmapsDir)) fs.mkdirSync(bitmapsDir);
const renderConfig = { export const config = {
staticSvgs,
animatedCursors, animatedCursors,
svgsDir,
bitmapsDir,
animatedClip, animatedClip,
staticSvgs,
bitmapsDir,
svgsDir
}; };
export { renderConfig, colorSchemes };