mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-19 09:59:54 +00:00
.github
.vscode
app
build
docs
extras
patches
scripts
build-linux.js
build-macos.js
build-modules.js
build-native.js
build-typings.js
build-windows.js
generate-icon-metadata.js
install-deps.js
prepackage-plugins.js
publish-plugins.js
sentry-upload.js
vars.js
snap
tabby-community-color-schemes
tabby-core
tabby-electron
tabby-local
tabby-plugin-manager
tabby-serial
tabby-settings
tabby-ssh
tabby-telnet
tabby-terminal
tabby-uac
tabby-web
tabby-web-demo
web
.all-contributorsrc
.eslintrc.yml
.gitignore
.mergify.yml
.pug-lintrc.js
CODE_OF_CONDUCT.md
HACKING.md
LICENSE
README.md
appveyor.yml
electron-builder.yml
package.json
tsconfig.json
typedoc.js
webpack.config.js
webpack.plugin.config.js
yarn.lock
13 lines
447 B
JavaScript
Executable File
13 lines
447 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
const jsYaml = require('js-yaml')
|
|
const fs = require('fs')
|
|
const path = require('path')
|
|
const metadata = jsYaml.load(fs.readFileSync(path.resolve(__dirname, '../node_modules/@fortawesome/fontawesome-free/metadata/icons.yml')))
|
|
|
|
let result = {}
|
|
for (let key in metadata) {
|
|
result[key] = metadata[key].styles.map(x => x[0])
|
|
}
|
|
|
|
fs.writeFileSync(path.resolve(__dirname, '../tabby-core/src/icons.json'), JSON.stringify(result))
|