Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend support of icon file format. #589

Merged
merged 1 commit into from
Dec 31, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/build-tools/iconGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import * as _ from 'lodash';
import { schema as defaultSchema } from './defaultSchema';
import { extensions as files } from './supportedExtensions';
import { extensions as folders } from './supportedFolders';
import { FileFormat } from './../models/IExtension';

// tslint:disable-next-line no-var-requires
const packageJson = require('../../../package.json');
Expand Down Expand Up @@ -51,7 +52,7 @@ export function buildFolders(
const iconFolderLightDefinition = '_fd_light_' + icon;
const iconOpenFolderDefinition = iconFolderDefinition + '_open';
const iconOpenFolderLightDefinition = iconFolderLightDefinition + '_open';
const iconFileExtension = current.svg ? '.svg' : '.png';
const iconFileExtension = '.' + FileFormat[current.format];

defs[iconFolderDefinition] = {
iconPath: folderPath + suffix + iconFileExtension,
Expand Down Expand Up @@ -128,7 +129,7 @@ export function buildFiles(
const fileLightPath = iconsFolderBasePath + iconFileLightType;
const iconFileDefinition = '_f_' + icon;
const iconFileLightDefinition = '_f_light_' + icon;
const iconFileExtension = current.svg ? '.svg' : '.png';
const iconFileExtension = '.' + FileFormat[current.format];
const isFilename = current.filename;

defs[iconFileDefinition] = {
Expand Down
Loading