Files
shields/scripts/export-supported-features-cli.js
Paul Melnikow ae37e9b723 Add a diagnostic page for testing logos (#2890)
It can be helpful to have some diagnostic pages for development and quality control. I added one here for the logos, which renders all the named logos in ?style=flat and ?style=social.
2019-02-08 00:08:45 -05:00

27 lines
601 B
JavaScript

'use strict'
const logos = require('../lib/load-logos')()
const simpleIcons = require('../lib/load-simple-icons')()
const shieldsLogos = Object.keys(logos)
const simpleIconSet = new Set(Object.keys(simpleIcons))
shieldsLogos.forEach(logo => simpleIconSet.delete(logo))
const simpleIconNames = Array.from(simpleIconSet)
const supportedFeatures = {
shieldsLogos,
simpleIcons: simpleIconNames,
advertisedStyles: [
'plastic',
'flat',
'flat-square',
'for-the-badge',
'popout',
'popout-square',
'social',
],
}
console.log(JSON.stringify(supportedFeatures, null, 2))