@ephox/oxide-icons-tools
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

Various gulp plugins for Oxide icon packs

oxide-icon-packager

A very opinionated plugin which packages svgs in different formats and pipe them through with a predefined directory structure.

gulp.task('icon-packager', function () {
  return gulp.src('src/svg/*.svg')
    .pipe(iconPackager({
      // [Required] Name of the icon pack.
      name: 'default',

      // Logs a diff with @tinymce/oxide-icons-default. Requires that the module is made available.
      diffDefault: true,

      // Icons to ignore when producing a diff. Used in combination with "diffDefault"
      diffIgnore: ['accessibility-check'],

      // Override SVGO options (will be merged with default SVGO options). Use "svgo: false" to completely disable SVGO
      svgo: { floatPrecision: 2 }
    }))
    .pipe(gulp.dest('dist'));
});

Readme

Keywords

none

Package Sidebar

Install

npm i @ephox/oxide-icons-tools

Weekly Downloads

1,087

Version

4.0.0

License

Apache-2.0

Unpacked Size

45.9 kB

Total Files

42

Last publish

Collaborators

  • ephox
  • tinymce