{"size": 1838, "ext": "js", "max_stars_repo_path": "gulpfile.js", "max_stars_repo_name": "digitigradeit/aws-architecture-icon-font", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "gulpfile.js", "max_issues_repo_name": "digitigradeit/aws-architecture-icon-font", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "gulpfile.js", "max_forks_repo_name": "digitigradeit/aws-architecture-icon-font", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 36.76, "max_line_length": 60, "alphanum_fraction": 0.4412404788}
var gulp = require('gulp');
var path = require('gulp-path');
var iconfont = require('gulp-iconfont');
var iconfontCSS = require('gulp-iconfont-css');
var consolidate = require('gulp-consolidate');
var svgmin = require ('gulp-svgmin');
var rename = require('gulp-rename');

gulp.task('default', function () {
    return gulp.src('./src/staged/*.svg')
        .pipe(svgmin())
        .pipe(iconfont({
            fontName: 'aws',
            formats: ['svg', 'ttf', 'eot', 'woff', 'woff2'],
            normalize: true,
            fontHeight: 1024,
        }))
        .on('glyphs', function (glyphs) {
            console.log(glyphs);
            gulp.src('./src/templates/_scss.scss')
                .pipe(consolidate('lodash', {
                    glyphs: glyphs,
                    appendUnicode: true,
                    prependUnicode: true,
                    fontName: 'aws',
                    fontPath: '../fonts/',
                    cssClass: 'aws'
                }))
                .pipe(gulp.dest('./dist/scss'));
            gulp.src('./src/templates/demo/_css.css')
                .pipe(consolidate('lodash', {
                    glyphs: glyphs,
                    fontName: 'aws',
                    fontPath: '../fonts/',
                    cssClass: 'aws'
                }))
                .pipe(rename('aws.css'))
                .pipe(gulp.dest('./dist/demo/'));
            gulp.src('./src/templates/demo/_index.html')
                .pipe(consolidate('lodash', {
                        glyphs: glyphs,
                        fontName: 'aws',
                        fontPath: '../fonts/',
                        cssClass: 'aws'
                }))
                .pipe(rename('index.html'))
                .pipe(gulp.dest('./dist/demo'))
        })
        .pipe(gulp.dest('./dist/fonts'));
});