<commit_before>var config        = require('../../../gulp-config');
var gulp          = require('gulp');
var plumber       = require('gulp-plumber');
var notify        = require('gulp-notify');

var iconfont = require('gulp-iconfont');
var iconfontCss = require('gulp-iconfont-css');

module.exports = function() {
  return gulp.src(config.source.fontIconFileList)
      .pipe(plumber({errorHandler: notify.onError({
          message: "<%= error.message %>",
          title: "Views Error"
      })}))
      .pipe(iconfontCss({
        fontName: config.destination.fontIconFontName,
        path: config.destination.fontIconType,
        targetPath: config.destination.fontIconFileName,
        fontPath: config.destination.fontIconFontPath
      }))
      .pipe(iconfont({
        fontName: config.destination.fontIconFontName,
        formats: ['ttf', 'eot', 'woff', 'woff2']
      }))
      .pipe(gulp.dest(config.destination.assetsFolder + config.destination.fontIconFolderName))
      .pipe(notify({message: 'Successfully compiled SVG font icon', onLast: true}))
      .on('error', function() {
        this.emit("error", new Error("SVG font icon compilation Error"));
      });
};
<commit_msg>[enhancement] BOILERPLATE-41: Addedsvg file generation to fit with scss generated file (avoid missing .svg font file)<commit_after>var config        = require('../../../gulp-config');
var gulp          = require('gulp');
var plumber       = require('gulp-plumber');
var notify        = require('gulp-notify');

var iconfont = require('gulp-iconfont');
var iconfontCss = require('gulp-iconfont-css');

module.exports = function() {
  return gulp.src(config.source.fontIconFileList)
      .pipe(plumber({errorHandler: notify.onError({
          message: "<%= error.message %>",
          title: "Views Error"
      })}))
      .pipe(iconfontCss({
        fontName: config.destination.fontIconFontName,
        path: config.destination.fontIconType,
        targetPath: config.destination.fontIconFileName,
        fontPath: config.destination.fontIconFontPath
      }))
      .pipe(iconfont({
        fontName: config.destination.fontIconFontName,
        formats: ['ttf', 'eot', 'woff', 'woff2', 'svg']
      }))
      .pipe(gulp.dest(config.destination.assetsFolder + config.destination.fontIconFolderName))
      .pipe(notify({message: 'Successfully compiled SVG font icon', onLast: true}))
      .on('error', function() {
        this.emit("error", new Error("SVG font icon compilation Error"));
      });
};

{'fraction_non_alphanumeric': 0.15053763440860216, 'fraction_numerical': 0.0015929908403026682, 'mean_word_length': 3.1383855024711695, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4855125', 'n_tokens_mistral': 743, 'n_tokens_neox': 730, 'n_words': 146}