A set of over 6000 free MIT-licensed high-quality SVG icons for you to use in your web projects.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
784 B

#!/usr/bin/env node
import { buildJsIcons, buildIconsList } from '../../.build/build-icons.mjs'
const componentTemplate = ({
type,
name,
namePascal,
children
}) => `\
import createVueComponent from '../createVueComponent';
export default createVueComponent('${type}', '${name}', '${namePascal}', ${JSON.stringify(children)});`;
const indexItemTemplate = ({
name,
namePascal
}) => `export { default as Icon${namePascal} } from './Icon${namePascal}';`
const aliasTemplate = ({ fromPascal, toPascal }) => `export { default as Icon${fromPascal} } from './icons/Icon${toPascal}';\n`
buildJsIcons({
dtsEntry: true,
name: 'icons-vue',
componentTemplate,
indexItemTemplate,
aliasTemplate,
extension: 'ts',
indexFile: 'index.ts',
})
buildIconsList('icons-vue')