gulp-fm-icon-converter
v2.0.1
Published
A gulp module to automatically add the fm_fill class to an svg icon
Downloads
6
Readme
Gulp FM Icon Converter
This tool is used to help convert svg icons into filemaker compatable svg icons. It various things such as fm_fill and a grey fill to enable use in filemaker.
Getting Started
Installation
npm install --save gulp gulp-fm-icon-converter
'use strict';
const gulp = require('gulp');
const { convert, ensureDirectories, files } = require('gulp-fm-icon-converter');
const destination = 'fm-icons';
const source = 'standard-icons';
gulp.task('create-directories', ensureDirectories(source, destination));
gulp.task('convert-icons', () =>
gulp
.src(files(source))
.pipe(convert())
.pipe(gulp.dest(destination))
);
gulp.task('watch', () => gulp.watch(files(source), ['convert-icons']));
gulp.task('default', ['create-directories', 'watch']);
Authors
- Lui de la Parra - Initial work
See also the list of contributors who participated in this project.
Dependencies
- gulp-cheerio: Manipulate HTML and XML files with Cheerio in Gulp.
License
MIT © Lui de la Parra
Acknowledgments
- Hat tip to Matt Petrowski for his contributions to all things FM.
- Hat tip to Todd Geist for his hosting of this tool at fmsvg.com