🔥 Config clean

This commit is contained in:
ful1e5 2020-08-28 11:32:23 +05:30
parent 322028e1ea
commit 2e87551c91

View file

@ -5,13 +5,8 @@ import { staticCursors, animatedCursors, animatedClip } from "./cursors.json";
// Source Directory // Source Directory
const svgsDir = path.resolve(__dirname, "svg"); const svgsDir = path.resolve(__dirname, "svg");
// Resolve Paths for svg
const staticSvgs = staticCursors.map((svg: string) =>
path.resolve(svgsDir, svg)
);
// Out Directory // Out Directory
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);
export { staticSvgs, animatedCursors, svgsDir, bitmapsDir, animatedClip }; export { staticCursors, animatedCursors, svgsDir, bitmapsDir, animatedClip };