This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const path = require('path'); | |
const directoryPath = './src/assets/images'; | |
const outputPath = './src/assets/images/index.ts'; | |
const imageExtensions = ['png', 'jpg', 'jpeg', 'gif']; | |
const CONSULTANT_IMPORT_SET = []; | |
const CONSULTANT_IMG_MAP = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
// Icon Map Build Script | |
const { readdirSync, writeFileSync } = require('fs'); | |
const ICON_SOURCE_FOLDER = './'; | |
const ICON_MAP_FILE_DEST_FOLDER = './iconUrlMap.ts'; | |
// Prefix to escape syntax error by icon names that start with a digit or equal "react". | |
const prefix = 'svg'; |