scripts/json-to-css.js
/**
 * Define the folder and get the files
 */
Define the folder and get the files
Define the folder and get the files
function makeDirs() {
	fileTypes.forEach((type) => {
		const sep = path.sep;
		const initDir = path.isAbsolute(type.dest) ? sep : '';
		type.dest.split(sep).reduce((parentDir, childDir) => {
			const curDir = path.resolve(parentDir, childDir);
			if (!fs.existsSync(curDir)) {
				fs.mkdirSync(curDir);
			}
			return curDir;
		}, initDir);
	});
}
function makeDirs ( ) { fileTypes . forEach ( ( type ) => { const sep = path . sep ; const initDir = path . isAbsolute ( type . dest ) ? sep : '' ; type . dest . split ( sep ) . reduce ( ( parentDir , childDir ) => { const curDir = path . resolve ( parentDir , childDir ) ; if ( ! fs . existsSync ( curDir ) ) { fs . mkdirSync ( curDir ) ; } return curDir ; } , initDir ) ; } ) ; }
Define the folder and get the files
Define the folder and get the files