mirror of
https://github.com/enso-org/enso.git
synced 2024-12-24 19:03:27 +03:00
Update icon definitions to new figma export format (#8860)
Related to #8387 Updated icons file to match the export format of figma plugin.
This commit is contained in:
parent
fa4b980d67
commit
d418a02014
@ -2,7 +2,7 @@ import * as fs from 'node:fs/promises'
|
||||
|
||||
console.info('Reading icons from "./src/assets/icons.svg"...')
|
||||
const icons = await fs.readFile('./src/assets/icons.svg', { encoding: 'utf-8' })
|
||||
const iconNames = icons.match(/(?<=^ {4}<g id=")[^"]+/gm) ?? []
|
||||
const iconNames = icons.match(/(?<=<symbol id=")[^"]+/gm) ?? []
|
||||
|
||||
// All generated files MUST follow Prettier formatting.
|
||||
console.info('Writing icon names to "./src/util/iconList.json"...')
|
||||
|
File diff suppressed because it is too large
Load Diff
Before Width: | Height: | Size: 149 KiB After Width: | Height: | Size: 110 KiB |
Loading…
Reference in New Issue
Block a user