Skip to content

Commit

Permalink
fix new frame naming issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Dec 13, 2018
1 parent 7b017d9 commit 4eaa4b0
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 87 deletions.
6 changes: 1 addition & 5 deletions packages/dnb-ui-lib/scripts/figma/tasks/iconsConverter.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,6 @@ const optimizeSVG = ({ file }) => {
gulp
.src(file, { cwd: process.env.ROOT_DIR })
.pipe(transform('utf8', transformSvg))
// .pipe(
// rename({
// suffix: '.opt'
// })
// )
.pipe(gulp.dest(path.dirname(file), { cwd: process.env.ROOT_DIR }))
.on('end', resolve)
.on('error', reject)
Expand All @@ -301,6 +296,7 @@ const formatIconName = n =>
.toLowerCase()
.replace(/[^a-z0-9_]/g, '_')
.replace(/\s|_{2,}/g, '_')
.replace(/^[0-9]+_/, '') // because the frame name conains a number first

const lockFileDest = path.resolve(
__dirname,
Expand Down
35 changes: 0 additions & 35 deletions packages/dnb-ui-lib/src/icons/01_primary_icons.js

This file was deleted.

35 changes: 0 additions & 35 deletions packages/dnb-ui-lib/src/icons/02_primary_icons_medium.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/dnb-ui-lib/src/icons/03_secondary_icons.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/dnb-ui-lib/src/icons/04_secondary_icons_medium.js

This file was deleted.

0 comments on commit 4eaa4b0

Please sign in to comment.