Skip to content

Commit

Permalink
chore: deprecate asset extractors configs (#1887)
Browse files Browse the repository at this point in the history
* chore: deprecate asset extractors configs

* chore: provide fallbacks for env lists

Co-authored-by: Tobias Høegh <tobias@tujo.no>
  • Loading branch information
langz and tujoworker committed Jan 19, 2023
1 parent 8479a5c commit 4a7b480
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions packages/dnb-eufemia/scripts/figma/tasks/assetsExtractors.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,8 @@ export function IconsConfig(overwrite = {}) {
'calendar',
]

const iconRenameList = process.env.FIGMA_ICONS_RENAME_LIST || [
{ from: 'checkmark', to: 'check' }, // deprecated, can be removed in next minor versjon
{ from: 'repeat', to: 'refresh' }, // deprecated, can be removed in next minor versjon
{ from: 'document', to: 'file' }, // deprecated, can be removed in next minor versjon
{ from: 'more_horizontal', to: 'more' }, // deprecated, can be removed in next minor versjon
]

const iconCloneList = process.env.FIGMA_ICONS_CLONE_LIST || [
// As of now, we only clone these icons
{ from: 'document', to: 'file' }, // deprecated, can be removed in next minor versjon
]

const iconRenameList = process.env.FIGMA_ICONS_RENAME_LIST || []
const iconCloneList = process.env.FIGMA_ICONS_CLONE_LIST || []
const canvasNameSelector =
process.env.FIGMA_ICONS_PAGE_SELECTOR || /^Icons$/ // before we have used: ^[0-9]+[_\- ]Icons$
const frameNameSelector =
Expand Down

0 comments on commit 4a7b480

Please sign in to comment.